1 |
commit: a9e3b28b5f3a79c79ae8c62f5e86386d7244873c |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 6 20:06:18 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 6 20:07:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9e3b28b |
7 |
|
8 |
net-libs/gnutls: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-libs/gnutls/Manifest | 3 + |
13 |
net-libs/gnutls/gnutls-3.3.24.ebuild | 177 +++++++++++++++++++++++++++++++++++ |
14 |
net-libs/gnutls/gnutls-3.4.14.ebuild | 135 ++++++++++++++++++++++++++ |
15 |
net-libs/gnutls/gnutls-3.5.2.ebuild | 127 +++++++++++++++++++++++++ |
16 |
4 files changed, 442 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest |
19 |
index 8f7713e..46eecfb 100644 |
20 |
--- a/net-libs/gnutls/Manifest |
21 |
+++ b/net-libs/gnutls/Manifest |
22 |
@@ -1,5 +1,8 @@ |
23 |
DIST gnutls-3.3.17.1.tar.xz 6339588 SHA256 b40f158030a92f450a07b20300a3996710ca19800848d9f6fd62493170c5bbb4 SHA512 9f2945abe1251db176fa227f2c90be46dba831af97647f04b960c71a50fc597776be31080733f9417f2242c4c6ae92fa897bf02d5f2ba40863e94df245c03319 WHIRLPOOL 8a04e56a5f47ddaad106081a613ead85a107b013d3e894074745e9439e0a7797b7f528aab5db7e3ac808f1c5c361c4717d7f0cb3abc943a6f912e5b6981db320 |
24 |
DIST gnutls-3.3.23.tar.xz 6304332 SHA256 f53453857e369d66d665c40389201c0b9dacb7ccda560fd21b20b798687a4239 SHA512 5c2e93ddbff3ca2fc5f8fca8eeaef363bf8fe0f5dce2f4a9448e3235c930baa09d59a456a019283a451d19e0497d3ae645786080aa31febc7f1bcd71c6de1e09 WHIRLPOOL fa082db1933eefc7e061dc7f7e6584d03920f40584865e2983250097db9acea0e6d0c075e8207a2e5b96e37ae77db2b91bcf21e97cc7dfdec0744904de4b5866 |
25 |
+DIST gnutls-3.3.24.tar.xz 6294532 SHA256 5b65fe2a91c8dfa32bedc78acffcb152e5426cd3349e2afc43cccc9bdaf18aa5 SHA512 1fbb2e15ade14db15d7acc9ff559ecfc39517fd99e6c784583a7a4f8786daf8053f35f41e39cde0eeb5a1dfd3193ad908b52f62f945fbd43c147dc87e55f192f WHIRLPOOL 0725b35af9bbb4a7ee8f430af95e078066fb455328dd0ee71cca6633d093fe0433c7d869ebf0fabf8983679a32ff8451a2b631aec672810eb7bc55a3de28cc7d |
26 |
DIST gnutls-3.4.13.tar.xz 6670508 SHA256 fd3386e8e72725980bcd7f40949aa0121dcb7650b5147c6490e794555ed25859 SHA512 bec4832560945ca127524a7b529757aa36b7eb9a070d7385f8e5d10628e39b76ae20c1c146fab286860c70add8755f17a4b61bfa1a266eeb30d481f259120406 WHIRLPOOL aaee0a5b597305a2dab0064e9ef1fb1cf05f1f301de30601fa8a8c81f9c35f72c82df8c1c24e57c7f4beb132b4c50285f765ba998829ba7ab0681eadf7cfe7f7 |
27 |
+DIST gnutls-3.4.14.tar.xz 6673148 SHA256 35deddf2779b76ac11057de38bf380b8066c05de21b94263ad5b6dfa75dfbb23 SHA512 d75f6b4dea2dc742cd7f60ee0ee540d41b69991aaa937ca0138cfdf4a1e0dfaaa3863464303bfa5799e14ee02de252f71c59a7a9e57b96ff8af653e419edfd4e WHIRLPOOL 1869b831521f4ef5dde5a6694fdf6239793b404478a9b7e97ec2b4af2f1a4326fa5b65521a74d664113a84d2ff1b660269fcf1f3ca1db361fddfab2af3c191dd |
28 |
DIST gnutls-3.5.0.tar.xz 6716848 SHA256 fc6b3b544d411e6ca54dd6167541770559070ea15e6868946cf56a621d58ae25 SHA512 0b53b8084972e9b47e71c47ca9a42d0413c781641f4da640a1016aa0c1a736863a57eadbd9bb81248d3fdf723796edbb1424b14f9846b2300ad7650925f2ac27 WHIRLPOOL 0f1b3e07f94f101b004ecb1024424a10826d32bab0168076e412cd8d3881af8d77b440395b1811a910188d950ed71a2eb13e87dae029ee4c8c461a3d71077ba3 |
29 |
DIST gnutls-3.5.1.tar.xz 6799264 SHA256 bc4a0f80a627c3aca6e7ea59d30e50cda118c61e0e3fab367ff1451d6ec8bdbd SHA512 d59d0a7624a2783645d217a2f6955e8a5e67eea4a9bc682b101cf939f7b623f046b381bc12ae0bae08c17031e4bd178e615afbe2cdde3914433b8d829c353e14 WHIRLPOOL 1ce587c664896115a0b8f4d8bfadb562738b85db15dc592d049c89a10c1386ec2ec73f7bc94a7291188e590cd862419a15dac8ac37670629998231216a2450ce |
30 |
+DIST gnutls-3.5.2.tar.xz 6829132 SHA256 2b45e95cbfd21d76da6fc4846794d8845dbc66bb03c6aa1428881586cfbe8582 SHA512 c9438a5c20316e41bbcaaa5e88c3fcbb750f336d8ac8ea196e0d7840fb4ccc64b00cda70ea81afbe8ee9fa790fbfb3ed3c84689378397adaf97031fbc2f260d0 WHIRLPOOL b27d6c72eea6c135fde946dd5db64d3ba23864aa48e96c2d9271dd845878c9947f70d2f78270396d5556dada95b84bb9fd7a884e697fb0dd6c4bd8a78152d3cb |
31 |
|
32 |
diff --git a/net-libs/gnutls/gnutls-3.3.24.ebuild b/net-libs/gnutls/gnutls-3.3.24.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..41ffb01 |
35 |
--- /dev/null |
36 |
+++ b/net-libs/gnutls/gnutls-3.3.24.ebuild |
37 |
@@ -0,0 +1,177 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit autotools libtool eutils multilib-minimal versionator |
45 |
+ |
46 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
47 |
+HOMEPAGE="http://www.gnutls.org/" |
48 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
49 |
+ |
50 |
+# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
51 |
+# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
52 |
+LICENSE="GPL-3 LGPL-3" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
55 |
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
56 |
+IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}" |
57 |
+# heartbeat support is not disabled until re-licensing happens fullyf |
58 |
+ |
59 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
60 |
+# use system libopts |
61 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
62 |
+ >=dev-libs/nettle-2.7:=[gmp,${MULTILIB_USEDEP}] |
63 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
64 |
+ sys-devel/autogen |
65 |
+ crywrap? ( net-dns/libidn ) |
66 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
67 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
68 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
69 |
+ pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] ) |
70 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
71 |
+ abi_x86_32? ( |
72 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
73 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
74 |
+ )" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ >=sys-devel/automake-1.11.6 |
77 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
78 |
+ doc? ( |
79 |
+ sys-apps/texinfo |
80 |
+ dev-util/gtk-doc |
81 |
+ ) |
82 |
+ nls? ( sys-devel/gettext ) |
83 |
+ test? ( app-misc/datefudge )" |
84 |
+ |
85 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}/${PN}-3.3.19-build-allow-installing-man-1-even-with-disable-doc.patch" |
89 |
+) |
90 |
+ |
91 |
+pkg_setup() { |
92 |
+ # bug#520818 |
93 |
+ export TZ=UTC |
94 |
+} |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ sed -i \ |
100 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
101 |
+ doc/Makefile.am || die |
102 |
+ |
103 |
+ # force regeneration of autogen-ed files |
104 |
+ local file |
105 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
106 |
+ rm src/$(basename ${file} .c).{c,h} || die |
107 |
+ done |
108 |
+ |
109 |
+ # force regeneration of makeinfo files |
110 |
+ # have no idea why on some system these files are not |
111 |
+ # accepted as-is, see bug#520818 |
112 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
113 |
+ rm "${file}" || die |
114 |
+ done |
115 |
+ |
116 |
+ eautoreconf |
117 |
+ |
118 |
+ # Use sane .so versioning on FreeBSD. |
119 |
+ elibtoolize |
120 |
+ |
121 |
+ # bug 497472 |
122 |
+ use cxx || epunt_cxx |
123 |
+} |
124 |
+ |
125 |
+multilib_src_configure() { |
126 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
127 |
+ |
128 |
+ # TPM needs to be tested before being enabled |
129 |
+ # hardware-accell is disabled on OSX because the asm files force |
130 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
131 |
+ # complains about duplicate symbols |
132 |
+ ECONF_SOURCE=${S} \ |
133 |
+ econf \ |
134 |
+ --disable-valgrind-tests \ |
135 |
+ --without-included-libtasn1 \ |
136 |
+ --enable-heartbeat-support \ |
137 |
+ $(use_enable cxx) \ |
138 |
+ $(use_enable dane libdane) \ |
139 |
+ $(multilib_native_enable manpages) \ |
140 |
+ $(multilib_native_use_enable doc) \ |
141 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
142 |
+ $(multilib_native_use_enable guile) \ |
143 |
+ $(multilib_native_use_enable crywrap) \ |
144 |
+ $(use_enable nls) \ |
145 |
+ $(use_enable openssl openssl-compatibility) \ |
146 |
+ $(use_enable static-libs static) \ |
147 |
+ $(use_with pkcs11 p11-kit) \ |
148 |
+ $(use_with zlib) \ |
149 |
+ --without-tpm \ |
150 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
151 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
152 |
+ |
153 |
+ if multilib_is_native_abi; then |
154 |
+ ln -s "${S}"/doc/reference/html doc/reference/html || die |
155 |
+ fi |
156 |
+} |
157 |
+ |
158 |
+multilib_src_compile() { |
159 |
+ if multilib_is_native_abi; then |
160 |
+ default |
161 |
+ |
162 |
+ # symlink certtool for use in other ABIs |
163 |
+ if use test; then |
164 |
+ ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die |
165 |
+ fi |
166 |
+ else |
167 |
+ emake -C gl |
168 |
+ emake -C lib |
169 |
+ emake -C extra |
170 |
+ use dane && emake -C libdane |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+multilib_src_test() { |
175 |
+ if multilib_is_native_abi; then |
176 |
+ # parallel testing often fails |
177 |
+ emake -j1 check |
178 |
+ else |
179 |
+ # use native ABI tools |
180 |
+ ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ |
181 |
+ "${BUILD_DIR}"/src/ || die |
182 |
+ |
183 |
+ emake -C gl -j1 check |
184 |
+ emake -C tests -j1 check |
185 |
+ fi |
186 |
+} |
187 |
+ |
188 |
+multilib_src_install() { |
189 |
+ if multilib_is_native_abi; then |
190 |
+ emake DESTDIR="${D}" install |
191 |
+ else |
192 |
+ emake -C lib DESTDIR="${D}" install |
193 |
+ emake -C extra DESTDIR="${D}" install |
194 |
+ use dane && emake -C libdane DESTDIR="${D}" install |
195 |
+ fi |
196 |
+} |
197 |
+ |
198 |
+multilib_src_install_all() { |
199 |
+ einstalldocs |
200 |
+ prune_libtool_files --all |
201 |
+ |
202 |
+ dodoc doc/certtool.cfg |
203 |
+ |
204 |
+ if use doc; then |
205 |
+ dohtml doc/gnutls.html |
206 |
+ else |
207 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
208 |
+ fi |
209 |
+ |
210 |
+ if use examples; then |
211 |
+ docinto examples |
212 |
+ dodoc doc/examples/*.c |
213 |
+ fi |
214 |
+} |
215 |
|
216 |
diff --git a/net-libs/gnutls/gnutls-3.4.14.ebuild b/net-libs/gnutls/gnutls-3.4.14.ebuild |
217 |
new file mode 100644 |
218 |
index 0000000..ed0dc89 |
219 |
--- /dev/null |
220 |
+++ b/net-libs/gnutls/gnutls-3.4.14.ebuild |
221 |
@@ -0,0 +1,135 @@ |
222 |
+# Copyright 1999-2016 Gentoo Foundation |
223 |
+# Distributed under the terms of the GNU General Public License v2 |
224 |
+# $Id$ |
225 |
+ |
226 |
+EAPI=6 |
227 |
+ |
228 |
+inherit autotools libtool eutils multilib-minimal versionator |
229 |
+ |
230 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
231 |
+HOMEPAGE="http://www.gnutls.org/" |
232 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
233 |
+ |
234 |
+# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
235 |
+# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
236 |
+LICENSE="GPL-3 LGPL-3" |
237 |
+SLOT="0/30" # libgnutls.so number |
238 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
239 |
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
240 |
+IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tools zlib ${IUSE_LINGUAS// / linguas_}" |
241 |
+# heartbeat support is not disabled until re-licensing happens fullyf |
242 |
+ |
243 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
244 |
+# use system libopts |
245 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
246 |
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
247 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
248 |
+ tools? ( sys-devel/autogen ) |
249 |
+ crywrap? ( net-dns/libidn ) |
250 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
251 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
252 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
253 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
254 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
255 |
+ abi_x86_32? ( |
256 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
257 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
258 |
+ )" |
259 |
+DEPEND="${RDEPEND} |
260 |
+ >=sys-devel/automake-1.11.6 |
261 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
262 |
+ doc? ( |
263 |
+ sys-apps/texinfo |
264 |
+ dev-util/gtk-doc |
265 |
+ ) |
266 |
+ nls? ( sys-devel/gettext ) |
267 |
+ test? ( app-misc/datefudge )" |
268 |
+ |
269 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
270 |
+ |
271 |
+PATCHES=( |
272 |
+ "${FILESDIR}/${PN}-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch" |
273 |
+) |
274 |
+ |
275 |
+pkg_setup() { |
276 |
+ # bug#520818 |
277 |
+ export TZ=UTC |
278 |
+} |
279 |
+ |
280 |
+src_prepare() { |
281 |
+ default |
282 |
+ |
283 |
+ sed -i \ |
284 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
285 |
+ doc/Makefile.am || die |
286 |
+ |
287 |
+ # force regeneration of autogen-ed files |
288 |
+ local file |
289 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
290 |
+ rm src/$(basename ${file} .c).{c,h} || die |
291 |
+ done |
292 |
+ |
293 |
+ # force regeneration of makeinfo files |
294 |
+ # have no idea why on some system these files are not |
295 |
+ # accepted as-is, see bug#520818 |
296 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
297 |
+ rm "${file}" || die |
298 |
+ done |
299 |
+ |
300 |
+ eautoreconf |
301 |
+ |
302 |
+ # Use sane .so versioning on FreeBSD. |
303 |
+ elibtoolize |
304 |
+ |
305 |
+ # bug 497472 |
306 |
+ use cxx || epunt_cxx |
307 |
+} |
308 |
+ |
309 |
+multilib_src_configure() { |
310 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
311 |
+ |
312 |
+ # TPM needs to be tested before being enabled |
313 |
+ # hardware-accell is disabled on OSX because the asm files force |
314 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
315 |
+ # complains about duplicate symbols |
316 |
+ ECONF_SOURCE=${S} \ |
317 |
+ econf \ |
318 |
+ --disable-valgrind-tests \ |
319 |
+ --without-included-libtasn1 \ |
320 |
+ --enable-heartbeat-support \ |
321 |
+ $(use_enable cxx) \ |
322 |
+ $(use_enable dane libdane) \ |
323 |
+ $(multilib_native_enable manpages) \ |
324 |
+ $(multilib_native_use_enable tools) \ |
325 |
+ $(multilib_native_use_enable doc) \ |
326 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
327 |
+ $(multilib_native_use_enable guile) \ |
328 |
+ $(multilib_native_use_enable crywrap) \ |
329 |
+ $(multilib_native_use_enable test tests) \ |
330 |
+ $(use_enable nls) \ |
331 |
+ $(use_enable openssl openssl-compatibility) \ |
332 |
+ $(use_enable static-libs static) \ |
333 |
+ $(use_with pkcs11 p11-kit) \ |
334 |
+ $(use_with zlib) \ |
335 |
+ --without-tpm \ |
336 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
337 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
338 |
+} |
339 |
+ |
340 |
+multilib_src_install_all() { |
341 |
+ einstalldocs |
342 |
+ prune_libtool_files --all |
343 |
+ |
344 |
+ dodoc doc/certtool.cfg |
345 |
+ |
346 |
+ if use doc; then |
347 |
+ dohtml doc/gnutls.html |
348 |
+ else |
349 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
350 |
+ fi |
351 |
+ |
352 |
+ if use examples; then |
353 |
+ docinto examples |
354 |
+ dodoc doc/examples/*.c |
355 |
+ fi |
356 |
+} |
357 |
|
358 |
diff --git a/net-libs/gnutls/gnutls-3.5.2.ebuild b/net-libs/gnutls/gnutls-3.5.2.ebuild |
359 |
new file mode 100644 |
360 |
index 0000000..efe6884 |
361 |
--- /dev/null |
362 |
+++ b/net-libs/gnutls/gnutls-3.5.2.ebuild |
363 |
@@ -0,0 +1,127 @@ |
364 |
+# Copyright 1999-2016 Gentoo Foundation |
365 |
+# Distributed under the terms of the GNU General Public License v2 |
366 |
+# $Id$ |
367 |
+ |
368 |
+EAPI=6 |
369 |
+ |
370 |
+inherit autotools libtool eutils multilib-minimal versionator |
371 |
+ |
372 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
373 |
+HOMEPAGE="http://www.gnutls.org/" |
374 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
375 |
+ |
376 |
+# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
377 |
+# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
378 |
+LICENSE="GPL-3 LGPL-3" |
379 |
+SLOT="0/30" # libgnutls.so number |
380 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
381 |
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
382 |
+IUSE="+cxx dane doc examples guile nls +openssl pkcs11 static-libs test +tools zlib ${IUSE_LINGUAS// / linguas_}" |
383 |
+# heartbeat support is not disabled until re-licensing happens fullyf |
384 |
+ |
385 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
386 |
+# use system libopts |
387 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
388 |
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
389 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
390 |
+ tools? ( sys-devel/autogen ) |
391 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
392 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
393 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
394 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
395 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
396 |
+ abi_x86_32? ( |
397 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
398 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
399 |
+ )" |
400 |
+DEPEND="${RDEPEND} |
401 |
+ >=sys-devel/automake-1.11.6 |
402 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
403 |
+ doc? ( |
404 |
+ sys-apps/texinfo |
405 |
+ dev-util/gtk-doc |
406 |
+ ) |
407 |
+ nls? ( sys-devel/gettext ) |
408 |
+ test? ( app-misc/datefudge )" |
409 |
+ |
410 |
+pkg_setup() { |
411 |
+ # bug#520818 |
412 |
+ export TZ=UTC |
413 |
+} |
414 |
+ |
415 |
+src_prepare() { |
416 |
+ default |
417 |
+ |
418 |
+ sed -i \ |
419 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
420 |
+ doc/Makefile.am || die |
421 |
+ |
422 |
+ # force regeneration of autogen-ed files |
423 |
+ local file |
424 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
425 |
+ rm src/$(basename ${file} .c).{c,h} || die |
426 |
+ done |
427 |
+ |
428 |
+ # force regeneration of makeinfo files |
429 |
+ # have no idea why on some system these files are not |
430 |
+ # accepted as-is, see bug#520818 |
431 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
432 |
+ rm "${file}" || die |
433 |
+ done |
434 |
+ |
435 |
+ eautoreconf |
436 |
+ |
437 |
+ # Use sane .so versioning on FreeBSD. |
438 |
+ elibtoolize |
439 |
+ |
440 |
+ # bug 497472 |
441 |
+ use cxx || epunt_cxx |
442 |
+} |
443 |
+ |
444 |
+multilib_src_configure() { |
445 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
446 |
+ |
447 |
+ # TPM needs to be tested before being enabled |
448 |
+ # hardware-accell is disabled on OSX because the asm files force |
449 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
450 |
+ # complains about duplicate symbols |
451 |
+ ECONF_SOURCE=${S} \ |
452 |
+ econf \ |
453 |
+ --disable-valgrind-tests \ |
454 |
+ --without-included-libtasn1 \ |
455 |
+ --enable-heartbeat-support \ |
456 |
+ $(use_enable cxx) \ |
457 |
+ $(use_enable dane libdane) \ |
458 |
+ $(multilib_native_enable manpages) \ |
459 |
+ $(multilib_native_use_enable tools) \ |
460 |
+ $(multilib_native_use_enable doc) \ |
461 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
462 |
+ $(multilib_native_use_enable guile) \ |
463 |
+ $(multilib_native_use_enable test tests) \ |
464 |
+ $(use_enable nls) \ |
465 |
+ $(use_enable openssl openssl-compatibility) \ |
466 |
+ $(use_enable static-libs static) \ |
467 |
+ $(use_with pkcs11 p11-kit) \ |
468 |
+ $(use_with zlib) \ |
469 |
+ --without-tpm \ |
470 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
471 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
472 |
+} |
473 |
+ |
474 |
+multilib_src_install_all() { |
475 |
+ einstalldocs |
476 |
+ prune_libtool_files --all |
477 |
+ |
478 |
+ dodoc doc/certtool.cfg |
479 |
+ |
480 |
+ if use doc; then |
481 |
+ dohtml doc/gnutls.html |
482 |
+ else |
483 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
484 |
+ fi |
485 |
+ |
486 |
+ if use examples; then |
487 |
+ docinto examples |
488 |
+ dodoc doc/examples/*.c |
489 |
+ fi |
490 |
+} |