1 |
commit: 3d85b73f9e40e168776914d4faabe89b9132b9a7 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 28 14:41:49 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 28 15:11:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d85b73f |
7 |
|
8 |
dev-libs/libzip: 1.6.0 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libzip/Manifest | 1 + |
14 |
dev-libs/libzip/libzip-1.6.0.ebuild | 109 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 110 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libzip/Manifest b/dev-libs/libzip/Manifest |
18 |
index ba1849f0064..bfca91717e9 100644 |
19 |
--- a/dev-libs/libzip/Manifest |
20 |
+++ b/dev-libs/libzip/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libzip-1.5.2.tar.xz 725724 BLAKE2B 3d67fc3ed9a242047fdeb1bae7fdbdcbed660853bbb36590b082646619e1cccb1dd49506248bba66759e27691f9a83ed186731eb57f47cc5e21f07f28e391387 SHA512 1e6d48ddbac4d270f70b314f6ada3c93a3196a8cc3b8d17c6cf5ea8409ff29f36ac351206675f9d81351fcf633b0c15d7b0b5530c30c4140e4fe55e64c602643 |
23 |
+DIST libzip-1.6.0.tar.xz 732812 BLAKE2B 9023994e3f0a6e893ab42e2f2951b4b32ee8c1f6ea265a9481e32293c0ea229e364f00d9340cdc22404aa7ab7a294ff297ea9e821c2d1ad8486eb8b5301b637b SHA512 a173bebc0a199d65d9e2d5e5adf65eb10e9d3a1c409006b3f78e3453aa6166d825fea20e818e725f5d3c6b63137023a2cccb7fb2a1da50a88c4f5f057cf879f8 |
24 |
|
25 |
diff --git a/dev-libs/libzip/libzip-1.6.0.ebuild b/dev-libs/libzip/libzip-1.6.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..3636729665d |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libzip/libzip-1.6.0.ebuild |
30 |
@@ -0,0 +1,109 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake multibuild |
37 |
+ |
38 |
+DESCRIPTION="Library for manipulating zip archives" |
39 |
+HOMEPAGE="https://nih.at/libzip/" |
40 |
+SRC_URI="https://www.nih.at/libzip/${P}.tar.xz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0/5" |
44 |
+KEYWORDS="~amd64 ~arm ~ia64 ~mips ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
45 |
+IUSE="bzip2 doc gnutls libressl lzma mbedtls ssl static-libs test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ sys-libs/zlib |
50 |
+ bzip2? ( app-arch/bzip2:= ) |
51 |
+ lzma? ( app-arch/lzma:= ) |
52 |
+ ssl? ( |
53 |
+ gnutls? ( |
54 |
+ dev-libs/nettle:0= |
55 |
+ >=net-libs/gnutls-3.6.5:= |
56 |
+ ) |
57 |
+ !gnutls? ( |
58 |
+ mbedtls? ( net-libs/mbedtls:= ) |
59 |
+ !mbedtls? ( |
60 |
+ !libressl? ( dev-libs/openssl:0= ) |
61 |
+ libressl? ( dev-libs/libressl:0= ) |
62 |
+ ) |
63 |
+ ) |
64 |
+ ) |
65 |
+" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ # Upstream doesn't support building dynamic & static |
70 |
+ # simultaneously: https://github.com/nih-at/libzip/issues/76 |
71 |
+ MULTIBUILD_VARIANTS=( shared $(usev static-libs) ) |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ myconfigure() { |
76 |
+ local mycmakeargs=( |
77 |
+ -DBUILD_EXAMPLES=OFF # nothing is installed |
78 |
+ -DENABLE_COMMONCRYPTO=OFF # not in tree |
79 |
+ -DENABLE_BZIP2=$(usex bzip2) |
80 |
+ -DENABLE_LZMA=$(usex lzma) |
81 |
+ ) |
82 |
+ if [[ ${MULTIBUILD_VARIANT} = static-libs ]]; then |
83 |
+ mycmakeargs+=( |
84 |
+ -DBUILD_DOC=OFF |
85 |
+ -DBUILD_EXAMPLES=OFF |
86 |
+ -DBUILD_SHARED_LIBS=OFF |
87 |
+ -DBUILD_TOOLS=OFF |
88 |
+ ) |
89 |
+ else |
90 |
+ mycmakeargs+=( |
91 |
+ -DBUILD_DOC=$(usex doc) |
92 |
+ -DBUILD_REGRESS=$(usex test) |
93 |
+ ) |
94 |
+ fi |
95 |
+ |
96 |
+ if use ssl; then |
97 |
+ if use gnutls; then |
98 |
+ mycmakeargs+=( |
99 |
+ -DENABLE_GNUTLS=$(usex gnutls) |
100 |
+ -DENABLE_MBEDTLS=OFF |
101 |
+ -DENABLE_OPENSSL=OFF |
102 |
+ ) |
103 |
+ elif use mbedtls; then |
104 |
+ mycmakeargs+=( |
105 |
+ -DENABLE_GNUTLS=OFF |
106 |
+ -DENABLE_MBEDTLS=$(usex mbedtls) |
107 |
+ -DENABLE_OPENSSL=OFF |
108 |
+ ) |
109 |
+ else |
110 |
+ mycmakeargs+=( |
111 |
+ -DENABLE_GNUTLS=OFF |
112 |
+ -DENABLE_MBEDTLS=OFF |
113 |
+ -DENABLE_OPENSSL=ON |
114 |
+ ) |
115 |
+ fi |
116 |
+ else |
117 |
+ mycmakeargs+=( |
118 |
+ -DENABLE_GNUTLS=OFF |
119 |
+ -DENABLE_MBEDTLS=OFF |
120 |
+ -DENABLE_OPENSSL=OFF |
121 |
+ ) |
122 |
+ fi |
123 |
+ cmake_src_configure |
124 |
+ } |
125 |
+ |
126 |
+ multibuild_foreach_variant myconfigure |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ multibuild_foreach_variant cmake_src_compile |
131 |
+} |
132 |
+ |
133 |
+src_test() { |
134 |
+ [[ ${MULTIBUILD_VARIANT} = shared ]] && cmake_src_test |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ multibuild_foreach_variant cmake_src_install |
139 |
+} |