Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 493166 | Differences between
and this patch

Collapse All | Expand All

(-)gnutls-3.2.10.ebuild (-22 / +41 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.10.ebuild,v 1.1 2014/02/03 20:20:36 radhermit Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.10.ebuild,v 1.1 2014/01/24 19:56:54 radhermit Exp $
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit autotools libtool eutils versionator
7
inherit autotools-multilib libtool eutils versionator
8
8
9
DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
9
DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
10
HOMEPAGE="http://www.gnutls.org/"
10
HOMEPAGE="http://www.gnutls.org/"
Lines 21-36 Link Here
21
21
22
# NOTICE: sys-devel/autogen is required at runtime as we
22
# NOTICE: sys-devel/autogen is required at runtime as we
23
# use system libopts
23
# use system libopts
24
RDEPEND=">=dev-libs/libtasn1-2.14
24
RDEPEND=">=dev-libs/libtasn1-2.14[${MULTILIB_USEDEP}]
25
	>=dev-libs/nettle-2.7[gmp]
25
	>=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}]
26
	dev-libs/gmp
26
	dev-libs/gmp[${MULTILIB_USEDEP}]
27
	sys-devel/autogen
27
	sys-devel/autogen[${MULTILIB_USEDEP}]
28
	crywrap? ( net-dns/libidn )
28
	crywrap? ( net-dns/libidn )
29
	dane? ( net-dns/unbound )
29
	dane? ( net-dns/unbound[${MULTILIB_USEDEP}] )
30
	guile? ( >=dev-scheme/guile-1.8[networking] )
30
	guile? ( >=dev-scheme/guile-1.8[networking,${MULTILIB_USEDEP}] )
31
	nls? ( virtual/libintl )
31
	nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
32
	pkcs11? ( >=app-crypt/p11-kit-0.11 )
32
	pkcs11? ( >=app-crypt/p11-kit-0.11[${MULTILIB_USEDEP}] )
33
	zlib? ( >=sys-libs/zlib-1.2.3.1 )"
33
	zlib? ( >=sys-libs/zlib-1.2.3.1[${MULTILIB_USEDEP}] )
34
	abi_x86_32? (
35
		!<=app-emulation/emul-linux-x86-baselibs-20131008-r9
36
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
37
	)"
34
DEPEND="${RDEPEND}
38
DEPEND="${RDEPEND}
35
	>=sys-devel/automake-1.11.6
39
	>=sys-devel/automake-1.11.6
36
	virtual/pkgconfig
40
	virtual/pkgconfig
Lines 70-111 Link Here
70
74
71
	# bug 497472
75
	# bug 497472
72
	use cxx || epunt_cxx
76
	use cxx || epunt_cxx
77
78
	multilib_copy_sources
73
}
79
}
74
80
75
src_configure() {
81
multilib_src_configure() {
76
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
82
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
77
83
78
	# TPM needs to be tested before being enabled
84
	# TPM needs to be tested before being enabled
79
	# hardware-accell is disabled on OSX because the asm files force
85
	# hardware-accell is disabled on OSX because the asm files force
80
	#   GNU-stack (as doesn't support that) and when that's removed ld
86
	#   GNU-stack (as doesn't support that) and when that's removed ld
81
	#   complains about duplicate symbols
87
	#   complains about duplicate symbols
82
	econf \
88
	myconf=(
83
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
89
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
84
		--disable-valgrind-tests \
90
		--disable-valgrind-tests \
85
		--enable-heartbeat-support \
91
		--enable-heartbeat-support \
92
		$(use_enable crywrap) \
86
		$(use_enable cxx) \
93
		$(use_enable cxx) \
87
		$(use_enable dane libdane) \
94
		$(use_enable dane libdane) \
88
		$(use_enable doc gtk-doc) \
95
		$(use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" ) \
89
		$(use_enable doc gtk-doc-pdf) \
90
		$(use_enable guile) \
91
		$(use_enable crywrap) \
92
		$(use_enable nls) \
96
		$(use_enable nls) \
93
		$(use_enable static-libs static) \
97
		$(use_enable static-libs static) \
94
		$(use_with pkcs11 p11-kit) \
98
		$(use_with pkcs11 p11-kit) \
95
		$(use_with zlib) \
99
		$(use_with zlib) \
96
		--without-tpm \
100
		--without-tpm \
97
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
101
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
102
	)
103
104
	if multilib_build_binaries; then
105
		myconf+=(
106
			$(use_enable doc gtk-doc) \
107
			$(use_enable doc gtk-doc-pdf)
108
		)
109
	else
110
		myconf+=(
111
			--disable-gtk-doc
112
			--disable-gtk-doc-pdf
113
		)
114
	fi
115
116
	ECONF_SOURCE="${S}" \
117
	econf \
118
		${myconf[@]}
98
}
119
}
99
120
100
src_test() {
121
multilib_src_test() {
101
	# parallel testing often fails
122
	# parallel testing often fails
102
	emake -j1 check
123
	emake -j1 check
103
}
124
}
104
125
105
src_install() {
126
multilib_src_install_all() {
106
	default
127
	prune_libtool_files
107
108
	find "${ED}" -name '*.la' -delete
109
128
110
	dodoc doc/certtool.cfg
129
	dodoc doc/certtool.cfg
111
130

Return to bug 493166