Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/zziplib/
Date: Mon, 24 Aug 2020 08:29:06
Message-Id: 1598257728.abef57edb8f5cea4c8e896a6492a528b7c464f67.zlogene@gentoo
1 commit: abef57edb8f5cea4c8e896a6492a528b7c464f67
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sun Aug 23 12:31:18 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 08:28:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abef57ed
7
8 dev-libs/zziplib: remove ZZIP_LARGEFILE
9
10 Closes: https://bugs.gentoo.org/738282
11 Package-Manager: Portage-2.3.103, Repoman-2.3.23
12 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
13 Closes: https://github.com/gentoo/gentoo/pull/17233
14 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
15
16 dev-libs/zziplib/zziplib-0.13.71-r2.ebuild | 67 ++++++++++++++++++++++++++++++
17 1 file changed, 67 insertions(+)
18
19 diff --git a/dev-libs/zziplib/zziplib-0.13.71-r2.ebuild b/dev-libs/zziplib/zziplib-0.13.71-r2.ebuild
20 new file mode 100644
21 index 00000000000..5b35a0f72f4
22 --- /dev/null
23 +++ b/dev-libs/zziplib/zziplib-0.13.71-r2.ebuild
24 @@ -0,0 +1,67 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +PYTHON_COMPAT=( python3_{7,8,9} )
31 +inherit cmake flag-o-matic python-any-r1
32 +
33 +DESCRIPTION="Lightweight library for extracting data from files archived in a single zip file"
34 +HOMEPAGE="http://zziplib.sourceforge.net/"
35 +SRC_URI="https://github.com/gdraheim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
38 +SLOT="0/13"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 +IUSE="doc sdl static-libs test"
41 +
42 +RESTRICT="!test? ( test )"
43 +
44 +BDEPEND="
45 + doc? (
46 + ${PYTHON_DEPS}
47 + )
48 + test? (
49 + ${PYTHON_DEPS}
50 + app-arch/zip
51 + )
52 +"
53 +DEPEND="
54 + sys-libs/zlib
55 + sdl? ( >=media-libs/libsdl-1.2.6 )
56 +"
57 +RDEPEND="${DEPEND}"
58 +
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-0.13.69-009-perror.patch
61 + "${FILESDIR}"/${PN}-0.13.71-join-paths-pc-zzipsdldir.patch
62 + "${FILESDIR}"/${PN}-0.13.71-find-bash.patch
63 + "${FILESDIR}"/${PN}-0.13.71-testbuilds-opensuse15-ninja-sdl2.patch
64 + "${FILESDIR}"/${PN}-0.13.71-shell-DESTDIR.patch
65 +)
66 +
67 +pkg_setup() {
68 + (use test || use doc) && python-any-r1_pkg_setup
69 +}
70 +
71 +src_prepare() {
72 + cmake_src_prepare
73 +
74 + (use test || use doc) && python_fix_shebang .
75 +}
76 +
77 +src_configure() {
78 + append-flags -fno-strict-aliasing # bug reported upstream
79 +
80 + local mycmakeargs=(
81 + -DZZIPCOMPAT=OFF
82 + -DZZIPSDL="$(usex sdl ON OFF)"
83 + -DBUILD_STATIC_LIBS="$(usex static-libs ON OFF)"
84 + -DBUILD_TESTS="$(usex test ON OFF)"
85 + -DZZIPTEST="$(usex test ON OFF)"
86 + -DZZIPDOCS="$(usex doc ON OFF)"
87 + -DZZIPWRAP=OFF
88 + )
89 +
90 + cmake_src_configure
91 +}