summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom William Payne <twp@gentoo.org>2004-03-16 19:37:25 +0000
committerTom William Payne <twp@gentoo.org>2004-03-16 19:37:25 +0000
commit0ef3982687b743f766f1e60bb7142b128926661b (patch)
tree641ce1fb7d68d872808b81628b8e64c2a8ee09e8 /dev-lang
parentleet find syntax thanks to spyderous (Manifest recommit) (diff)
downloadgentoo-2-0ef3982687b743f766f1e60bb7142b128926661b.tar.gz
gentoo-2-0ef3982687b743f766f1e60bb7142b128926661b.tar.bz2
gentoo-2-0ef3982687b743f766f1e60bb7142b128926661b.zip
Version bump.
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/lua/ChangeLog7
-rw-r--r--dev-lang/lua/Manifest2
-rw-r--r--dev-lang/lua/files/digest-lua-5.0.21
-rw-r--r--dev-lang/lua/files/lua-5.0.2-pic.patch38
-rw-r--r--dev-lang/lua/lua-5.0.2.ebuild84
5 files changed, 131 insertions, 1 deletions
diff --git a/dev-lang/lua/ChangeLog b/dev-lang/lua/ChangeLog
index fa60118d2cce..24563531c212 100644
--- a/dev-lang/lua/ChangeLog
+++ b/dev-lang/lua/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/lua
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.18 2004/03/15 19:06:11 twp Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.19 2004/03/16 19:37:24 twp Exp $
+
+*lua-5.0.2 (16 Mar 2004)
+
+ 16 Mar 2004; Tom Payne <twp@gentoo.org> lua-5.0.2.ebuild :
+ Version bump.
15 Mar 2004; Tom Payne <twp@gentoo.org> lua-5.0.1_beta20031003-r1.ebuild, lua-5.0.1_beta20031003.ebuild, lua-5.0_beta.ebuild :
Removed old versions. Lua 4.0*: inherit eutils, use epatch.
diff --git a/dev-lang/lua/Manifest b/dev-lang/lua/Manifest
index d28d76aab170..cba3f4cb15a5 100644
--- a/dev-lang/lua/Manifest
+++ b/dev-lang/lua/Manifest
@@ -1,3 +1,4 @@
+MD5 f5ee1fc5d29d4ee7a603e1dae59c361f lua-5.0.2.ebuild 2222
MD5 6ddddf4a47188733a9e6177023398727 lua-5.0.1_beta20031003-r2.ebuild 2292
MD5 2c76ead700ae2d90fcd25079e18c05ee lua-4.0.ebuild 741
MD5 37fc0d6b6ead2b4a1f4949b7c92a295a lua-4.0.1.ebuild 754
@@ -6,6 +7,7 @@ MD5 f7eec7d1d48c737147aec0e19c8b75a7 ChangeLog 2891
MD5 d992d28bec4a3bfd72b441145091a58e metadata.xml 244
MD5 6365486c1e78a5fc73e34a3bda3feef7 files/lua-4.0-config.patch 840
MD5 652889fa621a25d6dc41ce0eb76bd5c2 files/digest-lua-4.0.1 61
+MD5 a632e1be5e5a3d26e3409a998d32f72a files/digest-lua-5.0.2 61
MD5 f38ae8bf37049562a9b36c30d90eea78 files/digest-lua-5.0.1_beta20031003-r2 61
MD5 7bb76903226a11484013e9657e217025 files/digest-lua-4.0 55
MD5 aa4434c9f3a86a28f227df41cb874093 files/digest-lua-5.0 185
diff --git a/dev-lang/lua/files/digest-lua-5.0.2 b/dev-lang/lua/files/digest-lua-5.0.2
new file mode 100644
index 000000000000..78afe9bc10d4
--- /dev/null
+++ b/dev-lang/lua/files/digest-lua-5.0.2
@@ -0,0 +1 @@
+MD5 e515b9a12d129eaa52f88b9686e0b6a1 lua-5.0.2.tar.gz 190038
diff --git a/dev-lang/lua/files/lua-5.0.2-pic.patch b/dev-lang/lua/files/lua-5.0.2-pic.patch
new file mode 100644
index 000000000000..3fc403bd73ad
--- /dev/null
+++ b/dev-lang/lua/files/lua-5.0.2-pic.patch
@@ -0,0 +1,38 @@
+diff -Naur lua-5.0.2/Makefile lua/Makefile
+--- lua-5.0.2/Makefile 2003-04-11 02:34:38.000000000 +0200
++++ lua/Makefile 2004-03-16 20:28:18.736068272 +0100
+@@ -38,8 +38,8 @@
+
+ # shared libraries (for Linux)
+ so:
+- ld -o lib/liblua.so.$V -shared src/*.o
+- ld -o lib/liblualib.so.$V -shared src/lib/*.o
++ gcc -o lib/liblua.so.$V -shared src/*.o
++ gcc -o lib/liblualib.so.$V -shared src/lib/*.o
+ cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+
+ # binaries using shared libraries
+diff -Naur lua-5.0.2/src/lib/Makefile lua/src/lib/Makefile
+--- lua-5.0.2/src/lib/Makefile 2003-03-28 13:49:56.000000000 +0100
++++ lua/src/lib/Makefile 2004-03-16 20:29:24.035141304 +0100
+@@ -4,6 +4,8 @@
+
+ include $(LUA)/config
+
++CFLAGS= $(MYCFLAGS) $(PICFLAGS) $(WARN) $(INCS) $(DEFS)
++
+ EXTRA_DEFS= $(POPEN) $(TMPNAM) $(DEGREES) $(LOADLIB)
+
+ OBJS= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
+diff -Naur lua-5.0.2/src/Makefile lua/src/Makefile
+--- lua-5.0.2/src/Makefile 2002-12-13 13:12:11.000000000 +0100
++++ lua/src/Makefile 2004-03-16 20:28:52.047004240 +0100
+@@ -4,6 +4,8 @@
+
+ include $(LUA)/config
+
++CFLAGS= $(MYCFLAGS) $(PICFLAGS) $(WARN) $(INCS) $(DEFS)
++
+ OBJS= \
+ lapi.o \
+ lcode.o \
diff --git a/dev-lang/lua/lua-5.0.2.ebuild b/dev-lang/lua/lua-5.0.2.ebuild
new file mode 100644
index 000000000000..900831543787
--- /dev/null
+++ b/dev-lang/lua/lua-5.0.2.ebuild
@@ -0,0 +1,84 @@
+# 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.2.ebuild,v 1.1 2004/03/16 19:37:25 twp Exp $
+
+DESCRIPTION="A powerful light-weight programming language designed for extending applications"
+HOMEPAGE="http://www.lua.org/"
+SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha -hppa ~mips ~ppc ~sparc ~x86 ~amd64"
+IUSE="readline"
+DEPEND=">=sys-apps/sed-4
+ sys-apps/findutils"
+
+src_unpack() {
+
+ unpack ${A}
+
+ epatch ${FILESDIR}/lua-${PV}-pic.patch
+
+ cd ${S}
+
+ sed -i config \
+ -e 's:^#\(LOADLIB= -DUSE_DLOPEN=1\):\1:' \
+ -e 's:^#\(DLLIB= -ldl\):\1:' \
+ -e 's:^#\(MYLDFLAGS= -Wl,-E\):\1:' \
+ -e 's:^#\(POPEN= -DUSE_POPEN=1\)$:\1:' \
+ -e "s:^\(MYCFLAGS= \)-O2:\1${CFLAGS}:" \
+ -e 's:^\(INSTALL_ROOT= \)/usr/local:\1$(DESTDIR)/usr:' \
+ -e 's:^\(INSTALL_MAN= $(INSTALL_ROOT)\)/man/man1:\1/share/man/man1:'
+
+ sed -i doc/readme.html \
+ -e 's:\(/README\)\("\):\1.gz\2:g'
+
+ if [ `use readline` ]; then
+ sed -i config \
+ -e "s:^#\(USERCONF=-DLUA_USERCONFIG='\"\$(LUA)/etc/saconfig.c\"' -DUSE_READLINE\):\1:" \
+ -e 's:^#\(EXTRA_LIBS= -lm -ldl -lreadline\) # \(-lhistory -lcurses -lncurses\):\1 \2:'
+ fi
+
+ cat >etc/lua.pc <<EOF
+prefix=/usr
+exec_prefix=\${prefix}
+includedir=\${prefix}/include
+libdir=\${exec_prefix}/lib
+interpreter=\${exec_prefix}/bin/lua
+compiler=\${exec_prefix}/bin/luac
+
+Name: Lua
+Description: An extension programming language
+Version: ${PV}
+Cflags: -I\${includedir}
+Libs: -L\${libdir} -llua -llualib -ldl -lm
+EOF
+
+}
+
+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 UPDATE
+ dohtml doc/*.html doc/*.gif
+ for i in `find . -name README -printf "%h\n"`; do
+ docinto ${i#.}
+ dodoc ${i}/README
+ done
+
+ insinto /usr/share/lua
+ doins etc/compat.lua
+ insinto /etc
+ newins etc/lua.magic magic
+ insinto /usr/share/pixmaps
+ doins etc/lua.xpm
+ insinto /usr/lib/pkgconfig
+ doins etc/lua.pc
+
+}