pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/lua-BitOp Add Lua BitOp module from LuaJIT project.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29ec81ac46a9
branches:  trunk
changeset: 633816:29ec81ac46a9
user:      alnsn <alnsn%pkgsrc.org@localhost>
date:      Sat May 03 13:02:38 2014 +0000

description:
Add Lua BitOp module from LuaJIT project.

diffstat:

 devel/lua-BitOp/DESCR                  |   2 ++
 devel/lua-BitOp/Makefile               |  24 ++++++++++++++++++++++++
 devel/lua-BitOp/PLIST                  |  11 +++++++++++
 devel/lua-BitOp/distinfo               |   6 ++++++
 devel/lua-BitOp/patches/patch-Makefile |  23 +++++++++++++++++++++++
 5 files changed, 66 insertions(+), 0 deletions(-)

diffs (86 lines):

diff -r f230422c760c -r 29ec81ac46a9 devel/lua-BitOp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-BitOp/DESCR     Sat May 03 13:02:38 2014 +0000
@@ -0,0 +1,2 @@
+Lua BitOp is a C extension module for Lua which adds bitwise
+operations on numbers.
diff -r f230422c760c -r 29ec81ac46a9 devel/lua-BitOp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-BitOp/Makefile  Sat May 03 13:02:38 2014 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2014/05/03 13:02:38 alnsn Exp $
+
+DISTNAME=      LuaBitOp-1.0.2
+PKGNAME=       ${DISTNAME:S/Lua/${LUA_PKGPREFIX}-/}
+CATEGORIES=    devel
+MASTER_SITES=  http://bitop.luajit.org/download/
+
+MAINTAINER=    alnsn%NetBSD.org@localhost
+HOMEPAGE=      http://bitop.luajit.org/
+COMMENT=       Lua module which adds bitwise operations on numbers
+LICENSE=       mit
+
+NO_CONFIGURE=  yes
+USE_TOOLS+=    gmake
+MAKE_FLAGS+=   LUA_CDIR=${LUA_CDIR}
+MAKE_FLAGS+=   LUA_DOCDIR=${LUA_DOCDIR}
+MAKE_FLAGS+=   INSTALLPATH=${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+INSTALLATION_DIRS+=    ${LUA_CDIR} ${LUA_DOCDIR}
+
+TEST_TARGET=   test
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f230422c760c -r 29ec81ac46a9 devel/lua-BitOp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-BitOp/PLIST     Sat May 03 13:02:38 2014 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/03 13:02:38 alnsn Exp $
+${LUA_CDIR}/bit.so
+${LUA_DOCDIR}/api.html
+${LUA_DOCDIR}/bluequad-print.css
+${LUA_DOCDIR}/bluequad.css
+${LUA_DOCDIR}/changes.html
+${LUA_DOCDIR}/contact.html
+${LUA_DOCDIR}/img/contact.png
+${LUA_DOCDIR}/index.html
+${LUA_DOCDIR}/install.html
+${LUA_DOCDIR}/semantics.html
diff -r f230422c760c -r 29ec81ac46a9 devel/lua-BitOp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-BitOp/distinfo  Sat May 03 13:02:38 2014 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/05/03 13:02:38 alnsn Exp $
+
+SHA1 (LuaBitOp-1.0.2.tar.gz) = 1f611edbc4f65279072c96af15bd6e455ea9dd10
+RMD160 (LuaBitOp-1.0.2.tar.gz) = 6b5a44515022ed1f4edb9d966b8ea3aa9c38a892
+Size (LuaBitOp-1.0.2.tar.gz) = 23127 bytes
+SHA1 (patch-Makefile) = 2dd050bc9bf276798b6fe63c0a1c4e4d5fc9ef27
diff -r f230422c760c -r 29ec81ac46a9 devel/lua-BitOp/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-BitOp/patches/patch-Makefile    Sat May 03 13:02:38 2014 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-Makefile,v 1.1 2014/05/03 13:02:38 alnsn Exp $
+
+--- Makefile.orig      2012-05-08 19:15:00.000000000 +0000
++++ Makefile
+@@ -3,7 +3,7 @@
+ # To compile with MinGW please run: mingw32-make -f Makefile.mingw
+ 
+ # Include path where lua.h, luaconf.h and lauxlib.h reside:
+-INCLUDES= -I/usr/local/include
++INCLUDES= -I $(LUA_INC)
+ 
+ DEFINES=
+ # Use this for the old ARM ABI with swapped FPA doubles.
+@@ -39,7 +39,8 @@ $(MODSO): $(MODNAME).o
+       $(SOCC) $(SOLDFLAGS) -o $@ $<
+ 
+ install: $(MODSO)
+-      $(INSTALL) $< `$(INSTALLPATH) $(MODNAME)`
++      ${BSD_INSTALL_LIB} ${MODSO} ${DESTDIR}${PREFIX}/${LUA_CDIR}
++      cp -r doc/* ${DESTDIR}${PREFIX}/${LUA_DOCDIR}
+ 
+ test: $(MODSO)
+       @$(LUA) bittest.lua && echo "basic test OK"



Home | Main Index | Thread Index | Old Index