Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gnutls/
Date: Fri, 23 Sep 2016 06:53:19
Message-Id: 1474613576.2bf9ac7309f347e22f4c9cca66374ce820fea91b.alonbl@gentoo
1 commit: 2bf9ac7309f347e22f4c9cca66374ce820fea91b
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 21:57:08 2016 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 06:52:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bf9ac73
7
8 net-libs/gnutls: cleanup
9
10 net-libs/gnutls/gnutls-3.4.14-r1.ebuild | 133 --------------------------------
11 net-libs/gnutls/gnutls-3.5.3.ebuild | 126 ------------------------------
12 2 files changed, 259 deletions(-)
13
14 diff --git a/net-libs/gnutls/gnutls-3.4.14-r1.ebuild b/net-libs/gnutls/gnutls-3.4.14-r1.ebuild
15 deleted file mode 100644
16 index 5656755..00000000
17 --- a/net-libs/gnutls/gnutls-3.4.14-r1.ebuild
18 +++ /dev/null
19 @@ -1,133 +0,0 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -# $Id$
23 -
24 -EAPI=6
25 -
26 -inherit autotools libtool eutils multilib-minimal versionator
27 -
28 -DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
29 -HOMEPAGE="http://www.gnutls.org/"
30 -SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
31 -
32 -LICENSE="GPL-3 LGPL-2.1"
33 -SLOT="0/30" # libgnutls.so number
34 -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"
35 -IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
36 -IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}"
37 -
38 -# NOTICE: sys-devel/autogen is required at runtime as we
39 -# use system libopts
40 -RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}]
41 - >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
42 - >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]
43 - tools? ( sys-devel/autogen )
44 - crywrap? ( net-dns/libidn )
45 - dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
46 - guile? ( >=dev-scheme/guile-1.8:*[networking] )
47 - nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
48 - pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
49 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
50 - abi_x86_32? (
51 - !<=app-emulation/emul-linux-x86-baselibs-20140508
52 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
53 - )"
54 -DEPEND="${RDEPEND}
55 - >=sys-devel/automake-1.11.6
56 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
57 - doc? (
58 - sys-apps/texinfo
59 - dev-util/gtk-doc
60 - )
61 - nls? ( sys-devel/gettext )
62 - test? ( app-misc/datefudge )"
63 -
64 -DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
65 -
66 -PATCHES=(
67 - "${FILESDIR}/${PN}-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch"
68 - "${FILESDIR}/${PN}-3.4.14-build.patch"
69 -)
70 -
71 -pkg_setup() {
72 - # bug#520818
73 - export TZ=UTC
74 -}
75 -
76 -src_prepare() {
77 - default
78 -
79 - sed -i \
80 - -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
81 - doc/Makefile.am || die
82 -
83 - # force regeneration of autogen-ed files
84 - local file
85 - for file in $(grep -l AutoGen-ed src/*.c) ; do
86 - rm src/$(basename ${file} .c).{c,h} || die
87 - done
88 -
89 - # force regeneration of makeinfo files
90 - # have no idea why on some system these files are not
91 - # accepted as-is, see bug#520818
92 - for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
93 - rm "${file}" || die
94 - done
95 -
96 - eautoreconf
97 -
98 - # Use sane .so versioning on FreeBSD.
99 - elibtoolize
100 -
101 - # bug 497472
102 - use cxx || epunt_cxx
103 -}
104 -
105 -multilib_src_configure() {
106 - LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
107 -
108 - # TPM needs to be tested before being enabled
109 - # hardware-accell is disabled on OSX because the asm files force
110 - # GNU-stack (as doesn't support that) and when that's removed ld
111 - # complains about duplicate symbols
112 - ECONF_SOURCE=${S} \
113 - econf \
114 - --disable-valgrind-tests \
115 - --without-included-libtasn1 \
116 - $(use_enable cxx) \
117 - $(use_enable dane libdane) \
118 - $(multilib_native_enable manpages) \
119 - $(multilib_native_use_enable tools) \
120 - $(multilib_native_use_enable doc) \
121 - $(multilib_native_use_enable doc gtk-doc) \
122 - $(multilib_native_use_enable guile) \
123 - $(multilib_native_use_enable crywrap) \
124 - $(multilib_native_use_enable test tests) \
125 - $(use_enable nls) \
126 - $(use_enable openssl openssl-compatibility) \
127 - $(use_enable tls-heartbeat heartbeat-support) \
128 - $(use_enable static-libs static) \
129 - $(use_with pkcs11 p11-kit) \
130 - $(use_with zlib) \
131 - --without-tpm \
132 - --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
133 - $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
134 -}
135 -
136 -multilib_src_install_all() {
137 - einstalldocs
138 - prune_libtool_files --all
139 -
140 - dodoc doc/certtool.cfg
141 -
142 - if use doc; then
143 - dohtml doc/gnutls.html
144 - else
145 - rm -fr "${ED}/usr/share/doc/${PF}/html"
146 - fi
147 -
148 - if use examples; then
149 - docinto examples
150 - dodoc doc/examples/*.c
151 - fi
152 -}
153
154 diff --git a/net-libs/gnutls/gnutls-3.5.3.ebuild b/net-libs/gnutls/gnutls-3.5.3.ebuild
155 deleted file mode 100644
156 index 117fc94..00000000
157 --- a/net-libs/gnutls/gnutls-3.5.3.ebuild
158 +++ /dev/null
159 @@ -1,126 +0,0 @@
160 -# Copyright 1999-2016 Gentoo Foundation
161 -# Distributed under the terms of the GNU General Public License v2
162 -# $Id$
163 -
164 -EAPI=6
165 -
166 -inherit autotools libtool eutils multilib-minimal versionator
167 -
168 -DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
169 -HOMEPAGE="http://www.gnutls.org/"
170 -SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
171 -
172 -LICENSE="GPL-3 LGPL-2.1"
173 -SLOT="0/30" # libgnutls.so number
174 -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"
175 -IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
176 -IUSE="+cxx dane doc examples guile nls +openssl pkcs11 sslv2 +sslv3 static-libs test +tls-heartbeat +tools zlib ${IUSE_LINGUAS// / linguas_}"
177 -
178 -# NOTICE: sys-devel/autogen is required at runtime as we
179 -# use system libopts
180 -RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}]
181 - >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
182 - >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]
183 - tools? ( sys-devel/autogen )
184 - dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
185 - guile? ( >=dev-scheme/guile-1.8:*[networking] )
186 - nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
187 - pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
188 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
189 - abi_x86_32? (
190 - !<=app-emulation/emul-linux-x86-baselibs-20140508
191 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
192 - )"
193 -DEPEND="${RDEPEND}
194 - >=sys-devel/automake-1.11.6
195 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
196 - doc? (
197 - sys-apps/texinfo
198 - dev-util/gtk-doc
199 - )
200 - nls? ( sys-devel/gettext )
201 - test? ( app-misc/datefudge )"
202 -
203 -pkg_setup() {
204 - # bug#520818
205 - export TZ=UTC
206 -}
207 -
208 -src_prepare() {
209 - default
210 -
211 - sed -i \
212 - -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
213 - doc/Makefile.am || die
214 -
215 - # force regeneration of autogen-ed files
216 - local file
217 - for file in $(grep -l AutoGen-ed src/*.c) ; do
218 - rm src/$(basename ${file} .c).{c,h} || die
219 - done
220 -
221 - # force regeneration of makeinfo files
222 - # have no idea why on some system these files are not
223 - # accepted as-is, see bug#520818
224 - for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
225 - rm "${file}" || die
226 - done
227 -
228 - eautoreconf
229 -
230 - # Use sane .so versioning on FreeBSD.
231 - elibtoolize
232 -
233 - # bug 497472
234 - use cxx || epunt_cxx
235 -}
236 -
237 -multilib_src_configure() {
238 - LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
239 -
240 - # TPM needs to be tested before being enabled
241 - # hardware-accell is disabled on OSX because the asm files force
242 - # GNU-stack (as doesn't support that) and when that's removed ld
243 - # complains about duplicate symbols
244 - ECONF_SOURCE=${S} \
245 - econf \
246 - --disable-valgrind-tests \
247 - --without-included-libtasn1 \
248 - $(use_enable cxx) \
249 - $(use_enable dane libdane) \
250 - $(multilib_native_enable manpages) \
251 - $(multilib_native_use_enable tools) \
252 - $(multilib_native_use_enable doc) \
253 - $(multilib_native_use_enable doc gtk-doc) \
254 - $(multilib_native_use_enable guile) \
255 - $(multilib_native_use_enable test tests) \
256 - $(use_enable nls) \
257 - $(use_enable openssl openssl-compatibility) \
258 - $(use_enable tls-heartbeat heartbeat-support) \
259 - $(use_enable sslv2 ssl2-support) \
260 - $(use_enable sslv3 ssl3-support) \
261 - $(use_enable static-libs static) \
262 - $(use_with pkcs11 p11-kit) \
263 - $(use_with zlib) \
264 - --without-tpm \
265 - --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
266 - $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
267 -}
268 -
269 -multilib_src_install_all() {
270 - einstalldocs
271 - prune_libtool_files --all
272 -
273 - dodoc doc/certtool.cfg
274 -
275 - if use doc; then
276 - dohtml doc/gnutls.html
277 - else
278 - rm -fr "${ED}/usr/share/doc/${PF}/html"
279 - fi
280 -
281 - if use examples; then
282 - docinto examples
283 - dodoc doc/examples/*.c
284 - fi
285 -}