/[gentoo-x86]/net-libs/gnutls/gnutls-3.3.15.ebuild
Gentoo

Contents of /net-libs/gnutls/gnutls-3.3.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Jun 17 08:50:37 2015 UTC (5 years, 5 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for sparc, wrt bug #548636

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

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

  ViewVC Help
Powered by ViewVC 1.1.20