ports/94987: New Port devel/lua50-posix: Lua posix layer
Andrew Turner
andrew at fubar.geek.nz
Mon Mar 27 00:50:17 UTC 2006
>Number: 94987
>Category: ports
>Synopsis: New Port devel/lua50-posix: Lua posix layer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 27 00:50:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Andrew Turner
>Release: 6.1-PRERELEASE
>Organization:
>Environment:
FreeBSD hermies.int.fubar.geek.nz 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Sun Mar 12 21:30:28 NZDT 2006 root at hermies.int.fubar.geek.nz:/usr/obj/srctrees/RELENG_6/sys/GENERIC i386
>Description:
Lua POSIX layer adds posix support to Lua.
I named it lua50-posix to be consistant with other language extension eg. p5-*, py24-*.
>How-To-Repeat:
>Fix:
--- port-luaposix.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:
#
# lua50-posix
# lua50-posix/Makefile
# lua50-posix/distinfo
# lua50-posix/files
# lua50-posix/files/patch-Makefile
# lua50-posix/pkg-descr
# lua50-posix/pkg-plist
#
echo c - lua50-posix
mkdir -p lua50-posix > /dev/null 2>&1
echo x - lua50-posix/Makefile
sed 's/^X//' >lua50-posix/Makefile << 'END-of-lua50-posix/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 @ ${INSTALL_DATA} ${WRKSRC}/posix.lua ${PREFIX}/share/lua/5.0
X @ ${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${PREFIX}/lib/lua/5.0
X
X.include <bsd.port.mk>
END-of-lua50-posix/Makefile
echo x - lua50-posix/distinfo
sed 's/^X//' >lua50-posix/distinfo << 'END-of-lua50-posix/distinfo'
XMD5 (lposix.tar.gz) = f22871247e444412a901d179028a0d82
XSHA256 (lposix.tar.gz) = e5140e19df90069b579be7983506e2461b6678e9e80b82545b6ca8070fd318a3
XSIZE (lposix.tar.gz) = 9651
END-of-lua50-posix/distinfo
echo c - lua50-posix/files
mkdir -p lua50-posix/files > /dev/null 2>&1
echo x - lua50-posix/files/patch-Makefile
sed 's/^X//' >lua50-posix/files/patch-Makefile << 'END-of-lua50-posix/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-lua50-posix/files/patch-Makefile
echo x - lua50-posix/pkg-descr
sed 's/^X//' >lua50-posix/pkg-descr << 'END-of-lua50-posix/pkg-descr'
XLuaPosix is a Lua extension library that provides support for POSIX.
END-of-lua50-posix/pkg-descr
echo x - lua50-posix/pkg-plist
sed 's/^X//' >lua50-posix/pkg-plist << 'END-of-lua50-posix/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-lua50-posix/pkg-plist
exit
--- port-luaposix.shar begins here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list