diff options
author | Michael Sterrett <msterret@gentoo.org> | 2003-04-23 09:07:14 +0000 |
---|---|---|
committer | Michael Sterrett <msterret@gentoo.org> | 2003-04-23 09:07:14 +0000 |
commit | 06582948b19789b8f2f169a1a113291c8ac089a8 (patch) | |
tree | c72142a63d33a26e2043d1a31d2460f5cd3ca0ff /sys-apps/diffutils/diffutils-2.8.4-r3.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-06582948b19789b8f2f169a1a113291c8ac089a8.tar.gz gentoo-2-06582948b19789b8f2f169a1a113291c8ac089a8.tar.bz2 gentoo-2-06582948b19789b8f2f169a1a113291c8ac089a8.zip |
Added support for USE=static; Added use_enable nls to cleanup myconf (>=sys-apps/portage-2.0.47-r10 in DEPEND); Use einstall instead of big make line
Diffstat (limited to 'sys-apps/diffutils/diffutils-2.8.4-r3.ebuild')
-rw-r--r-- | sys-apps/diffutils/diffutils-2.8.4-r3.ebuild | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild b/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild index 6347a5206b4b..e69c598ebf5a 100644 --- a/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild +++ b/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild,v 1.8 2003/04/23 05:50:59 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.4-r3.ebuild,v 1.9 2003/04/23 09:07:14 msterret Exp $ -IUSE="nls build" +IUSE="nls build static" inherit eutils || die "I lost my eutils inheritence" inherit flag-o-matic || die "I lost my flag-o-matic inheritence" @@ -21,6 +21,7 @@ SLOT="0" LICENSE="GPL-2" DEPEND="virtual/glibc + >=sys-apps/portage-2.0.47-r10 >=sys-apps/sed-4 nls? ( sys-devel/gettext ) !build? ( sys-apps/texinfo sys-apps/help2man )" @@ -50,20 +51,17 @@ src_unpack() { } src_compile() { - local myconf="" - [ -z "`use nls`" ] && myconf="--disable-nls" + econf --build=${CHOST} `use_enable nls` || die "econf" - econf --build=${CHOST} ${myconf} || die "econf" - - emake || die + if [ "`use static`" ] ; then + emake LDFLAGS=-static || die + else + emake || die + fi } src_install() { - make prefix=${D}/usr \ - datadir=${D}/usr/share \ - infodir=${D}/usr/share/info \ - mandir=${D}/usr/share/man \ - install || die "make install" + einstall if [ -z "`use build`" ] ; then dodoc COPYING ChangeLog NEWS README |