1 |
commit: 82db6f8f2ab8e9aea76057184f0f2219a94ff243 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 9 20:58:34 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 9 20:58:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82db6f8f |
7 |
|
8 |
net-libs/gnutls: version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-libs/gnutls/Manifest | 3 + |
13 |
net-libs/gnutls/gnutls-3.3.25.ebuild | 182 +++++++++++++++++++++++++++++++++++ |
14 |
net-libs/gnutls/gnutls-3.4.16.ebuild | 132 +++++++++++++++++++++++++ |
15 |
net-libs/gnutls/gnutls-3.5.5.ebuild | 131 +++++++++++++++++++++++++ |
16 |
4 files changed, 448 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest |
19 |
index 2185e4e..7fc29b3 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.3.25.tar.xz 6315372 SHA256 189d6c4e43465d2ec84f2cd66f0ef63657225926f56875e182743cfeef9f1f2e SHA512 6f9074f58250517287d183faac27afcc4318293b24b587b00494d40b6b5dae088fef993b5c2adf6842238adc1f694a747262b50bc602037626579b84401207f6 WHIRLPOOL 3d320378cd8e7330e2b399876bb8739dd35fe2dc1204b0ead561f214676583f2b2c1fa4c5a61b720e3af5c72769e804d9bc36f69f8659eb7a1d6e8a1a7012e2c |
27 |
DIST gnutls-3.4.15.tar.xz 6676480 SHA256 eb2a013905f5f2a0cbf7bcc1d20c85a50065063ee87bd33b496c4e19815e3498 SHA512 03157f2da22890ecd080ad58144a9aabe933382c0b7e969b7b194a0248bb5e6e25207078c0a92755650d0004970eb1c0cf0140dbdbf2e615808f9978e965a5e5 WHIRLPOOL a5f866e44421b6ecb492587f9eee09373fbda0644cc71468995fd2756b620c254c2cd69c07e8db30df415810d1090daf5ea5d50b33f2fda02c0758a7d4ee04e8 |
28 |
+DIST gnutls-3.4.16.tar.xz 6677636 SHA256 d99abb1b320771b58c949bab85e4b654dd1e3e9d92e2572204b7dc479d923927 SHA512 4decbb35b47181e47e601fb40d21b9a6d1a5343cb711db63c816226a4a230b3b0b904da05a1e4c4222fc64014beeb7f62762699cad418004602c7b7b6f19112f WHIRLPOOL 75bc453acc49d96540a088fd50fadbeff008b4e534ffc550dbf170a1c9dd80da2d70e3c6ff5cba4b09946db4277aeeb72aa8dd2d69c0f22655fe0529566a351c |
29 |
DIST gnutls-3.5.4.tar.xz 6930620 SHA256 4e38014332e0f70c5d19b0eca8d85025ccd0d8be85894c0aaa498b42f6b9a8eb SHA512 175aab43b6349a62530938333910feb26ea5d923e151a9942fd5a6989f87193b18862e69bbbdb6308f889585d428d689d8fd3a6e8149f9fd1ac2882802ea6a9f WHIRLPOOL 6625adb815a69ba24e19b7966884f36577e8035272884d3d3b38c813ddd73e211ec3d2180c4e9160ad8459acab0ee72a36b328eae27357d6d1eb6476a06db75a |
30 |
+DIST gnutls-3.5.5.tar.xz 6974628 SHA256 86994fe7804ee16d2811e366b9bf2f75304f8e470ae0e3716d60ffeedac0e529 SHA512 d3065d62d1d1e3ed7079b108e2d71586a14d465886c623e0ec9d6b012645cd4dbe6760da1502ecf4a6a6efa233114ecfbe09a1c1d94688bd0386d55048f9cbef WHIRLPOOL b029d960937dd3a8ef1a3b9ba270b4003732d53f37246b162190813baab39d60c403d1d68ffe16d24efdabf212435bfa59d8fa58d9ca7e3a6029256ca3efe0a9 |
31 |
|
32 |
diff --git a/net-libs/gnutls/gnutls-3.3.25.ebuild b/net-libs/gnutls/gnutls-3.3.25.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000..d412db9 |
35 |
--- /dev/null |
36 |
+++ b/net-libs/gnutls/gnutls-3.3.25.ebuild |
37 |
@@ -0,0 +1,182 @@ |
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 |
+ # remove magic of library detection |
129 |
+ # bug#438222 |
130 |
+ libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')) |
131 |
+ |
132 |
+ # TPM needs to be tested before being enabled |
133 |
+ # hardware-accell is disabled on OSX because the asm files force |
134 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
135 |
+ # complains about duplicate symbols |
136 |
+ ECONF_SOURCE=${S} \ |
137 |
+ econf \ |
138 |
+ --disable-valgrind-tests \ |
139 |
+ --without-included-libtasn1 \ |
140 |
+ --enable-heartbeat-support \ |
141 |
+ $(use_enable cxx) \ |
142 |
+ $(use_enable dane libdane) \ |
143 |
+ $(multilib_native_enable manpages) \ |
144 |
+ $(multilib_native_use_enable doc) \ |
145 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
146 |
+ $(multilib_native_use_enable guile) \ |
147 |
+ $(multilib_native_use_enable crywrap) \ |
148 |
+ $(use_enable nls) \ |
149 |
+ $(use_enable openssl openssl-compatibility) \ |
150 |
+ $(use_enable static-libs static) \ |
151 |
+ $(use_with pkcs11 p11-kit) \ |
152 |
+ $(use_with zlib) \ |
153 |
+ --without-tpm \ |
154 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
155 |
+ "${libconf[@]}" \ |
156 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
157 |
+ |
158 |
+ if multilib_is_native_abi; then |
159 |
+ ln -s "${S}"/doc/reference/html doc/reference/html || die |
160 |
+ fi |
161 |
+} |
162 |
+ |
163 |
+multilib_src_compile() { |
164 |
+ if multilib_is_native_abi; then |
165 |
+ default |
166 |
+ |
167 |
+ # symlink certtool for use in other ABIs |
168 |
+ if use test; then |
169 |
+ ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die |
170 |
+ fi |
171 |
+ else |
172 |
+ emake -C gl |
173 |
+ emake -C lib |
174 |
+ emake -C extra |
175 |
+ use dane && emake -C libdane |
176 |
+ fi |
177 |
+} |
178 |
+ |
179 |
+multilib_src_test() { |
180 |
+ if multilib_is_native_abi; then |
181 |
+ # parallel testing often fails |
182 |
+ emake -j1 check |
183 |
+ else |
184 |
+ # use native ABI tools |
185 |
+ ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ |
186 |
+ "${BUILD_DIR}"/src/ || die |
187 |
+ |
188 |
+ emake -C gl -j1 check |
189 |
+ emake -C tests -j1 check |
190 |
+ fi |
191 |
+} |
192 |
+ |
193 |
+multilib_src_install() { |
194 |
+ if multilib_is_native_abi; then |
195 |
+ emake DESTDIR="${D}" install |
196 |
+ else |
197 |
+ emake -C lib DESTDIR="${D}" install |
198 |
+ emake -C extra DESTDIR="${D}" install |
199 |
+ use dane && emake -C libdane DESTDIR="${D}" install |
200 |
+ fi |
201 |
+} |
202 |
+ |
203 |
+multilib_src_install_all() { |
204 |
+ einstalldocs |
205 |
+ prune_libtool_files --all |
206 |
+ |
207 |
+ dodoc doc/certtool.cfg |
208 |
+ |
209 |
+ if use doc; then |
210 |
+ dohtml doc/gnutls.html |
211 |
+ else |
212 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
213 |
+ fi |
214 |
+ |
215 |
+ if use examples; then |
216 |
+ docinto examples |
217 |
+ dodoc doc/examples/*.c |
218 |
+ fi |
219 |
+} |
220 |
|
221 |
diff --git a/net-libs/gnutls/gnutls-3.4.16.ebuild b/net-libs/gnutls/gnutls-3.4.16.ebuild |
222 |
new file mode 100644 |
223 |
index 00000000..d6af315 |
224 |
--- /dev/null |
225 |
+++ b/net-libs/gnutls/gnutls-3.4.16.ebuild |
226 |
@@ -0,0 +1,132 @@ |
227 |
+# Copyright 1999-2016 Gentoo Foundation |
228 |
+# Distributed under the terms of the GNU General Public License v2 |
229 |
+# $Id$ |
230 |
+ |
231 |
+EAPI=6 |
232 |
+ |
233 |
+inherit autotools libtool eutils multilib-minimal versionator |
234 |
+ |
235 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
236 |
+HOMEPAGE="http://www.gnutls.org/" |
237 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
238 |
+ |
239 |
+LICENSE="GPL-3 LGPL-2.1" |
240 |
+SLOT="0/30" # libgnutls.so number |
241 |
+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" |
242 |
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
243 |
+IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}" |
244 |
+ |
245 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
246 |
+# use system libopts |
247 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
248 |
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
249 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
250 |
+ tools? ( sys-devel/autogen ) |
251 |
+ crywrap? ( net-dns/libidn ) |
252 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
253 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
254 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
255 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
256 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
257 |
+ abi_x86_32? ( |
258 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
259 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
260 |
+ )" |
261 |
+DEPEND="${RDEPEND} |
262 |
+ >=sys-devel/automake-1.11.6 |
263 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
264 |
+ doc? ( |
265 |
+ sys-apps/texinfo |
266 |
+ dev-util/gtk-doc |
267 |
+ ) |
268 |
+ nls? ( sys-devel/gettext ) |
269 |
+ test? ( app-misc/datefudge )" |
270 |
+ |
271 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
272 |
+ |
273 |
+PATCHES=( |
274 |
+ "${FILESDIR}/${PN}-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch" |
275 |
+) |
276 |
+ |
277 |
+pkg_setup() { |
278 |
+ # bug#520818 |
279 |
+ export TZ=UTC |
280 |
+} |
281 |
+ |
282 |
+src_prepare() { |
283 |
+ default |
284 |
+ |
285 |
+ sed -i \ |
286 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
287 |
+ doc/Makefile.am || die |
288 |
+ |
289 |
+ # force regeneration of autogen-ed files |
290 |
+ local file |
291 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
292 |
+ rm src/$(basename ${file} .c).{c,h} || die |
293 |
+ done |
294 |
+ |
295 |
+ # force regeneration of makeinfo files |
296 |
+ # have no idea why on some system these files are not |
297 |
+ # accepted as-is, see bug#520818 |
298 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
299 |
+ rm "${file}" || die |
300 |
+ done |
301 |
+ |
302 |
+ eautoreconf |
303 |
+ |
304 |
+ # Use sane .so versioning on FreeBSD. |
305 |
+ elibtoolize |
306 |
+ |
307 |
+ # bug 497472 |
308 |
+ use cxx || epunt_cxx |
309 |
+} |
310 |
+ |
311 |
+multilib_src_configure() { |
312 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
313 |
+ |
314 |
+ # TPM needs to be tested before being enabled |
315 |
+ # hardware-accell is disabled on OSX because the asm files force |
316 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
317 |
+ # complains about duplicate symbols |
318 |
+ ECONF_SOURCE=${S} \ |
319 |
+ econf \ |
320 |
+ --disable-valgrind-tests \ |
321 |
+ --without-included-libtasn1 \ |
322 |
+ $(use_enable cxx) \ |
323 |
+ $(use_enable dane libdane) \ |
324 |
+ $(multilib_native_enable manpages) \ |
325 |
+ $(multilib_native_use_enable tools) \ |
326 |
+ $(multilib_native_use_enable doc) \ |
327 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
328 |
+ $(multilib_native_use_enable guile) \ |
329 |
+ $(multilib_native_use_enable crywrap) \ |
330 |
+ $(multilib_native_use_enable test tests) \ |
331 |
+ $(use_enable nls) \ |
332 |
+ $(use_enable openssl openssl-compatibility) \ |
333 |
+ $(use_enable tls-heartbeat heartbeat-support) \ |
334 |
+ $(use_enable static-libs static) \ |
335 |
+ $(use_with pkcs11 p11-kit) \ |
336 |
+ $(use_with zlib) \ |
337 |
+ --without-tpm \ |
338 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
339 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
340 |
+} |
341 |
+ |
342 |
+multilib_src_install_all() { |
343 |
+ einstalldocs |
344 |
+ prune_libtool_files --all |
345 |
+ |
346 |
+ dodoc doc/certtool.cfg |
347 |
+ |
348 |
+ if use doc; then |
349 |
+ dohtml doc/gnutls.html |
350 |
+ else |
351 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
352 |
+ fi |
353 |
+ |
354 |
+ if use examples; then |
355 |
+ docinto examples |
356 |
+ dodoc doc/examples/*.c |
357 |
+ fi |
358 |
+} |
359 |
|
360 |
diff --git a/net-libs/gnutls/gnutls-3.5.5.ebuild b/net-libs/gnutls/gnutls-3.5.5.ebuild |
361 |
new file mode 100644 |
362 |
index 00000000..90e11be |
363 |
--- /dev/null |
364 |
+++ b/net-libs/gnutls/gnutls-3.5.5.ebuild |
365 |
@@ -0,0 +1,131 @@ |
366 |
+# Copyright 1999-2016 Gentoo Foundation |
367 |
+# Distributed under the terms of the GNU General Public License v2 |
368 |
+# $Id$ |
369 |
+ |
370 |
+EAPI=6 |
371 |
+ |
372 |
+inherit autotools libtool eutils multilib-minimal versionator |
373 |
+ |
374 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
375 |
+HOMEPAGE="http://www.gnutls.org/" |
376 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
377 |
+ |
378 |
+LICENSE="GPL-3 LGPL-2.1" |
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 sslv2 +sslv3 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}" |
383 |
+ |
384 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
385 |
+# use system libopts |
386 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
387 |
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
388 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
389 |
+ tools? ( sys-devel/autogen ) |
390 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
391 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
392 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
393 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
394 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
395 |
+ abi_x86_32? ( |
396 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
397 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
398 |
+ )" |
399 |
+DEPEND="${RDEPEND} |
400 |
+ >=sys-devel/automake-1.11.6 |
401 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
402 |
+ doc? ( |
403 |
+ sys-apps/texinfo |
404 |
+ dev-util/gtk-doc |
405 |
+ ) |
406 |
+ nls? ( sys-devel/gettext ) |
407 |
+ test? ( app-misc/datefudge )" |
408 |
+ |
409 |
+pkg_setup() { |
410 |
+ # bug#520818 |
411 |
+ export TZ=UTC |
412 |
+} |
413 |
+ |
414 |
+src_prepare() { |
415 |
+ default |
416 |
+ |
417 |
+ sed -i \ |
418 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
419 |
+ doc/Makefile.am || die |
420 |
+ |
421 |
+ # force regeneration of autogen-ed files |
422 |
+ local file |
423 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
424 |
+ rm src/$(basename ${file} .c).{c,h} || die |
425 |
+ done |
426 |
+ |
427 |
+ # force regeneration of makeinfo files |
428 |
+ # have no idea why on some system these files are not |
429 |
+ # accepted as-is, see bug#520818 |
430 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
431 |
+ rm "${file}" || die |
432 |
+ done |
433 |
+ |
434 |
+ eautoreconf |
435 |
+ |
436 |
+ # Use sane .so versioning on FreeBSD. |
437 |
+ elibtoolize |
438 |
+ |
439 |
+ # bug 497472 |
440 |
+ use cxx || epunt_cxx |
441 |
+} |
442 |
+ |
443 |
+multilib_src_configure() { |
444 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
445 |
+ |
446 |
+ # remove magic of library detection |
447 |
+ # bug#438222 |
448 |
+ libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')) |
449 |
+ |
450 |
+ # TPM needs to be tested before being enabled |
451 |
+ # hardware-accell is disabled on OSX because the asm files force |
452 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
453 |
+ # complains about duplicate symbols |
454 |
+ ECONF_SOURCE=${S} \ |
455 |
+ econf \ |
456 |
+ --disable-valgrind-tests \ |
457 |
+ --without-included-libtasn1 \ |
458 |
+ $(use_enable cxx) \ |
459 |
+ $(use_enable dane libdane) \ |
460 |
+ $(multilib_native_enable manpages) \ |
461 |
+ $(multilib_native_use_enable tools) \ |
462 |
+ $(multilib_native_use_enable doc) \ |
463 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
464 |
+ $(multilib_native_use_enable guile) \ |
465 |
+ $(multilib_native_use_enable test tests) \ |
466 |
+ $(use_enable nls) \ |
467 |
+ $(use_enable openssl openssl-compatibility) \ |
468 |
+ $(use_enable tls-heartbeat heartbeat-support) \ |
469 |
+ $(use_enable sslv2 ssl2-support) \ |
470 |
+ $(use_enable sslv3 ssl3-support) \ |
471 |
+ $(use_enable static-libs static) \ |
472 |
+ $(use_with pkcs11 p11-kit) \ |
473 |
+ $(use_with zlib) \ |
474 |
+ --without-tpm \ |
475 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
476 |
+ "${libconf[@]}" \ |
477 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
478 |
+} |
479 |
+ |
480 |
+multilib_src_install_all() { |
481 |
+ einstalldocs |
482 |
+ prune_libtool_files --all |
483 |
+ |
484 |
+ dodoc doc/certtool.cfg |
485 |
+ |
486 |
+ if use doc; then |
487 |
+ dohtml doc/gnutls.html |
488 |
+ else |
489 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
490 |
+ fi |
491 |
+ |
492 |
+ if use examples; then |
493 |
+ docinto examples |
494 |
+ dodoc doc/examples/*.c |
495 |
+ fi |
496 |
+} |