ports/94987: New Port devel/lua50-posix: Lua posix layer
Andrew Turner
andrew at fubar.geek.nz
Tue Apr 11 14:04:09 UTC 2006
The following reply was made to PR ports/94987; it has been noted by GNATS.
From: Andrew Turner <andrew at fubar.geek.nz>
To: bug-followup at FreeBSD.org, andrew at fubar.geek.nz
Cc:
Subject: Re: ports/94987: New Port devel/lua50-posix: Lua posix layer
Date: Wed, 12 Apr 2006 00:32:25 +1200
The previous shar file has been replaced by the following. The new
version dosn't complain if ${PREFIX}/lib/lua/5.0 and
${PREFIX}/share/lua/5.0 are missing. It also returns the object that was
created to fix some software (BSDInstaller expects this)
--- port-luaposix-1.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# Makefile
# distinfo
# files
# files/patch-Makefile
# files/patch-posix.lua
# pkg-descr
# pkg-plist
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# New ports collection makefile for: lua50-posix
X# Date created: 27 March 2006
X# Whom: Andrew Turner <andrew+ports at fubar.geek.nz>
X#
X# $FreeBSD$
X#
X
XPORTNAME= lua50-posix
XPORTVERSION= 5.0
XCATEGORIES= devel
XMASTER_SITES= http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
XDISTFILES= lposix.tar.gz
X
XMAINTAINER= andrew+ports at fubar.geek.nz
XCOMMENT= A POSIX layer for Lua
X
XBUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua
X
XWRKSRC= ${WRKDIR}/posix
X
Xdo-install:
X @ ${MKDIR} -p ${PREFIX}/share/lua/5.0
X @ ${INSTALL_DATA} ${WRKSRC}/posix.lua ${PREFIX}/share/lua/5.0
X @ ${MKDIR} -p ${PREFIX}/lib/lua/5.0
X @ ${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${PREFIX}/lib/lua/5.0
X
X.include <bsd.port.mk>
END-of-Makefile
echo x - distinfo
sed 's/^X//' >distinfo << 'END-of-distinfo'
XMD5 (lposix.tar.gz) = f22871247e444412a901d179028a0d82
XSHA256 (lposix.tar.gz) = e5140e19df90069b579be7983506e2461b6678e9e80b82545b6ca8070fd318a3
XSIZE (lposix.tar.gz) = 9651
END-of-distinfo
echo c - files
mkdir -p files > /dev/null 2>&1
echo x - files/patch-Makefile
sed 's/^X//' >files/patch-Makefile << 'END-of-files/patch-Makefile'
X--- Makefile.orig Mon Mar 27 12:25:04 2006
X+++ Makefile Mon Mar 27 12:43:24 2006
X@@ -1,7 +1,7 @@
X # makefile for POSIX library for Lua
X
X # change these to reflect your Lua installation
X-LUA= /tmp/lhf/lua-5.0
X+LUA= ${PREFIX}
X LUAINC= $(LUA)/include
X LUALIB= $(LUA)/lib
X LUABIN= $(LUA)/bin
X@@ -21,7 +21,7 @@
X all: test
X
X test: $T
X- $(LUABIN)/lua -l$(MYNAME) test.lua
X+ LD_PRELOAD=${PREFIX}/lib/liblua.so:${PREFIX}/lib/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
X
X $T: $(OBJS)
X $(CC) -o $@ -shared $(OBJS)
END-of-files/patch-Makefile
echo x - files/patch-posix.lua
sed 's/^X//' >files/patch-posix.lua << 'END-of-files/patch-posix.lua'
X--- posix.lua.orig Tue Apr 11 23:59:52 2006
X+++ posix.lua Wed Apr 12 00:00:49 2006
X@@ -8,3 +8,5 @@
X end
X
X so"posix"
X+
X+return posix
END-of-files/patch-posix.lua
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
XLuaPosix is a Lua extension library that provides support for POSIX.
END-of-pkg-descr
echo x - pkg-plist
sed 's/^X//' >pkg-plist << 'END-of-pkg-plist'
Xshare/lua/5.0/posix.lua
Xlib/lua/5.0/lposix.so
X at dirrmtry share/lua/5.0
X at dirrmtry share/lua
X at dirrmtry lib/lua/5.0
X at dirrmtry lib/lua
END-of-pkg-plist
exit
--- port-luaposix-1.shar ends here ---
More information about the freebsd-ports-bugs
mailing list