Lines 2-8
Link Here
|
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/sys-process/numactl/numactl-2.0.7-r1.ebuild,v 1.2 2011/12/07 21:25:40 xarthisius Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-process/numactl/numactl-2.0.7-r1.ebuild,v 1.2 2011/12/07 21:25:40 xarthisius Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit eutils toolchain-funcs |
7 |
inherit eutils toolchain-funcs |
8 |
|
8 |
|
Lines 13-24
Link Here
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
16 |
IUSE="perl" |
16 |
IUSE="perl static-libs" |
17 |
|
17 |
|
|
|
18 |
DEPEND="" |
18 |
RDEPEND="perl? ( dev-lang/perl )" |
19 |
RDEPEND="perl? ( dev-lang/perl )" |
19 |
|
20 |
|
|
|
21 |
pkg_setup() { |
22 |
export BUILD_STATIC=$(usex static-libs) |
23 |
} |
24 |
|
25 |
src_prepare() { |
26 |
echo "echo -n $(get_libdir)" > getlibdir |
27 |
epatch "${FILESDIR}"/${P}-static_libs.patch |
28 |
} |
29 |
|
20 |
src_compile() { |
30 |
src_compile() { |
21 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" BENCH_CFLAGS="" || die |
31 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" BENCH_CFLAGS="" |
22 |
} |
32 |
} |
23 |
|
33 |
|
24 |
src_test() { |
34 |
src_test() { |
Lines 33-42
Link Here
|
33 |
} |
43 |
} |
34 |
|
44 |
|
35 |
src_install() { |
45 |
src_install() { |
36 |
emake install prefix="${ED}/usr" || die |
46 |
emake install prefix="${ED}/usr" |
37 |
# delete man pages provided by the man-pages package #238805 |
47 |
# delete man pages provided by the man-pages package #238805 |
38 |
rm -rf "${ED}"/usr/share/man/man[25] |
48 |
rm -rf "${ED}"/usr/share/man/man[25] |
39 |
doman *.8 || die # makefile doesnt get them all |
49 |
doman *.8 # makefile doesnt get them all |
40 |
dodoc README TODO CHANGES DESIGN |
50 |
dodoc README TODO CHANGES DESIGN |
41 |
if ! use perl ; then |
51 |
if ! use perl ; then |
42 |
rm "${ED}"/usr/bin/numastat "${ED}"/usr/share/man/man8/numastat.8 || die |
52 |
rm "${ED}"/usr/bin/numastat "${ED}"/usr/share/man/man8/numastat.8 || die |