Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gnutls: gnutls-3.3.11.ebuild ChangeLog
Date: Tue, 30 Dec 2014 11:05:22
Message-Id: 20141230110518.08068E7D0@oystercatcher.gentoo.org
1 alonbl 14/12/30 11:05:18
2
3 Modified: ChangeLog
4 Added: gnutls-3.3.11.ebuild
5 Log:
6 Version bump, bug#533298
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.522 net-libs/gnutls/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.522&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.522&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?r1=1.521&r2=1.522
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v
20 retrieving revision 1.521
21 retrieving revision 1.522
22 diff -u -r1.521 -r1.522
23 --- ChangeLog 15 Dec 2014 20:05:09 -0000 1.521
24 +++ ChangeLog 30 Dec 2014 11:05:17 -0000 1.522
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/gnutls
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.521 2014/12/15 20:05:09 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.522 2014/12/30 11:05:17 alonbl Exp $
30 +
31 +*gnutls-3.3.11 (30 Dec 2014)
32 +
33 + 30 Dec 2014; Alon Bar-Lev <alonbl@g.o> +gnutls-3.3.11.ebuild:
34 + Version bump, bug#533298
35
36 15 Dec 2014; Jeroen Roovers <jer@g.o> gnutls-3.3.10-r2.ebuild:
37 Stable for HPPA (bug #492522).
38
39
40
41 1.1 net-libs/gnutls/gnutls-3.3.11.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnutls-3.3.11.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.3.11.ebuild,v 1.1 2014/12/30 11:05:17 alonbl Exp $
51
52 EAPI=5
53
54 inherit autotools libtool eutils multilib-minimal versionator
55
56 DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
57 HOMEPAGE="http://www.gnutls.org/"
58 SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
59
60 # LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library.
61 # soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled.
62 LICENSE="GPL-3 LGPL-3"
63 SLOT="0"
64 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"
65 IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
66 IUSE="+cxx +crywrap dane doc examples guile nls pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}"
67 # heartbeat support is not disabled until re-licensing happens fullyf
68
69 # NOTICE: sys-devel/autogen is required at runtime as we
70 # use system libopts
71 RDEPEND=">=dev-libs/libtasn1-3.9[${MULTILIB_USEDEP}]
72 >=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}]
73 >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]
74 sys-devel/autogen
75 crywrap? ( net-dns/libidn )
76 dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
77 guile? ( >=dev-scheme/guile-1.8[networking] )
78 nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
79 pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] )
80 zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
81 abi_x86_32? (
82 !<=app-emulation/emul-linux-x86-baselibs-20140508
83 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
84 )"
85 DEPEND="${RDEPEND}
86 >=sys-devel/automake-1.11.6
87 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
88 doc? ( dev-util/gtk-doc )
89 nls? ( sys-devel/gettext )
90 test? ( app-misc/datefudge )"
91
92 DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
93
94 S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
95
96 pkg_setup() {
97 # bug#520818
98 export TZ=UTC
99 }
100
101 src_prepare() {
102 sed -i \
103 -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
104 doc/Makefile.am || die
105
106 # force regeneration of autogen-ed files
107 local file
108 for file in $(grep -l AutoGen-ed src/*.c) ; do
109 rm src/$(basename ${file} .c).{c,h} || die
110 done
111
112 # force regeneration of makeinfo files
113 # have no idea why on some system these files are not
114 # accepted as-is, see bug#520818
115 for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
116 rm "${file}" || die
117 done
118
119 # support user patches
120 epatch_user
121
122 eautoreconf
123
124 # Use sane .so versioning on FreeBSD.
125 elibtoolize
126
127 # bug 497472
128 use cxx || epunt_cxx
129 }
130
131 multilib_src_configure() {
132 LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
133
134 # TPM needs to be tested before being enabled
135 # hardware-accell is disabled on OSX because the asm files force
136 # GNU-stack (as doesn't support that) and when that's removed ld
137 # complains about duplicate symbols
138 ECONF_SOURCE=${S} \
139 econf \
140 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
141 --disable-valgrind-tests \
142 --without-included-libtasn1 \
143 --enable-heartbeat-support \
144 $(use_enable cxx) \
145 $(use_enable dane libdane) \
146 $(multilib_native_use_enable doc gtk-doc) \
147 $(multilib_native_use_enable doc gtk-doc-pdf) \
148 $(multilib_native_use_enable guile) \
149 $(multilib_native_use_enable crywrap) \
150 $(use_enable nls) \
151 $(use_enable static-libs static) \
152 $(use_with pkcs11 p11-kit) \
153 $(use_with zlib) \
154 --without-tpm \
155 --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
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 dodoc doc/gnutls.pdf
211 dohtml doc/gnutls.html
212 else
213 rm -fr "${ED}/usr/share/doc/${PF}/html"
214 fi
215
216 if use examples; then
217 docinto examples
218 dodoc doc/examples/*.c
219 fi
220 }