summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-02-27 16:53:55 +0000
committerAchim Gottinger <achim@gentoo.org>2001-02-27 16:53:55 +0000
commitbe3ea4167ca5703b8d231bb5f25d2c0ae5883354 (patch)
tree9a0b18299fc3cfc899b6f26db71d11f78b8a80ee /sys-apps/sh-utils
parentNow uses USE build static nls (diff)
downloadgentoo-2-be3ea4167ca5703b8d231bb5f25d2c0ae5883354.tar.gz
gentoo-2-be3ea4167ca5703b8d231bb5f25d2c0ae5883354.tar.bz2
gentoo-2-be3ea4167ca5703b8d231bb5f25d2c0ae5883354.zip
Replaced sed with patch in unpack
Now uses nls static build
Diffstat (limited to 'sys-apps/sh-utils')
-rw-r--r--sys-apps/sh-utils/sh-utils-2.0j-r3.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/sh-utils/sh-utils-2.0j-r3.ebuild b/sys-apps/sh-utils/sh-utils-2.0j-r3.ebuild
new file mode 100644
index 000000000000..d7b1b9d890e1
--- /dev/null
+++ b/sys-apps/sh-utils/sh-utils-2.0j-r3.ebuild
@@ -0,0 +1,66 @@
+
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sh-utils/sh-utils-2.0j-r3.ebuild,v 1.1 2001/02/27 16:53:55 achim Exp $
+
+A=${P}.tar.gz
+S=${WORKDIR}/${P}
+DESCRIPTION="Your standard GNU shell utilities"
+SRC_URI="ftp://alpha.gnu.org/gnu/fetish/${A}"
+
+DEPEND="virtual/glibc
+ nls? ( sys-devel/gettext )"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+ patch -p0 < ${FILESDIR}/${P}-src-sys2.h-gentoo.diff
+}
+
+src_compile() {
+
+ local myconf
+ if [ -z "`use nls`" ]
+ then
+ myconf="--disable-nls"
+ fi
+
+ try CFLAGS=\"${CFLAGS}\" ./configure --host=${CHOST} --build=${CHOST} \
+ --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
+ --without-included-regex ${myconf}
+
+ if [ -z "`use static`" ]
+ then
+ try make ${MAKEOPTS}
+ else
+ try make ${MAKEOPTS} LDFLAGS=-static
+ fi
+}
+
+src_install() {
+
+ try make prefix=${D}/usr mandir=${D}/usr/share/man infodir=${D}/usr/share/info install
+ rm -rf ${D}/usr/lib
+ dodir /bin
+ cd ${D}/usr/bin
+ mv date echo false pwd stty su true uname ${D}/bin
+
+ if [ -z "`use build`" ]
+ then
+ # We must use hostname from net-base
+ rm hostname
+ cd ${S}
+ dodoc AUTHORS COPYING ChangeLog ChangeLog.0 \
+ NEWS README THANKS TODO
+ else
+ rm -rf ${D}/usr/lib ${D}/usr/share/man ${D}/usr/share/info
+ fi
+
+}
+
+
+