--- /usr/portage/sys-apps/rng-tools/rng-tools-2-r1.ebuild 2009-09-03 21:27:20 +0100 +++ /usr/local/portage/sys-apps/rng-tools/rng-tools-2-r1.ebuild 2009-11-06 21:47:46 +0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/rng-tools-2-r1.ebuild,v 1.1 2009/09/03 20:27:20 williamh Exp $ -inherit autotools +inherit autotools flag-o-matic DESCRIPTION="Daemon to use hardware random number generators." HOMEPAGE="http://gkernel.sourceforge.net/" @@ -10,8 +10,8 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ia64 ppc x86" -IUSE="" -DEPEND="" +IUSE="elibc_uclibc" +DEPEND="elibc_uclibc? ( sys-libs/argp-standalone )" RDEPEND="" src_unpack() { @@ -23,6 +23,16 @@ eautoreconf } +src_compile() { + if use elibc_uclibc ; then + # Need to use standalone argp library + LIBS="${LIBS} -largp" + fi + + econf + emake LIBS="$LIBS" +} + src_install() { make DESTDIR="${D}" install || die