zziplib: 0.13.71 -> 0.13.72

This commit is contained in:
AndersonTorres 2021-03-23 14:08:03 -03:00
parent 09fb0da465
commit dfff61f850

View File

@ -1,80 +1,64 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub
, cmake
, perl , perl
, pkg-config , pkg-config
, fetchFromGitHub
, fetchpatch
, zip
, unzip
, python3 , python3
, xmlto , xmlto
, zip
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zziplib"; pname = "zziplib";
version = "0.13.71"; version = "0.13.72";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gdraheim"; owner = "gdraheim";
repo = "zziplib"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "P+7D57sc2oIABhk3k96aRILpGnsND5SLXHh2lqr9O4E="; hash = "sha256-Ht3fBgdrTm4mCi5uhgQPNtpGzADoRVOpSuGPsIS6y0Q=";
}; };
patches = [
# Install man pages
(fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b.patch";
sha256 = "wVExEZN8Ml1/3GicB0ZYsLVS3KJ8BSz8i4Gu46naz1Y=";
excludes = [ "GNUmakefile" ];
})
# Fix man page formatting
(fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/22ed64f13dc239f86664c60496261f544bce1088.patch";
sha256 = "ScFVWLc4LQPqkcHn9HK/VkLula4b5HzuYl0b5vi4Ikc=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake
perl perl
pkg-config pkg-config
zip
python3 python3
xmlto xmlto
zip
]; ];
buildInputs = [ buildInputs = [
zlib zlib
]; ];
checkInputs = [ # test/zziptests.py requires network access
unzip # (https://github.com/gdraheim/zziplib/issues/24)
cmakeFlags = [
"-DZZIP_TESTCVE=OFF"
"-DBUILD_SHARED_LIBS=True"
"-DBUILD_STATIC_LIBS=False"
"-DBUILD_TESTS=OFF"
"-DMSVC_STATIC_RUNTIME=OFF"
"-DZZIPSDL=OFF"
"-DZZIPTEST=OFF"
"-DZZIPWRAP=OFF"
"-DBUILDTESTS=OFF"
]; ];
# tests are broken (https://github.com/gdraheim/zziplib/issues/20),
# and test/zziptests.py requires network access
# (https://github.com/gdraheim/zziplib/issues/24)
doCheck = false;
checkTarget = "check";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/gdraheim/zziplib";
description = "Library to extract data from files archived in a zip file"; description = "Library to extract data from files archived in a zip file";
longDescription = '' longDescription = ''
The zziplib library is intentionally lightweight, it offers the ability The zziplib library is intentionally lightweight, it offers the ability to
to easily extract data from files archived in a single zip easily extract data from files archived in a single zip file.
file. Applications can bundle files into a single zip archive and Applications can bundle files into a single zip archive and access them.
access them. The implementation is based only on the (free) subset of The implementation is based only on the (free) subset of compression with
compression with the zlib algorithm which is actually used by the the zlib algorithm which is actually used by the zip/unzip tools.
zip/unzip tools.
''; '';
license = with licenses; [ lgpl2Plus mpl11 ]; license = with licenses; [ lgpl2Plus mpl11 ];
maintainers = with maintainers; [ AndersonTorres ];
homepage = "http://zziplib.sourceforge.net/";
maintainers = [ ];
platforms = python3.meta.platforms; platforms = python3.meta.platforms;
}; };
} }