pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel Add lua-bitlib
details: https://anonhg.NetBSD.org/pkgsrc/rev/c2529731afe1
branches: trunk
changeset: 315276:c2529731afe1
user: maya <maya%pkgsrc.org@localhost>
date: Tue Nov 20 17:26:20 2018 +0000
description:
Add lua-bitlib
bit32 is the native Lua 5.2 bit manipulation library, in the version
from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3.
>From Edgar Fu? in PR pkg/53600
diffstat:
devel/Makefile | 3 ++-
devel/lua-bitlib/DESCR | 2 ++
devel/lua-bitlib/Makefile | 32 ++++++++++++++++++++++++++++++++
devel/lua-bitlib/PLIST | 2 ++
devel/lua-bitlib/distinfo | 6 ++++++
5 files changed, 44 insertions(+), 1 deletions(-)
diffs (75 lines):
diff -r d2ac6272d2e5 -r c2529731afe1 devel/Makefile
--- a/devel/Makefile Tue Nov 20 17:26:19 2018 +0000
+++ b/devel/Makefile Tue Nov 20 17:26:20 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2755 2018/11/18 08:18:59 ryoon Exp $
+# $NetBSD: Makefile,v 1.2756 2018/11/20 17:26:20 maya Exp $
#
COMMENT= Development utilities
@@ -714,6 +714,7 @@
SUBDIR+= ltsa
SUBDIR+= lua-BitOp
SUBDIR+= lua-alt-getopt
+SUBDIR+= lua-bitlib
SUBDIR+= lua-coxpcall
SUBDIR+= lua-filesystem
SUBDIR+= lua-gi
diff -r d2ac6272d2e5 -r c2529731afe1 devel/lua-bitlib/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-bitlib/DESCR Tue Nov 20 17:26:20 2018 +0000
@@ -0,0 +1,2 @@
+bit32 is the native Lua 5.2 bit manipulation library, in the version
+from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3.
diff -r d2ac6272d2e5 -r c2529731afe1 devel/lua-bitlib/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-bitlib/Makefile Tue Nov 20 17:26:20 2018 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2018/11/20 17:26:20 maya Exp $
+
+DISTNAME= bitlib-5.3.0
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+GITHUB_PROJECT= lua-compat-5.2
+GITHUB_TAG= ${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
+
+CATEGORIES= devel
+COMMENT= Lua 5.2 bit manipulation library
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+
+HOMEPAGE= https://github.com/keplerproject/lua-compat-5.2
+LICENSE= mit
+
+LUA_VERSIONS_ACCEPTED= 51
+
+NO_CONFIGURE= yes
+
+INSTALLATION_DIRS+= ${LUA_CDIR}/bit32
+
+.include "../../lang/lua/module.mk"
+
+do-build:
+ ${CC} ${CFLAGS} -fPIC -c -I ${WRKSRC}/c-api ${WRKSRC}/lbitlib.c -o ${WRKSRC}/bit32.o
+ ${LD} ${LDFLAGS} -fPIC -shared ${WRKSRC}/bit32.o -o ${WRKSRC}/bit32.so
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bit32.so \
+ ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff -r d2ac6272d2e5 -r c2529731afe1 devel/lua-bitlib/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-bitlib/PLIST Tue Nov 20 17:26:20 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/20 17:26:20 maya Exp $
+${LUA_CDIR}/bit32.so
diff -r d2ac6272d2e5 -r c2529731afe1 devel/lua-bitlib/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-bitlib/distinfo Tue Nov 20 17:26:20 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/11/20 17:26:20 maya Exp $
+
+SHA1 (bitlib-5.3.0.tar.gz) = 995834b630a64c31fb77b08b5f75b950d31918c5
+RMD160 (bitlib-5.3.0.tar.gz) = cf09dee8e2e18c8f0ae11e1886db1713b7edfef1
+SHA512 (bitlib-5.3.0.tar.gz) = 234807e201197bc27720864a328f5b63a9fe8bf88bf1fb64cd178532c0745a330b23455fcff0e50d365034f3e43af3c835de7f10a685275da66a7a1ca873e90a
+Size (bitlib-5.3.0.tar.gz) = 21884 bytes
Home |
Main Index |
Thread Index |
Old Index