Index: numactl-2.0.7-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-process/numactl/numactl-2.0.7-r1.ebuild,v retrieving revision 1.3 diff -u -B -r1.3 numactl-2.0.7-r1.ebuild --- numactl-2.0.7-r1.ebuild 22 Mar 2012 19:13:11 -0000 1.3 +++ numactl-2.0.7-r1.ebuild 22 Mar 2012 19:57:44 -0000 @@ -13,16 +13,18 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" -IUSE="perl" +IUSE="perl static-libs" RDEPEND="perl? ( dev-lang/perl )" src_prepare() { echo "printf $(get_libdir)" > getlibdir + epatch "${FILESDIR}"/${P}-static_libs.patch } src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" BENCH_CFLAGS="" + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" BENCH_CFLAGS="" \ + BUILD_STATIC=$(usex static-libs) } src_test() { @@ -37,7 +39,7 @@ } src_install() { - emake install prefix="${ED}/usr" + emake install prefix="${ED}/usr" BUILD_STATIC=$(usex static-libs) # delete man pages provided by the man-pages package #238805 rm -rf "${ED}"/usr/share/man/man[25] doman *.8 # makefile doesnt get them all