1 |
commit: 889e8739bff6a40f17f0ac794c988a5ab01c4018 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 22 14:29:20 2015 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 22 14:29:20 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=889e8739 |
7 |
|
8 |
net-libs/gnutls: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
net-libs/gnutls/Manifest | 2 + |
13 |
net-libs/gnutls/gnutls-3.3.19.ebuild | 174 +++++++++++++++++++++++++++++++++++ |
14 |
net-libs/gnutls/gnutls-3.4.7.ebuild | 132 ++++++++++++++++++++++++++ |
15 |
3 files changed, 308 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest |
18 |
index c532ffc..a3c98de 100644 |
19 |
--- a/net-libs/gnutls/Manifest |
20 |
+++ b/net-libs/gnutls/Manifest |
21 |
@@ -1,4 +1,6 @@ |
22 |
DIST gnutls-3.3.17.1.tar.xz 6339588 SHA256 b40f158030a92f450a07b20300a3996710ca19800848d9f6fd62493170c5bbb4 SHA512 9f2945abe1251db176fa227f2c90be46dba831af97647f04b960c71a50fc597776be31080733f9417f2242c4c6ae92fa897bf02d5f2ba40863e94df245c03319 WHIRLPOOL 8a04e56a5f47ddaad106081a613ead85a107b013d3e894074745e9439e0a7797b7f528aab5db7e3ac808f1c5c361c4717d7f0cb3abc943a6f912e5b6981db320 |
23 |
DIST gnutls-3.3.18.tar.xz 6275948 SHA256 7a87e7f486d1ada10007356917a412cde6c6114dac018e3569e3aa09e9f29395 SHA512 e7c972458ad0af401121c705ebe86aafa46c02743d963b1b67ca09192c746a9193c73d28501b6c046435259b40ac0f8d201860cd6cf6240a7783b6c01b64286c WHIRLPOOL ce2134515d234d6dbceebefd5602bc7f0d96faff839055fd401149c6969a245f5284d7e29ae2eca810fa6039d7184477b9fda2ae0faa379262434927320ebde3 |
24 |
+DIST gnutls-3.3.19.tar.xz 6280376 SHA256 888d8779b48f21959b33d4d9ad0b546e5ec3dea20abf0d9bb03869d56b1f44cf SHA512 d204ba16d5806d8a19df1825ceee49583b0d34ea212fe40e8d81a28f8843e18b211af5b8455fc0c84c0643fc23b12bd6434e6174170382d8e732e32f0d1f2fa2 WHIRLPOOL 7b68978de61edef731268a9ed7405735e589e1f6180a05e5f7b5466f1fde898da42ab9116242f2b210571c60c7f7ea1a4136323fd2dd305ebe442ec066092ee4 |
25 |
DIST gnutls-3.4.5.tar.xz 6552036 SHA256 af88b8e0460728d034ff3f454f7851a09b7f0959a93531b6f8d35658ef0f7aae SHA512 16dfdaecbcc0b02ea762def35724a3433063136429d0eb67d9e009ced14a6ddddfa567f41e03a4fda9c4f68e3625bac41e8966882257099413c9500e33171a2f WHIRLPOOL 9274ae5660ac3f6da839f6a7fe3df4042155259170b069b8b54772d77b18564cc5f5337acc475d0936afe855fe9e046a1fb167bbd6842063c9c0335d218f4393 |
26 |
DIST gnutls-3.4.6.tar.xz 6591628 SHA256 feb559ed7fffa24d5aa40527054fae5cb7f7b66e9f2bebc2383a781dfa4d20ec SHA512 c81da5bba3b28ab17ef762d8c6a6607745f1fa7177e0fdaacd374ac0ee64c14cd804e048aeb965383fafaa677ba2ed256c709a117f8a95012f8494c650d29c81 WHIRLPOOL c1c6a3a7ad3d046058d2fbc0d380d453e35567eed7f602184b577dea215ee8018f82a76684646513926473f4a504348390912ab3cd7ce5f3c1c5e11cf869f09b |
27 |
+DIST gnutls-3.4.7.tar.xz 6613096 SHA256 c1be9e4b30295d7b5f96fa332c6a908e6fa2254377b67811301fca92eb882e5a SHA512 fdfca4c37292ee07d2d1e398380afe79a20f56040a7c84deb7a5b5221f3bcb4080471b9644c7f2bacb42247c3cc62e32a511f1e2ec6e31c15d9b08b20e8050b6 WHIRLPOOL b56e54c13c33fd74076caf29062cb0c6b38afecfe044a6d7db9b3eef3379a133fb327527ddf07c333783266f00b970aec33b2bb2a21e8b35ceaee0d934456aee |
28 |
|
29 |
diff --git a/net-libs/gnutls/gnutls-3.3.19.ebuild b/net-libs/gnutls/gnutls-3.3.19.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..12700eb |
32 |
--- /dev/null |
33 |
+++ b/net-libs/gnutls/gnutls-3.3.19.ebuild |
34 |
@@ -0,0 +1,174 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+inherit autotools libtool eutils multilib-minimal versionator |
42 |
+ |
43 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
44 |
+HOMEPAGE="http://www.gnutls.org/" |
45 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
46 |
+ |
47 |
+# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
48 |
+# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
49 |
+LICENSE="GPL-3 LGPL-3" |
50 |
+SLOT="0" |
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 nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}" |
54 |
+# heartbeat support is not disabled until re-licensing happens fullyf |
55 |
+ |
56 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
57 |
+# use system libopts |
58 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
59 |
+ >=dev-libs/nettle-2.7:=[gmp,${MULTILIB_USEDEP}] |
60 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
61 |
+ sys-devel/autogen |
62 |
+ crywrap? ( net-dns/libidn ) |
63 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
64 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
65 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
66 |
+ pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] ) |
67 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${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 |
+pkg_setup() { |
85 |
+ # bug#520818 |
86 |
+ export TZ=UTC |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ sed -i \ |
91 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
92 |
+ doc/Makefile.am || die |
93 |
+ |
94 |
+ # force regeneration of autogen-ed files |
95 |
+ local file |
96 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
97 |
+ rm src/$(basename ${file} .c).{c,h} || die |
98 |
+ done |
99 |
+ |
100 |
+ # force regeneration of makeinfo files |
101 |
+ # have no idea why on some system these files are not |
102 |
+ # accepted as-is, see bug#520818 |
103 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
104 |
+ rm "${file}" || die |
105 |
+ done |
106 |
+ |
107 |
+ # support user patches |
108 |
+ epatch_user |
109 |
+ |
110 |
+ eautoreconf |
111 |
+ |
112 |
+ # Use sane .so versioning on FreeBSD. |
113 |
+ elibtoolize |
114 |
+ |
115 |
+ # bug 497472 |
116 |
+ use cxx || epunt_cxx |
117 |
+} |
118 |
+ |
119 |
+multilib_src_configure() { |
120 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
121 |
+ |
122 |
+ # TPM needs to be tested before being enabled |
123 |
+ # hardware-accell is disabled on OSX because the asm files force |
124 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
125 |
+ # complains about duplicate symbols |
126 |
+ ECONF_SOURCE=${S} \ |
127 |
+ econf \ |
128 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
129 |
+ --disable-valgrind-tests \ |
130 |
+ --without-included-libtasn1 \ |
131 |
+ --enable-heartbeat-support \ |
132 |
+ $(use_enable cxx) \ |
133 |
+ $(use_enable dane libdane) \ |
134 |
+ $(multilib_native_use_enable doc) \ |
135 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
136 |
+ $(multilib_native_use_enable guile) \ |
137 |
+ $(multilib_native_use_enable crywrap) \ |
138 |
+ $(use_enable nls) \ |
139 |
+ $(use_enable openssl openssl-compatibility) \ |
140 |
+ $(use_enable static-libs static) \ |
141 |
+ $(use_with pkcs11 p11-kit) \ |
142 |
+ $(use_with zlib) \ |
143 |
+ --without-tpm \ |
144 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
145 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
146 |
+ |
147 |
+ if multilib_is_native_abi; then |
148 |
+ ln -s "${S}"/doc/reference/html doc/reference/html || die |
149 |
+ fi |
150 |
+} |
151 |
+ |
152 |
+multilib_src_compile() { |
153 |
+ if multilib_is_native_abi; then |
154 |
+ default |
155 |
+ |
156 |
+ # symlink certtool for use in other ABIs |
157 |
+ if use test; then |
158 |
+ ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die |
159 |
+ fi |
160 |
+ else |
161 |
+ emake -C gl |
162 |
+ emake -C lib |
163 |
+ emake -C extra |
164 |
+ use dane && emake -C libdane |
165 |
+ fi |
166 |
+} |
167 |
+ |
168 |
+multilib_src_test() { |
169 |
+ if multilib_is_native_abi; then |
170 |
+ # parallel testing often fails |
171 |
+ emake -j1 check |
172 |
+ else |
173 |
+ # use native ABI tools |
174 |
+ ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ |
175 |
+ "${BUILD_DIR}"/src/ || die |
176 |
+ |
177 |
+ emake -C gl -j1 check |
178 |
+ emake -C tests -j1 check |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+multilib_src_install() { |
183 |
+ if multilib_is_native_abi; then |
184 |
+ emake DESTDIR="${D}" install |
185 |
+ else |
186 |
+ emake -C lib DESTDIR="${D}" install |
187 |
+ emake -C extra DESTDIR="${D}" install |
188 |
+ use dane && emake -C libdane DESTDIR="${D}" install |
189 |
+ fi |
190 |
+} |
191 |
+ |
192 |
+multilib_src_install_all() { |
193 |
+ einstalldocs |
194 |
+ prune_libtool_files --all |
195 |
+ |
196 |
+ dodoc doc/certtool.cfg |
197 |
+ |
198 |
+ if use doc; then |
199 |
+ dohtml doc/gnutls.html |
200 |
+ else |
201 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
202 |
+ fi |
203 |
+ |
204 |
+ if use examples; then |
205 |
+ docinto examples |
206 |
+ dodoc doc/examples/*.c |
207 |
+ fi |
208 |
+} |
209 |
|
210 |
diff --git a/net-libs/gnutls/gnutls-3.4.7.ebuild b/net-libs/gnutls/gnutls-3.4.7.ebuild |
211 |
new file mode 100644 |
212 |
index 0000000..b0bc173 |
213 |
--- /dev/null |
214 |
+++ b/net-libs/gnutls/gnutls-3.4.7.ebuild |
215 |
@@ -0,0 +1,132 @@ |
216 |
+# Copyright 1999-2015 Gentoo Foundation |
217 |
+# Distributed under the terms of the GNU General Public License v2 |
218 |
+# $Id$ |
219 |
+ |
220 |
+EAPI=5 |
221 |
+ |
222 |
+inherit autotools libtool eutils multilib-minimal versionator |
223 |
+ |
224 |
+DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
225 |
+HOMEPAGE="http://www.gnutls.org/" |
226 |
+SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
227 |
+ |
228 |
+# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
229 |
+# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
230 |
+LICENSE="GPL-3 LGPL-3" |
231 |
+SLOT="0/30" # libgnutls.so number |
232 |
+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" |
233 |
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
234 |
+IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tools zlib ${IUSE_LINGUAS// / linguas_}" |
235 |
+# heartbeat support is not disabled until re-licensing happens fullyf |
236 |
+ |
237 |
+# NOTICE: sys-devel/autogen is required at runtime as we |
238 |
+# use system libopts |
239 |
+RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}] |
240 |
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}] |
241 |
+ >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
242 |
+ tools? ( sys-devel/autogen ) |
243 |
+ crywrap? ( net-dns/libidn ) |
244 |
+ dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
245 |
+ guile? ( >=dev-scheme/guile-1.8:*[networking] ) |
246 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
247 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) |
248 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
249 |
+ abi_x86_32? ( |
250 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508 |
251 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
252 |
+ )" |
253 |
+DEPEND="${RDEPEND} |
254 |
+ >=sys-devel/automake-1.11.6 |
255 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
256 |
+ doc? ( |
257 |
+ sys-apps/texinfo |
258 |
+ dev-util/gtk-doc |
259 |
+ ) |
260 |
+ nls? ( sys-devel/gettext ) |
261 |
+ test? ( app-misc/datefudge )" |
262 |
+ |
263 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
264 |
+ |
265 |
+pkg_setup() { |
266 |
+ # bug#520818 |
267 |
+ export TZ=UTC |
268 |
+} |
269 |
+ |
270 |
+src_prepare() { |
271 |
+ sed -i \ |
272 |
+ -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
273 |
+ doc/Makefile.am || die |
274 |
+ |
275 |
+ # force regeneration of autogen-ed files |
276 |
+ local file |
277 |
+ for file in $(grep -l AutoGen-ed src/*.c) ; do |
278 |
+ rm src/$(basename ${file} .c).{c,h} || die |
279 |
+ done |
280 |
+ |
281 |
+ # force regeneration of makeinfo files |
282 |
+ # have no idea why on some system these files are not |
283 |
+ # accepted as-is, see bug#520818 |
284 |
+ for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
285 |
+ rm "${file}" || die |
286 |
+ done |
287 |
+ |
288 |
+ # support user patches |
289 |
+ epatch_user |
290 |
+ |
291 |
+ eautoreconf |
292 |
+ |
293 |
+ # Use sane .so versioning on FreeBSD. |
294 |
+ elibtoolize |
295 |
+ |
296 |
+ # bug 497472 |
297 |
+ use cxx || epunt_cxx |
298 |
+} |
299 |
+ |
300 |
+multilib_src_configure() { |
301 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
302 |
+ |
303 |
+ # TPM needs to be tested before being enabled |
304 |
+ # hardware-accell is disabled on OSX because the asm files force |
305 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
306 |
+ # complains about duplicate symbols |
307 |
+ ECONF_SOURCE=${S} \ |
308 |
+ econf \ |
309 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
310 |
+ --disable-valgrind-tests \ |
311 |
+ --without-included-libtasn1 \ |
312 |
+ --enable-heartbeat-support \ |
313 |
+ $(use_enable cxx) \ |
314 |
+ $(use_enable dane libdane) \ |
315 |
+ $(multilib_native_use_enable tools) \ |
316 |
+ $(multilib_native_use_enable doc) \ |
317 |
+ $(multilib_native_use_enable doc gtk-doc) \ |
318 |
+ $(multilib_native_use_enable guile) \ |
319 |
+ $(multilib_native_use_enable crywrap) \ |
320 |
+ $(multilib_native_use_enable test tests) \ |
321 |
+ $(use_enable nls) \ |
322 |
+ $(use_enable openssl openssl-compatibility) \ |
323 |
+ $(use_enable static-libs static) \ |
324 |
+ $(use_with pkcs11 p11-kit) \ |
325 |
+ $(use_with zlib) \ |
326 |
+ --without-tpm \ |
327 |
+ --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
328 |
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
329 |
+} |
330 |
+ |
331 |
+multilib_src_install_all() { |
332 |
+ einstalldocs |
333 |
+ prune_libtool_files --all |
334 |
+ |
335 |
+ dodoc doc/certtool.cfg |
336 |
+ |
337 |
+ if use doc; then |
338 |
+ dohtml doc/gnutls.html |
339 |
+ else |
340 |
+ rm -fr "${ED}/usr/share/doc/${PF}/html" |
341 |
+ fi |
342 |
+ |
343 |
+ if use examples; then |
344 |
+ docinto examples |
345 |
+ dodoc doc/examples/*.c |
346 |
+ fi |
347 |
+} |