Index: head/devel/lua-bitlib/Makefile =================================================================== --- head/devel/lua-bitlib/Makefile (revision 339373) +++ head/devel/lua-bitlib/Makefile (revision 339374) @@ -1,26 +1,26 @@ # Created by: Rong-En Fan # $FreeBSD$ PORTNAME= bitlib PORTVERSION= 24 CATEGORIES= devel MASTER_SITES= http://luaforge.net/frs/download.php/2715/ PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= rafan@FreeBSD.org -COMMENT= A tiny library for bitwise operations +COMMENT= Tiny library for bitwise operations -USE_LUA= 5.0+ +USES= lua PLIST_FILES= %%LUA_MODLIBDIR%%/bit.so -NO_STAGE= yes do-build: cd ${WRKSRC} && \ ${CC} -fPIC -shared -o bit.so lbitlib.c \ - ${LUA_LIBDIR}/liblua.a -I${LUA_INCDIR} -lm + -I${LUA_INCDIR} -lm do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/bit.so ${LUA_MODLIBDIR} + @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR} .include Index: head/devel/lua-bitlib/files/patch-lbitlib.c =================================================================== --- head/devel/lua-bitlib/files/patch-lbitlib.c (nonexistent) +++ head/devel/lua-bitlib/files/patch-lbitlib.c (revision 339374) @@ -0,0 +1,22 @@ +--- ./lbitlib.c.orig 2007-11-16 14:14:40.000000000 +0100 ++++ ./lbitlib.c 2014-01-10 18:19:01.197863901 +0100 +@@ -42,7 +42,7 @@ + TDYADIC(rshift, >>, UInteger, UInteger) + TDYADIC(arshift, >>, Integer, UInteger) + +-static const struct luaL_reg bitlib[] = { ++static const struct luaL_Reg bitlib[] = { + {"cast", bit_cast}, + {"bnot", bit_bnot}, + {"band", bit_band}, +@@ -55,6 +55,9 @@ + }; + + LUALIB_API int luaopen_bit (lua_State *L) { +- luaL_openlib(L, "bit", bitlib, 0); ++ lua_newtable(L); ++ luaL_setfuncs(L, bitlib, 0); ++ lua_pushvalue(L,-1); ++ lua_setglobal(L,"bit"); + return 1; + } Property changes on: head/devel/lua-bitlib/files/patch-lbitlib.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property