Index: head/devel/lua-bitop/Makefile =================================================================== --- head/devel/lua-bitop/Makefile (revision 477275) +++ head/devel/lua-bitop/Makefile (revision 477276) @@ -1,28 +1,36 @@ # Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD$ PORTNAME= bitop PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://bitop.luajit.org/download/ \ LOCAL/sunpoet -DISTNAME= LuaBitOp-${PORTVERSION} PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} +DISTNAME= LuaBitOp-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Bitwise operations on numbers LICENSE= MIT -CFLAGS+= -DLUA_NUMBER_LONG_LONG -I${LUA_INCDIR} +CFLAGS+= -I${LUA_INCDIR} MAKE_ARGS= CC=${CC} LUA=${LUA_CMD} TEST_TARGET= test USES?= gmake lua -PLIST_FILES= %%LUA_MODLIBDIR%%/bit.so +PLIST_FILES= ${LUA_MODLIBDIR}/bit.so +.include + +.if ${LUA_VER_STR} >= 53 +CFLAGS+= -DLUA_NUMBER_DOUBLE +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bittest.lua +.endif + do-install: ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/ ${INSTALL_LIB} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}/ -.include +.include Index: head/devel/lua-bitop/files/extra-patch-bittest.lua =================================================================== --- head/devel/lua-bitop/files/extra-patch-bittest.lua (nonexistent) +++ head/devel/lua-bitop/files/extra-patch-bittest.lua (revision 477276) @@ -0,0 +1,13 @@ +--- bittest.lua.orig 2012-05-08 19:15:00 UTC ++++ bittest.lua +@@ -8,6 +8,10 @@ local vb = { + 0x7fffffff, 0x80000000, 0xffffffff + } + ++local function tostring(n) ++ return type(n) == "string" and n or string.format("%.11g", n) ++end ++ + local function cksum(name, s, r) + local z = 0 + for i=1,#s do z = (z + string.byte(s, i)*i) % 2147483629 end Property changes on: head/devel/lua-bitop/files/extra-patch-bittest.lua ___________________________________________________________________ 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