summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/lua/lua-5.0.ebuild')
-rw-r--r--dev-lang/lua/lua-5.0.ebuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/dev-lang/lua/lua-5.0.ebuild b/dev-lang/lua/lua-5.0.ebuild
index 14384730755d..cb14b4750535 100644
--- a/dev-lang/lua/lua-5.0.ebuild
+++ b/dev-lang/lua/lua-5.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.0.ebuild,v 1.2 2003/07/11 22:14:07 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.0.ebuild,v 1.3 2003/09/05 11:45:11 msterret Exp $
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="http://www.lua.org/"
@@ -8,21 +8,22 @@ SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~arm ~hppa ~mips ~ppc ~sparc x86"
-DEPEND="virtual/glibc"
+DEPEND="virtual/glibc
+ >=sys-apps/sed-4"
src_compile() {
- cp config config.orig
- sed -e 's:^#POPEN= -DUSE_POPEN$:POPEN= -DUSE_POPEN:' \
+ sed -i \
+ -e 's:^#POPEN= -DUSE_POPEN$:POPEN= -DUSE_POPEN:' \
-e "s:^MYCFLAGS= -O2:MYCFLAGS= ${CFLAGS}:" \
-e 's:INSTALL_ROOT= /usr/local:INSTALL_ROOT= $(DESTDIR)/usr:' \
-e 's:INSTALL_MAN= $(INSTALL_ROOT)/man/man1:INSTALL_MAN= $(INSTALL_ROOT)/share/man/man1:' \
- config.orig > config
- emake || die
- emake so || die
+ config || die "sed config failed"
+ emake || die "emake failed"
+ emake so || die "emake so failed"
}
src_install() {
- make DESTDIR=${D} install soinstall || die
+ make DESTDIR=${D} install soinstall || die "make install soinstall failed"
dodoc COPYRIGHT HISTORY README
dohtml doc/*.html doc/*.gif
}