blob: dfbe761662ab09def08935ed1b7468cb7e8302ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild,v 1.2 2010/09/12 14:32:13 tommy Exp $
EAPI=2
inherit flag-o-matic multilib toolchain-funcs java-pkg-2
DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p"
HOMEPAGE="http://www.i2p2.de"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="|| ( public-domain BSD MIT )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-libs/gmp
>=virtual/jdk-1.4"
RDEPEND="dev-libs/gmp"
pkg_setup() {
append-ldflags $(no-as-needed)
}
src_prepare() {
epatch "${FILESDIR}"/${P}-ldflags.patch
}
src_compile() {
append-flags -fPIC
tc-export CC
emake libjbigi || die
use x86 && filter-flags -fPIC -nopie
emake libjcpuid || die
}
src_install() {
emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die
}
|