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.4-r1.ebuild ChangeLog
Date: Sun, 06 Jul 2014 21:15:54
Message-Id: 20140706211548.9E2272004E@flycatcher.gentoo.org
1 alonbl 14/07/06 21:15:48
2
3 Modified: ChangeLog
4 Added: gnutls-3.3.4-r1.ebuild
5 Log:
6 Fix dane roots issue, bug#443104, thanks to Rafał Mużyło
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.509 net-libs/gnutls/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.509&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.509&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?r1=1.508&r2=1.509
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v
20 retrieving revision 1.508
21 retrieving revision 1.509
22 diff -u -r1.508 -r1.509
23 --- ChangeLog 18 Jun 2014 20:35:42 -0000 1.508
24 +++ ChangeLog 6 Jul 2014 21:15:48 -0000 1.509
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.508 2014/06/18 20:35:42 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.509 2014/07/06 21:15:48 alonbl Exp $
30 +
31 +*gnutls-3.3.4-r1 (06 Jul 2014)
32 +
33 + 06 Jul 2014; Alon Bar-Lev <alonbl@g.o> +gnutls-3.3.4-r1.ebuild:
34 + Fix dane roots issue, bug#443104, thanks to Rafał Mużyło
35
36 18 Jun 2014; Michał Górny <mgorny@g.o> gnutls-3.3.4.ebuild:
37 Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug
38
39
40
41 1.1 net-libs/gnutls/gnutls-3.3.4-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.4-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.4-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnutls-3.3.4-r1.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.4-r1.ebuild,v 1.1 2014/07/06 21:15:48 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.4[${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.19.3[${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 src_prepare() {
97 sed -i \
98 -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
99 doc/Makefile.am || die
100
101 # force regeneration of autogen-ed files
102 local file
103 for file in $(grep -l AutoGen-ed src/*.c) ; do
104 rm src/$(basename ${file} .c).{c,h} || 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 --enable-heartbeat-support \
131 $(use_enable cxx) \
132 $(use_enable dane libdane) \
133 $(multilib_native_use_enable doc gtk-doc) \
134 $(multilib_native_use_enable doc gtk-doc-pdf) \
135 $(multilib_native_use_enable guile) \
136 $(multilib_native_use_enable crywrap) \
137 $(use_enable nls) \
138 $(use_enable static-libs static) \
139 $(use_with pkcs11 p11-kit) \
140 $(use_with zlib) \
141 --without-tpm \
142 --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
143 $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
144 }
145
146 multilib_src_compile() {
147 if multilib_is_native_abi; then
148 default
149
150 # symlink certtool for use in other ABIs
151 if use test; then
152 ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die
153 fi
154 else
155 emake -C gl
156 emake -C lib
157 emake -C extra
158 use dane && emake -C libdane
159 fi
160 }
161
162 multilib_src_test() {
163 if multilib_is_native_abi; then
164 # parallel testing often fails
165 emake -j1 check
166 else
167 # use native ABI tools
168 ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \
169 "${BUILD_DIR}"/src/ || die
170
171 emake -C gl -j1 check
172 emake -C tests -j1 check
173 fi
174 }
175
176 multilib_src_install() {
177 if multilib_is_native_abi; then
178 emake DESTDIR="${D}" install
179 else
180 emake -C lib DESTDIR="${D}" install
181 emake -C extra DESTDIR="${D}" install
182 use dane && emake -C libdane DESTDIR="${D}" install
183 fi
184 }
185
186 multilib_src_install_all() {
187 einstalldocs
188 prune_libtool_files --all
189
190 dodoc doc/certtool.cfg
191
192 if use doc; then
193 dodoc doc/gnutls.pdf
194 dohtml doc/gnutls.html
195 fi
196
197 if use examples; then
198 docinto examples
199 dodoc doc/examples/*.c
200 fi
201 }