--- alsa-utils-1.0.9a.ebuild 2005-09-14 09:05:47.000000000 +0200 +++ alsa-utils-1.0.9a-r2.ebuild 2005-10-10 21:51:56.000000000 +0200 @@ -1,15 +1,19 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.9a.ebuild,v 1.9 2005/09/14 06:59:10 agriffis Exp $ +inherit eutils + +MY_P="${P/_rc/rc}" +S="${WORKDIR}/${MY_P}" DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)" HOMEPAGE="http://www.alsa-project.org/" -SRC_URI="mirror://alsaproject/utils/${P}.tar.bz2" +SRC_URI="mirror://alsaproject/utils/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0.9" KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 -sparc x86" -IUSE="nls" +IUSE="nls uclibc" DEPEND=">=sys-libs/ncurses-5.1 dev-util/dialog @@ -18,6 +22,10 @@ sys-apps/pciutils" src_compile() { + if use uclibc ; then + cd ${S} + epatch ${FILESDIR}/alsa-utils-1.0.9a-uclibc.patch || die "patch failed" + fi econf \ $(use_enable nls) \ || die "configure failed"