Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/zziplib/, dev-libs/zziplib/files/
Date: Thu, 03 Jan 2019 09:55:19
Message-Id: 1546509308.5da92145f220cedef0799c8fadecd430f2046218.polynomial-c@gentoo
1 commit: 5da92145f220cedef0799c8fadecd430f2046218
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 3 09:54:55 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 3 09:55:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5da92145
7
8 dev-libs/zziplib: Bump to version 0.13.69
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/zziplib/Manifest | 1 +
14 .../zziplib/files/zziplib-0.13.69-SDL-test.patch | 14 ++++
15 dev-libs/zziplib/zziplib-0.13.69.ebuild | 91 ++++++++++++++++++++++
16 3 files changed, 106 insertions(+)
17
18 diff --git a/dev-libs/zziplib/Manifest b/dev-libs/zziplib/Manifest
19 index acdb84670d2..7ae3c8d24a6 100644
20 --- a/dev-libs/zziplib/Manifest
21 +++ b/dev-libs/zziplib/Manifest
22 @@ -1 +1,2 @@
23 DIST zziplib-0.13.62.tar.bz2 685770 BLAKE2B 24ef46370cd490498cedeea4b83abffd40b4bf7092ca994defb0c7c90a2c6863c56d19933dca1b20700ed9a55369cd1e8d3f6e1c5ed966b966d15eed4e5b75aa SHA512 fd3b9e9015ba7603bdebd8f6a2ac6d11003705bfab22f3a0025f75455042664aea69440845b59e6f389417dff5ac777f49541d8cbacb2a220e67d20bb6973e25
24 +DIST zziplib-0.13.69.tar.gz 1132204 BLAKE2B 92e9f5e95665c7a47d1e472f570402e3c174d404abf461bed644ea8a37ff7661ee98b8fa241728aae375e32c470f2f48a817f72410eeda81a6a3be6e6bdb2635 SHA512 ade026289737f43ca92a8746818d87dd7618d473dbce159546ce9071c9e4cbe164a6b1c9efff16efb7aa0327b2ec6b34f3256c6bda19cd6e325703fffc810ef0
25
26 diff --git a/dev-libs/zziplib/files/zziplib-0.13.69-SDL-test.patch b/dev-libs/zziplib/files/zziplib-0.13.69-SDL-test.patch
27 new file mode 100644
28 index 00000000000..7f85b686469
29 --- /dev/null
30 +++ b/dev-libs/zziplib/files/zziplib-0.13.69-SDL-test.patch
31 @@ -0,0 +1,14 @@
32 +this test isnt even run automatically and the dependencies are all broken,
33 +so just disable it and be done
34 +
35 +--- zziplib-0.13.69/SDL/Makefile.am
36 ++++ zziplib-0.13.69/SDL/Makefile.am
37 +@@ -5,7 +5,7 @@
38 + zzipsdl_DATA = SDL_rwops_zzip.c SDL_rwops_zzip.h
39 +
40 + EXTRA_DIST = $(sdl_DATA)
41 +-check_PROGRAMS = zzcatsdl
42 ++check_PROGRAMS =
43 +
44 + zzcatsdl_SOURCES = SDL_rwops_zzcat.c SDL_rwops_zzip.c
45 + ZZIP_CFLAGS= `export PKG_CONFIG_PATH=../zzip; pkg-config zziplib --cflags`
46
47 diff --git a/dev-libs/zziplib/zziplib-0.13.69.ebuild b/dev-libs/zziplib/zziplib-0.13.69.ebuild
48 new file mode 100644
49 index 00000000000..973505427e7
50 --- /dev/null
51 +++ b/dev-libs/zziplib/zziplib-0.13.69.ebuild
52 @@ -0,0 +1,91 @@
53 +# Copyright 1999-2019 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +PYTHON_COMPAT=( python2_7 )
59 +
60 +inherit autotools libtool flag-o-matic python-any-r1
61 +
62 +DESCRIPTION="Lightweight library for extracting data from files archived in a single zip file"
63 +HOMEPAGE="http://zziplib.sourceforge.net/"
64 +SRC_URI="https://github.com/gdraheim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
65 +
66 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
67 +SLOT="0"
68 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
69 +IUSE="doc sdl static-libs test"
70 +
71 +RDEPEND="
72 + sys-libs/zlib
73 + sdl? ( >=media-libs/libsdl-1.2.6 )"
74 +DEPEND="${RDEPEND}
75 + ${PYTHON_DEPS}
76 + virtual/pkgconfig
77 + test? ( app-arch/zip )"
78 +
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-0.13.69-SDL-test.patch
81 +)
82 +
83 +src_prepare() {
84 + default
85 + eautoreconf
86 +
87 + python_fix_shebang .
88 +
89 + # workaround AX_CREATE_PKGCONFIG_INFO bug #353195
90 + sed -i \
91 + -e '/ax_create_pkgconfig_ldflags/s:$LDFLAGS::' \
92 + -e '/ax_create_pkgconfig_cppflags/s:$CPPFLAGS::' \
93 + configure || die
94 +
95 + # zziplib tries to install backwards compat symlinks we dont want
96 + sed -i -e '/^zzip-postinstall:/s|$|\ndisable-this:|' Makefile.in || die
97 + sed -i -e '/^install-exec-hook:/s|$|\ndisable-this:|' zzip/Makefile.in || die
98 +
99 + elibtoolize
100 +
101 + # Do an out-of-tree build as their configure will do it automatically
102 + # otherwise and that can lead to funky errors. #492816
103 + mkdir -p build
104 +}
105 +
106 +src_configure() {
107 + cd "${S}"/build
108 +
109 + append-flags -fno-strict-aliasing # bug reported upstream
110 + export ac_cv_path_XMLTO= # man pages are bundled in .tar's
111 +
112 + local myeconfargs=(
113 + $(use_enable sdl)
114 + $(use_enable static-libs static)
115 + )
116 +
117 + # Disable aclocal probing as the default path works #449156
118 + ECONF_SOURCE=${S} ACLOCAL=true \
119 + econf "${myeconfargs[@]}"
120 + MAKEOPTS+=' -C build'
121 +}
122 +
123 +src_install() {
124 + default
125 +
126 + # fowners fails when we don't have enough permissions (Prefix)
127 + if [[ ${EUID} == 0 ]] ; then
128 + fowners -R root /usr/share/man #321975
129 + fi
130 +
131 + find "${ED}" -name "*.la" -delete || die
132 +
133 + if use doc ; then
134 + docinto html
135 + dodoc -r docs/*
136 + fi
137 +}
138 +
139 +src_test() {
140 + # need this because `make test` will always return true
141 + # tests fail with -j > 1 (bug #241186)
142 + emake -j1 check
143 +}