1 |
alonbl 14/08/29 20:51:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gnutls-3.3.7-r1.ebuild |
5 |
Log: |
6 |
Remove htmldir if \!use doc, bug#520854. Force regenerate of makeinfo files, bug#520818 |
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.512 net-libs/gnutls/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.512&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.512&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/ChangeLog?r1=1.511&r2=1.512 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v |
20 |
retrieving revision 1.511 |
21 |
retrieving revision 1.512 |
22 |
diff -u -r1.511 -r1.512 |
23 |
--- ChangeLog 24 Aug 2014 19:09:45 -0000 1.511 |
24 |
+++ ChangeLog 29 Aug 2014 20:51:04 -0000 1.512 |
25 |
@@ -1,6 +1,12 @@ |
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.511 2014/08/24 19:09:45 alonbl Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.512 2014/08/29 20:51:04 alonbl Exp $ |
30 |
+ |
31 |
+*gnutls-3.3.7-r1 (29 Aug 2014) |
32 |
+ |
33 |
+ 29 Aug 2014; Alon Bar-Lev <alonbl@g.o> +gnutls-3.3.7-r1.ebuild: |
34 |
+ Remove htmldir if \!use doc, bug#520854. Force regenerate of makeinfo files, |
35 |
+ bug#520818 |
36 |
|
37 |
*gnutls-3.2.17 (24 Aug 2014) |
38 |
*gnutls-3.3.7 (24 Aug 2014) |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-libs/gnutls/gnutls-3.3.7-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.7-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/gnutls-3.3.7-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: gnutls-3.3.7-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.3.7-r1.ebuild,v 1.1 2014/08/29 20:51:04 alonbl Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit autotools libtool eutils multilib-minimal versionator |
56 |
|
57 |
DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
58 |
HOMEPAGE="http://www.gnutls.org/" |
59 |
SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" |
60 |
|
61 |
# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. |
62 |
# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. |
63 |
LICENSE="GPL-3 LGPL-3" |
64 |
SLOT="0" |
65 |
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" |
66 |
IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" |
67 |
IUSE="+cxx +crywrap dane doc examples guile nls pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}" |
68 |
# heartbeat support is not disabled until re-licensing happens fullyf |
69 |
|
70 |
# NOTICE: sys-devel/autogen is required at runtime as we |
71 |
# use system libopts |
72 |
RDEPEND=">=dev-libs/libtasn1-3.4[${MULTILIB_USEDEP}] |
73 |
>=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}] |
74 |
>=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] |
75 |
sys-devel/autogen |
76 |
crywrap? ( net-dns/libidn ) |
77 |
dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) |
78 |
guile? ( >=dev-scheme/guile-1.8[networking] ) |
79 |
nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
80 |
pkcs11? ( >=app-crypt/p11-kit-0.19.3[${MULTILIB_USEDEP}] ) |
81 |
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
82 |
abi_x86_32? ( |
83 |
!<=app-emulation/emul-linux-x86-baselibs-20140508 |
84 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
85 |
)" |
86 |
DEPEND="${RDEPEND} |
87 |
>=sys-devel/automake-1.11.6 |
88 |
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
89 |
>=sys-apps/texinfo-5.2 |
90 |
doc? ( dev-util/gtk-doc ) |
91 |
nls? ( sys-devel/gettext ) |
92 |
test? ( app-misc/datefudge )" |
93 |
|
94 |
DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
95 |
|
96 |
S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" |
97 |
|
98 |
src_prepare() { |
99 |
sed -i \ |
100 |
-e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ |
101 |
doc/Makefile.am || die |
102 |
|
103 |
# force regeneration of autogen-ed files |
104 |
local file |
105 |
for file in $(grep -l AutoGen-ed src/*.c) ; do |
106 |
rm src/$(basename ${file} .c).{c,h} || die |
107 |
done |
108 |
|
109 |
# force regeneration of makeinfo files |
110 |
# have no idea why on some system these files are not |
111 |
# accepted as-is, see bug#520818 |
112 |
for file in $(grep -l "produced by makeinfo" doc/*.info) ; do |
113 |
rm "${file}" || die |
114 |
done |
115 |
|
116 |
epatch "${FILESDIR}/${P}-build.patch" |
117 |
|
118 |
# support user patches |
119 |
epatch_user |
120 |
|
121 |
eautoreconf |
122 |
|
123 |
# Use sane .so versioning on FreeBSD. |
124 |
elibtoolize |
125 |
|
126 |
# bug 497472 |
127 |
use cxx || epunt_cxx |
128 |
} |
129 |
|
130 |
multilib_src_configure() { |
131 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
132 |
|
133 |
# TPM needs to be tested before being enabled |
134 |
# hardware-accell is disabled on OSX because the asm files force |
135 |
# GNU-stack (as doesn't support that) and when that's removed ld |
136 |
# complains about duplicate symbols |
137 |
ECONF_SOURCE=${S} \ |
138 |
econf \ |
139 |
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
140 |
--disable-valgrind-tests \ |
141 |
--enable-heartbeat-support \ |
142 |
$(use_enable cxx) \ |
143 |
$(use_enable dane libdane) \ |
144 |
$(multilib_native_use_enable doc gtk-doc) \ |
145 |
$(multilib_native_use_enable doc gtk-doc-pdf) \ |
146 |
$(multilib_native_use_enable guile) \ |
147 |
$(multilib_native_use_enable crywrap) \ |
148 |
$(use_enable nls) \ |
149 |
$(use_enable static-libs static) \ |
150 |
$(use_with pkcs11 p11-kit) \ |
151 |
$(use_with zlib) \ |
152 |
--without-tpm \ |
153 |
--with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ |
154 |
$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
155 |
} |
156 |
|
157 |
multilib_src_compile() { |
158 |
if multilib_is_native_abi; then |
159 |
default |
160 |
|
161 |
# symlink certtool for use in other ABIs |
162 |
if use test; then |
163 |
ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die |
164 |
fi |
165 |
else |
166 |
emake -C gl |
167 |
emake -C lib |
168 |
emake -C extra |
169 |
use dane && emake -C libdane |
170 |
fi |
171 |
} |
172 |
|
173 |
multilib_src_test() { |
174 |
if multilib_is_native_abi; then |
175 |
# parallel testing often fails |
176 |
emake -j1 check |
177 |
else |
178 |
# use native ABI tools |
179 |
ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ |
180 |
"${BUILD_DIR}"/src/ || die |
181 |
|
182 |
emake -C gl -j1 check |
183 |
emake -C tests -j1 check |
184 |
fi |
185 |
} |
186 |
|
187 |
multilib_src_install() { |
188 |
if multilib_is_native_abi; then |
189 |
emake DESTDIR="${D}" install |
190 |
else |
191 |
emake -C lib DESTDIR="${D}" install |
192 |
emake -C extra DESTDIR="${D}" install |
193 |
use dane && emake -C libdane DESTDIR="${D}" install |
194 |
fi |
195 |
} |
196 |
|
197 |
multilib_src_install_all() { |
198 |
einstalldocs |
199 |
prune_libtool_files --all |
200 |
|
201 |
dodoc doc/certtool.cfg |
202 |
|
203 |
if use doc; then |
204 |
dodoc doc/gnutls.pdf |
205 |
dohtml doc/gnutls.html |
206 |
else |
207 |
rm -fr "${ED}/usr/share/doc/${PF}/html" |
208 |
fi |
209 |
|
210 |
if use examples; then |
211 |
docinto examples |
212 |
dodoc doc/examples/*.c |
213 |
fi |
214 |
} |