blob: 890e71039a57addc630ca80ff4e9fd00eea09850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2004 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.1_beta20031003.ebuild,v 1.5 2004/02/22 19:55:13 agriffis Exp $
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="http://www.lua.org/"
SRC_URI="http://www.lua.org/ftp/lua-5.0.tar.gz
http://www.tecgraf.puc-rio.br/lua/work/lua-5.0-update.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~hppa ~mips ~ppc ~sparc ~x86"
DEPEND="virtual/glibc
>=sys-apps/sed-4"
S=${WORKDIR}/lua-5.0.1
src_unpack() {
unpack lua-5.0.tar.gz || die
mv lua-5.0 lua-5.0.1 || die
unpack lua-5.0-update.tar.gz || die
cd "${S}"
epatch "${FILESDIR}/lua-5.0.1-pic.patch"
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 || die "sed config failed"
}
src_compile() {
export PICFLAGS=-fPIC
emake || die "emake failed"
emake so || die "emake so failed"
}
src_install() {
make DESTDIR=${D} install soinstall || die "make install soinstall failed"
dodoc COPYRIGHT HISTORY README
dohtml doc/*.html doc/*.gif
}
|