ports/98208: New port devel/lua50-gettext: gettext bindings for Lua
Andrew Turner
andrew+ports at fubar.geek.nz
Wed May 31 10:20:13 UTC 2006
>Number: 98208
>Category: ports
>Synopsis: New port devel/lua50-gettext: gettext bindings for Lua
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 31 10:20:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Andrew Turner
>Release: FreeBSD 5.5-RC1 i386
>Organization:
None
>Environment:
System: FreeBSD serv.int.fubar.geek.nz 5.5-RC1 FreeBSD 5.5-RC1 #0: Mon May 15 14:09:18 NZST 2006 root at serv.int.fubar.geek.nz:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Attached is a new port containing Gettext bindings for Lua. This is used in the BSDInstaller
>How-To-Repeat:
>Fix:
--- port-devel-luagettext.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/Makefile
# pkg-descr
# pkg-plist
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# New ports collection makefile for: lua50-gettext
X# Date created: 31 May 2006
X# Whom: Andrew Turner <andrew+ports at fubar.geek.nz>
X#
X# $FreeBSD$
X#
X
XPORTNAME= gettext
XPORTVERSION= 1.5
XCATEGORIES= devel
XMASTER_SITES= http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/gettext/
XPKGNAMEPREFIX= lua50-
XDISTFILES= lua_gettext.c?rev=${CVER} gettext.lua?rev=${LVER}
X
XMAINTAINER= andrew+ports at fubar.geek.nz
XCOMMENT= Gettext ibinding for Lua 5.0.x
X
XBUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
XRUN_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
X
XUSE_GETTEXT= yes
X
XLIBDIR= ${PREFIX}/lib/lua/5.0
X
XCVER= 1.15
XLVER= ${PORTVERSION}
X
Xdo-extract:
X ${MKDIR} ${WRKSRC}
X.for file in ${DISTFILES}
X ${CP} ${DISTDIR}/${file} ${WRKSRC}/${file:C/\?.*$//}
X.endfor
X ${CP} ${FILESDIR}/Makefile ${WRKSRC}
X
Xdo-install:
X ${MKDIR} ${PREFIX}/lib/lua/5.0
X ${MKDIR} ${PREFIX}/share/lua/5.0
X ${INSTALL_DATA} ${WRKSRC}/gettext.lua ${PREFIX}/share/lua/5.0/
X ${MKDIR} ${PREFIX}/lib/lua/5.0
X ${INSTALL_PROGRAM} ${WRKSRC}/lgettext.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 (lua_gettext.c?rev=1.15) = 24e06662fbce4903a90f6d9c96baae9e
XSHA256 (lua_gettext.c?rev=1.15) = c3ba6db0e0220f2789d06099ce28372b5a30234ffee78caf5fa47efdf274baaf
XSIZE (lua_gettext.c?rev=1.15) = 1429
XMD5 (gettext.lua?rev=1.5) = 16a2fcabd0f161712d00b60e93d1c849
XSHA256 (gettext.lua?rev=1.5) = a861d10a6aba7d0949c0851fff4d42a494bfaffbcc93a163ec85cecb38309fe3
XSIZE (gettext.lua?rev=1.5) = 315
END-of-distinfo
echo c - files
mkdir -p files > /dev/null 2>&1
echo x - files/Makefile
sed 's/^X//' >files/Makefile << 'END-of-files/Makefile'
X# $FreeBSD$
X
XSHLIB= gettext
XSHLIB_NAME= lgettext.so
X
XSRCS= lua_gettext.c
X
XCFLAGS+= -I${PREFIX}/include
XLDFLAGS+= -L${PREFIX}/lib -lintl
X
X.include <bsd.lib.mk>
END-of-files/Makefile
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
XLua bindings for Gettext
END-of-pkg-descr
echo x - pkg-plist
sed 's/^X//' >pkg-plist << 'END-of-pkg-plist'
Xlib/lua/5.0/lgettext.so
Xshare/lua/5.0/gettext.lua
X at dirrmtry lib/lua/5.0
X at dirrmtry lib/lua
X at dirrmtry share/lua/5.0
X at dirrmtry share/lua
END-of-pkg-plist
exit
--- port-devel-luagettext.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list