Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 376875
Collapse All | Expand All

(-)net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild (-3 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 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/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild,v 1.1 2010/12/28 12:34:30 tommy Exp $
3
# $Header: $
4
4
5
EAPI=2
5
EAPI=2
6
6
Lines 12-18 Link Here
12
12
13
LICENSE="|| ( public-domain BSD MIT )"
13
LICENSE="|| ( public-domain BSD MIT )"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86 ~ia64"
16
IUSE=""
16
IUSE=""
17
17
18
DEPEND="dev-libs/gmp
18
DEPEND="dev-libs/gmp
Lines 21-34 Link Here
21
21
22
src_prepare() {
22
src_prepare() {
23
	epatch "${FILESDIR}"/${P}-{asmfix,ldflags}.patch
23
	epatch "${FILESDIR}"/${P}-{asmfix,ldflags}.patch
24
25
	if ! use x86 && ! use amd64 ; then
26
		ebegin "Disabling installation of libjcpuid-x86-linux.so"
27
		sed -ri Makefile \
28
			-e '/^\s+\/usr\/bin\/install\s+jcpuid\/libjcpuid-x86-linux.so/d'
29
		eend $?
30
	fi
24
}
31
}
25
32
26
src_compile() {
33
src_compile() {
27
	append-flags -fPIC
34
	append-flags -fPIC
28
	tc-export CC
35
	tc-export CC
36
29
	emake libjbigi || die
37
	emake libjbigi || die
38
30
	use x86 && filter-flags -fPIC -nopie
39
	use x86 && filter-flags -fPIC -nopie
31
	emake libjcpuid || die
40
	if use x86 || use amd64 ; then
41
		emake libjcpuid || die
42
	fi
32
}
43
}
33
44
34
src_install() {
45
src_install() {

Return to bug 376875