1 |
commit: e82f35439168aa97da119bde18de50f6565e443e |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 23 07:35:40 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 23 07:38:40 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82f3543 |
7 |
|
8 |
net-libs/gnutls: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.0, Repoman-2.3.1 |
11 |
|
12 |
net-libs/gnutls/Manifest | 3 - |
13 |
net-libs/gnutls/gnutls-3.4.16.ebuild | 134 ----------------------------------- |
14 |
net-libs/gnutls/gnutls-3.5.5.ebuild | 133 ---------------------------------- |
15 |
net-libs/gnutls/gnutls-3.5.6.ebuild | 133 ---------------------------------- |
16 |
4 files changed, 403 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest |
19 |
index 6e6232d..610cce3 100644 |
20 |
--- a/net-libs/gnutls/Manifest |
21 |
+++ b/net-libs/gnutls/Manifest |
22 |
@@ -1,7 +1,4 @@ |
23 |
DIST gnutls-3.3.24.tar.xz 6294532 SHA256 5b65fe2a91c8dfa32bedc78acffcb152e5426cd3349e2afc43cccc9bdaf18aa5 SHA512 1fbb2e15ade14db15d7acc9ff559ecfc39517fd99e6c784583a7a4f8786daf8053f35f41e39cde0eeb5a1dfd3193ad908b52f62f945fbd43c147dc87e55f192f WHIRLPOOL 0725b35af9bbb4a7ee8f430af95e078066fb455328dd0ee71cca6633d093fe0433c7d869ebf0fabf8983679a32ff8451a2b631aec672810eb7bc55a3de28cc7d |
24 |
DIST gnutls-3.3.25.tar.xz 6315372 SHA256 189d6c4e43465d2ec84f2cd66f0ef63657225926f56875e182743cfeef9f1f2e SHA512 6f9074f58250517287d183faac27afcc4318293b24b587b00494d40b6b5dae088fef993b5c2adf6842238adc1f694a747262b50bc602037626579b84401207f6 WHIRLPOOL 3d320378cd8e7330e2b399876bb8739dd35fe2dc1204b0ead561f214676583f2b2c1fa4c5a61b720e3af5c72769e804d9bc36f69f8659eb7a1d6e8a1a7012e2c |
25 |
-DIST gnutls-3.4.16.tar.xz 6677636 SHA256 d99abb1b320771b58c949bab85e4b654dd1e3e9d92e2572204b7dc479d923927 SHA512 4decbb35b47181e47e601fb40d21b9a6d1a5343cb711db63c816226a4a230b3b0b904da05a1e4c4222fc64014beeb7f62762699cad418004602c7b7b6f19112f WHIRLPOOL 75bc453acc49d96540a088fd50fadbeff008b4e534ffc550dbf170a1c9dd80da2d70e3c6ff5cba4b09946db4277aeeb72aa8dd2d69c0f22655fe0529566a351c |
26 |
DIST gnutls-3.4.17.tar.xz 6709492 SHA256 9b50e8a670d5e950425d96935c7ddd415eb6f8079615a36df425f09a3143172e SHA512 a0a578034e8092dd422dc310a655fda3c4a2de5cb06745d9b47bb39734cb983902553b56dfbbabc618b3824defc62489b1b3c8de3b824b97b28273ddedd06ea7 WHIRLPOOL 6352f3caad1b8f93fa57a16a3187a6aca4df761bd4409e6f704f13ea22a53aa3bce75190d5dba4d41c1be72b5a5ee794c32c4d30fb4761f22e0f2a97d8507bb2 |
27 |
-DIST gnutls-3.5.5.tar.xz 6974628 SHA256 86994fe7804ee16d2811e366b9bf2f75304f8e470ae0e3716d60ffeedac0e529 SHA512 d3065d62d1d1e3ed7079b108e2d71586a14d465886c623e0ec9d6b012645cd4dbe6760da1502ecf4a6a6efa233114ecfbe09a1c1d94688bd0386d55048f9cbef WHIRLPOOL b029d960937dd3a8ef1a3b9ba270b4003732d53f37246b162190813baab39d60c403d1d68ffe16d24efdabf212435bfa59d8fa58d9ca7e3a6029256ca3efe0a9 |
28 |
-DIST gnutls-3.5.6.tar.xz 7087388 SHA256 6338b715bf31c758606ffa489c7f87ee1beab947114fbd2ffefd73170a8c6b9a SHA512 8bad0f159bb605b732ea695dd6643edbd059364895e607332565dd5896db72fe93bf1fb264c98b59250f022c7dfed5e6cf3a941f1dac59b43ac09450c87c094d WHIRLPOOL ad806fb86be7d7cc8347585bb1de0f13d7f179776430530a09015d215a8bbebd311224aebc2abbdbb037866f2756e5fdfcf04d363cf5366eddfdc5e01671f3d1 |
29 |
DIST gnutls-3.5.7.tar.xz 7265264 SHA256 60cbfc119e6268cfa38d712621daa473298a0c5b129c0842caec4c1ed4d7861a SHA512 0854ed307c428f9881ea9764086c08efc64277a268ddcfb00ea4e86511c14ce0325e235db1f39f1cf3993faa972e2322ae2b162cec707728959a6b8dc4a235e1 WHIRLPOOL 4c1fb572c6943080bba654da10b4dc29b8e95b2b6e3ef59db2de8f9aa0767696b2399c64b8ff158966b02e76abe16d5835fdafc83079adf4cedb85b23997f1bf |
30 |
|
31 |
diff --git a/net-libs/gnutls/gnutls-3.4.16.ebuild b/net-libs/gnutls/gnutls-3.4.16.ebuild |
32 |
deleted file mode 100644 |
33 |
index 0939ac9..00000000 |
34 |
--- a/net-libs/gnutls/gnutls-3.4.16.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,134 +0,0 @@ |
37 |
-# Copyright 1999-2016 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
-# $Id$ |
40 |
- |
41 |
-EAPI=6 |
42 |
- |
43 |
-inherit autotools libtool eutils multilib-minimal versionator |
44 |
- |
45 |
-DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
46 |
-HOMEPAGE="http://www.gnutls.org/" |
47 |
-SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
48 |
- |
49 |
-LICENSE="GPL-3 LGPL-2.1" |
50 |
-SLOT="0/30" # libgnutls.so number |
51 |
-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" |
52 |
-IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
53 |
-IUSE="+cxx +crywrap dane doc examples guile idn nls +openssl pkcs11 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}" |
54 |
- |
55 |
-# NOTICE: sys-devel/autogen is required at runtime as we |
56 |
-# use system libopts |
57 |
-RDEPEND=">=dev-libs/libtasn1-4.3:=[${MULTILIB_USEDEP}] |
58 |
- >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
59 |
- >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}] |
60 |
- tools? ( sys-devel/autogen ) |
61 |
- crywrap? ( net-dns/libidn ) |
62 |
- dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
63 |
- guile? ( >=dev-scheme/guile-1.8:=[networking] ) |
64 |
- nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
65 |
- pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
66 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
67 |
- idn? ( net-dns/libidn[${MULTILIB_USEDEP}] ) |
68 |
- abi_x86_32? ( |
69 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508 |
70 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
71 |
- )" |
72 |
-DEPEND="${RDEPEND} |
73 |
- >=sys-devel/automake-1.11.6 |
74 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
75 |
- doc? ( |
76 |
- sys-apps/texinfo |
77 |
- dev-util/gtk-doc |
78 |
- ) |
79 |
- nls? ( sys-devel/gettext ) |
80 |
- test? ( app-misc/datefudge )" |
81 |
- |
82 |
-DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
83 |
- |
84 |
-PATCHES=( |
85 |
- "${FILESDIR}/${PN}-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch" |
86 |
-) |
87 |
- |
88 |
-pkg_setup() { |
89 |
- # bug#520818 |
90 |
- export TZ=UTC |
91 |
-} |
92 |
- |
93 |
-src_prepare() { |
94 |
- default |
95 |
- |
96 |
- sed -i \ |
97 |
- -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
98 |
- doc/Makefile.am || die |
99 |
- |
100 |
- # force regeneration of autogen-ed files |
101 |
- local file |
102 |
- for file in $(grep -l AutoGen-ed src/*.c) ; do |
103 |
- rm src/$(basename ${file} .c).{c,h} || die |
104 |
- done |
105 |
- |
106 |
- # force regeneration of makeinfo files |
107 |
- # have no idea why on some system these files are not |
108 |
- # accepted as-is, see bug#520818 |
109 |
- for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
110 |
- rm "${file}" || die |
111 |
- done |
112 |
- |
113 |
- eautoreconf |
114 |
- |
115 |
- # Use sane .so versioning on FreeBSD. |
116 |
- elibtoolize |
117 |
- |
118 |
- # bug 497472 |
119 |
- use cxx || epunt_cxx |
120 |
-} |
121 |
- |
122 |
-multilib_src_configure() { |
123 |
- LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
124 |
- |
125 |
- # TPM needs to be tested before being enabled |
126 |
- # hardware-accell is disabled on OSX because the asm files force |
127 |
- # GNU-stack (as doesn't support that) and when that's removed ld |
128 |
- # complains about duplicate symbols |
129 |
- ECONF_SOURCE=${S} \ |
130 |
- econf \ |
131 |
- --disable-valgrind-tests \ |
132 |
- --without-included-libtasn1 \ |
133 |
- $(use_enable cxx) \ |
134 |
- $(use_enable dane libdane) \ |
135 |
- $(multilib_native_enable manpages) \ |
136 |
- $(multilib_native_use_enable tools) \ |
137 |
- $(multilib_native_use_enable doc) \ |
138 |
- $(multilib_native_use_enable doc gtk-doc) \ |
139 |
- $(multilib_native_use_enable guile) \ |
140 |
- $(multilib_native_use_enable crywrap) \ |
141 |
- $(multilib_native_use_enable test tests) \ |
142 |
- $(use_enable nls) \ |
143 |
- $(use_enable openssl openssl-compatibility) \ |
144 |
- $(use_enable tls-heartbeat heartbeat-support) \ |
145 |
- $(use_enable static-libs static) \ |
146 |
- $(use_with pkcs11 p11-kit) \ |
147 |
- $(use_with zlib) \ |
148 |
- $(use_with idn) \ |
149 |
- --without-tpm \ |
150 |
- --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
151 |
- $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
152 |
-} |
153 |
- |
154 |
-multilib_src_install_all() { |
155 |
- einstalldocs |
156 |
- prune_libtool_files --all |
157 |
- |
158 |
- dodoc doc/certtool.cfg |
159 |
- |
160 |
- if use doc; then |
161 |
- dohtml doc/gnutls.html |
162 |
- else |
163 |
- rm -fr "${ED}/usr/share/doc/${PF}/html" |
164 |
- fi |
165 |
- |
166 |
- if use examples; then |
167 |
- docinto examples |
168 |
- dodoc doc/examples/*.c |
169 |
- fi |
170 |
-} |
171 |
|
172 |
diff --git a/net-libs/gnutls/gnutls-3.5.5.ebuild b/net-libs/gnutls/gnutls-3.5.5.ebuild |
173 |
deleted file mode 100644 |
174 |
index d0c39fb..00000000 |
175 |
--- a/net-libs/gnutls/gnutls-3.5.5.ebuild |
176 |
+++ /dev/null |
177 |
@@ -1,133 +0,0 @@ |
178 |
-# Copyright 1999-2016 Gentoo Foundation |
179 |
-# Distributed under the terms of the GNU General Public License v2 |
180 |
-# $Id$ |
181 |
- |
182 |
-EAPI=6 |
183 |
- |
184 |
-inherit autotools libtool eutils multilib-minimal versionator |
185 |
- |
186 |
-DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
187 |
-HOMEPAGE="http://www.gnutls.org/" |
188 |
-SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
189 |
- |
190 |
-LICENSE="GPL-3 LGPL-2.1" |
191 |
-SLOT="0/30" # libgnutls.so number |
192 |
-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" |
193 |
-IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
194 |
-IUSE="+cxx dane doc examples guile idn nls +openssl pkcs11 sslv2 +sslv3 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}" |
195 |
- |
196 |
-# NOTICE: sys-devel/autogen is required at runtime as we |
197 |
-# use system libopts |
198 |
-RDEPEND=">=dev-libs/libtasn1-4.3:=[${MULTILIB_USEDEP}] |
199 |
- >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
200 |
- >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}] |
201 |
- tools? ( sys-devel/autogen ) |
202 |
- dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
203 |
- guile? ( >=dev-scheme/guile-1.8:=[networking] ) |
204 |
- nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
205 |
- pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
206 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
207 |
- idn? ( net-dns/libidn[${MULTILIB_USEDEP}] ) |
208 |
- abi_x86_32? ( |
209 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508 |
210 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
211 |
- )" |
212 |
-DEPEND="${RDEPEND} |
213 |
- >=sys-devel/automake-1.11.6 |
214 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
215 |
- doc? ( |
216 |
- sys-apps/texinfo |
217 |
- dev-util/gtk-doc |
218 |
- ) |
219 |
- nls? ( sys-devel/gettext ) |
220 |
- test? ( app-misc/datefudge )" |
221 |
- |
222 |
-pkg_setup() { |
223 |
- # bug#520818 |
224 |
- export TZ=UTC |
225 |
-} |
226 |
- |
227 |
-src_prepare() { |
228 |
- default |
229 |
- |
230 |
- sed -i \ |
231 |
- -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
232 |
- doc/Makefile.am || die |
233 |
- |
234 |
- # force regeneration of autogen-ed files |
235 |
- local file |
236 |
- for file in $(grep -l AutoGen-ed src/*.c) ; do |
237 |
- rm src/$(basename ${file} .c).{c,h} || die |
238 |
- done |
239 |
- |
240 |
- # force regeneration of makeinfo files |
241 |
- # have no idea why on some system these files are not |
242 |
- # accepted as-is, see bug#520818 |
243 |
- for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
244 |
- rm "${file}" || die |
245 |
- done |
246 |
- |
247 |
- eautoreconf |
248 |
- |
249 |
- # Use sane .so versioning on FreeBSD. |
250 |
- elibtoolize |
251 |
- |
252 |
- # bug 497472 |
253 |
- use cxx || epunt_cxx |
254 |
-} |
255 |
- |
256 |
-multilib_src_configure() { |
257 |
- LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
258 |
- |
259 |
- # remove magic of library detection |
260 |
- # bug#438222 |
261 |
- libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')) |
262 |
- |
263 |
- # TPM needs to be tested before being enabled |
264 |
- # hardware-accell is disabled on OSX because the asm files force |
265 |
- # GNU-stack (as doesn't support that) and when that's removed ld |
266 |
- # complains about duplicate symbols |
267 |
- ECONF_SOURCE=${S} \ |
268 |
- econf \ |
269 |
- --disable-valgrind-tests \ |
270 |
- --without-included-libtasn1 \ |
271 |
- $(use_enable cxx) \ |
272 |
- $(use_enable dane libdane) \ |
273 |
- $(multilib_native_enable manpages) \ |
274 |
- $(multilib_native_use_enable tools) \ |
275 |
- $(multilib_native_use_enable doc) \ |
276 |
- $(multilib_native_use_enable doc gtk-doc) \ |
277 |
- $(multilib_native_use_enable guile) \ |
278 |
- $(multilib_native_use_enable test tests) \ |
279 |
- $(use_enable nls) \ |
280 |
- $(use_enable openssl openssl-compatibility) \ |
281 |
- $(use_enable tls-heartbeat heartbeat-support) \ |
282 |
- $(use_enable sslv2 ssl2-support) \ |
283 |
- $(use_enable sslv3 ssl3-support) \ |
284 |
- $(use_enable static-libs static) \ |
285 |
- $(use_with pkcs11 p11-kit) \ |
286 |
- $(use_with zlib) \ |
287 |
- $(use_with idn) \ |
288 |
- --without-tpm \ |
289 |
- --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
290 |
- "${libconf[@]}" \ |
291 |
- $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
292 |
-} |
293 |
- |
294 |
-multilib_src_install_all() { |
295 |
- einstalldocs |
296 |
- prune_libtool_files --all |
297 |
- |
298 |
- dodoc doc/certtool.cfg |
299 |
- |
300 |
- if use doc; then |
301 |
- dohtml doc/gnutls.html |
302 |
- else |
303 |
- rm -fr "${ED}/usr/share/doc/${PF}/html" |
304 |
- fi |
305 |
- |
306 |
- if use examples; then |
307 |
- docinto examples |
308 |
- dodoc doc/examples/*.c |
309 |
- fi |
310 |
-} |
311 |
|
312 |
diff --git a/net-libs/gnutls/gnutls-3.5.6.ebuild b/net-libs/gnutls/gnutls-3.5.6.ebuild |
313 |
deleted file mode 100644 |
314 |
index d0c39fb..00000000 |
315 |
--- a/net-libs/gnutls/gnutls-3.5.6.ebuild |
316 |
+++ /dev/null |
317 |
@@ -1,133 +0,0 @@ |
318 |
-# Copyright 1999-2016 Gentoo Foundation |
319 |
-# Distributed under the terms of the GNU General Public License v2 |
320 |
-# $Id$ |
321 |
- |
322 |
-EAPI=6 |
323 |
- |
324 |
-inherit autotools libtool eutils multilib-minimal versionator |
325 |
- |
326 |
-DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
327 |
-HOMEPAGE="http://www.gnutls.org/" |
328 |
-SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
329 |
- |
330 |
-LICENSE="GPL-3 LGPL-2.1" |
331 |
-SLOT="0/30" # libgnutls.so number |
332 |
-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" |
333 |
-IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
334 |
-IUSE="+cxx dane doc examples guile idn nls +openssl pkcs11 sslv2 +sslv3 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}" |
335 |
- |
336 |
-# NOTICE: sys-devel/autogen is required at runtime as we |
337 |
-# use system libopts |
338 |
-RDEPEND=">=dev-libs/libtasn1-4.3:=[${MULTILIB_USEDEP}] |
339 |
- >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
340 |
- >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}] |
341 |
- tools? ( sys-devel/autogen ) |
342 |
- dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
343 |
- guile? ( >=dev-scheme/guile-1.8:=[networking] ) |
344 |
- nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
345 |
- pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
346 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
347 |
- idn? ( net-dns/libidn[${MULTILIB_USEDEP}] ) |
348 |
- abi_x86_32? ( |
349 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508 |
350 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
351 |
- )" |
352 |
-DEPEND="${RDEPEND} |
353 |
- >=sys-devel/automake-1.11.6 |
354 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
355 |
- doc? ( |
356 |
- sys-apps/texinfo |
357 |
- dev-util/gtk-doc |
358 |
- ) |
359 |
- nls? ( sys-devel/gettext ) |
360 |
- test? ( app-misc/datefudge )" |
361 |
- |
362 |
-pkg_setup() { |
363 |
- # bug#520818 |
364 |
- export TZ=UTC |
365 |
-} |
366 |
- |
367 |
-src_prepare() { |
368 |
- default |
369 |
- |
370 |
- sed -i \ |
371 |
- -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
372 |
- doc/Makefile.am || die |
373 |
- |
374 |
- # force regeneration of autogen-ed files |
375 |
- local file |
376 |
- for file in $(grep -l AutoGen-ed src/*.c) ; do |
377 |
- rm src/$(basename ${file} .c).{c,h} || die |
378 |
- done |
379 |
- |
380 |
- # force regeneration of makeinfo files |
381 |
- # have no idea why on some system these files are not |
382 |
- # accepted as-is, see bug#520818 |
383 |
- for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
384 |
- rm "${file}" || die |
385 |
- done |
386 |
- |
387 |
- eautoreconf |
388 |
- |
389 |
- # Use sane .so versioning on FreeBSD. |
390 |
- elibtoolize |
391 |
- |
392 |
- # bug 497472 |
393 |
- use cxx || epunt_cxx |
394 |
-} |
395 |
- |
396 |
-multilib_src_configure() { |
397 |
- LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
398 |
- |
399 |
- # remove magic of library detection |
400 |
- # bug#438222 |
401 |
- libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')) |
402 |
- |
403 |
- # TPM needs to be tested before being enabled |
404 |
- # hardware-accell is disabled on OSX because the asm files force |
405 |
- # GNU-stack (as doesn't support that) and when that's removed ld |
406 |
- # complains about duplicate symbols |
407 |
- ECONF_SOURCE=${S} \ |
408 |
- econf \ |
409 |
- --disable-valgrind-tests \ |
410 |
- --without-included-libtasn1 \ |
411 |
- $(use_enable cxx) \ |
412 |
- $(use_enable dane libdane) \ |
413 |
- $(multilib_native_enable manpages) \ |
414 |
- $(multilib_native_use_enable tools) \ |
415 |
- $(multilib_native_use_enable doc) \ |
416 |
- $(multilib_native_use_enable doc gtk-doc) \ |
417 |
- $(multilib_native_use_enable guile) \ |
418 |
- $(multilib_native_use_enable test tests) \ |
419 |
- $(use_enable nls) \ |
420 |
- $(use_enable openssl openssl-compatibility) \ |
421 |
- $(use_enable tls-heartbeat heartbeat-support) \ |
422 |
- $(use_enable sslv2 ssl2-support) \ |
423 |
- $(use_enable sslv3 ssl3-support) \ |
424 |
- $(use_enable static-libs static) \ |
425 |
- $(use_with pkcs11 p11-kit) \ |
426 |
- $(use_with zlib) \ |
427 |
- $(use_with idn) \ |
428 |
- --without-tpm \ |
429 |
- --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
430 |
- "${libconf[@]}" \ |
431 |
- $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
432 |
-} |
433 |
- |
434 |
-multilib_src_install_all() { |
435 |
- einstalldocs |
436 |
- prune_libtool_files --all |
437 |
- |
438 |
- dodoc doc/certtool.cfg |
439 |
- |
440 |
- if use doc; then |
441 |
- dohtml doc/gnutls.html |
442 |
- else |
443 |
- rm -fr "${ED}/usr/share/doc/${PF}/html" |
444 |
- fi |
445 |
- |
446 |
- if use examples; then |
447 |
- docinto examples |
448 |
- dodoc doc/examples/*.c |
449 |
- fi |
450 |
-} |