pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Jul 11 13:58:11 UTC 2020

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/lua-bit32: DESCR Makefile PLIST distinfo
        pkgsrc/devel/lua-bit32/files: Makefile
Removed Files:
        pkgsrc/devel/lua-bitlib: DESCR Makefile PLIST distinfo

Log Message:
devel: Add lua-bit32, this replaces lua-bitlib with a newer version

lua-bitlib has a confusing name that doesn't match the name of the actual
Lua module, to the extent that I packaged this without realizing it had
already been packaged. :(

bit32 is the native Lua 5.2+ bit manipulation library.

This package contains bit32 distributed as a module for use by all
Lua versions.


To generate a diff of this commit:
cvs rdiff -u -r1.3172 -r1.3173 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-bit32/DESCR \
    pkgsrc/devel/lua-bit32/Makefile pkgsrc/devel/lua-bit32/PLIST \
    pkgsrc/devel/lua-bit32/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-bit32/files/Makefile
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/lua-bitlib/DESCR \
    pkgsrc/devel/lua-bitlib/distinfo
cvs rdiff -u -r1.3 -r0 pkgsrc/devel/lua-bitlib/Makefile
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/lua-bitlib/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3172 pkgsrc/devel/Makefile:1.3173
--- pkgsrc/devel/Makefile:1.3172        Sat Jul 11 12:56:17 2020
+++ pkgsrc/devel/Makefile       Sat Jul 11 13:58:10 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3172 2020/07/11 12:56:17 nia Exp $
+# $NetBSD: Makefile,v 1.3173 2020/07/11 13:58:10 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -851,7 +851,7 @@ SUBDIR+=    lua-ansicolors
 SUBDIR+=       lua-argparse
 SUBDIR+=       lua-basexx
 SUBDIR+=       lua-binaryheap
-SUBDIR+=       lua-bitlib
+SUBDIR+=       lua-bit32
 SUBDIR+=       lua-busted
 SUBDIR+=       lua-cliargs
 SUBDIR+=       lua-compat53

Added files:

Index: pkgsrc/devel/lua-bit32/DESCR
diff -u /dev/null pkgsrc/devel/lua-bit32/DESCR:1.1
--- /dev/null   Sat Jul 11 13:58:11 2020
+++ pkgsrc/devel/lua-bit32/DESCR        Sat Jul 11 13:58:11 2020
@@ -0,0 +1,4 @@
+bit32 is the native Lua 5.2+ bit manipulation library.
+
+This package contains bit32 distributed as a module for use by all
+Lua versions.
Index: pkgsrc/devel/lua-bit32/Makefile
diff -u /dev/null pkgsrc/devel/lua-bit32/Makefile:1.1
--- /dev/null   Sat Jul 11 13:58:11 2020
+++ pkgsrc/devel/lua-bit32/Makefile     Sat Jul 11 13:58:11 2020
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2020/07/11 13:58:11 nia Exp $
+
+# Keep versioning in sync with the luarocks rockspec.
+DISTNAME=      lua-compat53-0.9
+PKGNAME=       ${LUA_PKGPREFIX}-bit32-5.3.5
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_PROJECT=        lua-compat-5.3
+GITHUB_TAG=    v${DISTNAME:S/^lua-compat53-//1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://luarocks.org/modules/siffiejoe/bit32
+COMMENT=       Lua 5.2 bit manipulation library
+LICENSE=       mit
+
+CONFLICTS+=    ${LUA_PKGPREFIX}-bitlib-[0-9]*
+SUPERSEDES+=   ${LUA_PKGPREFIX}-bitlib-[0-9]*
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}
+
+pre-build:
+       ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/bit32.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/bit32.so
+
+do-test:
+       cd ${WRKSRC}/tests && LUA_CPATH=${WRKSRC}/?.so \
+           ${LUA_INTERPRETER} test-bit32.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/lua-bit32/PLIST
diff -u /dev/null pkgsrc/devel/lua-bit32/PLIST:1.1
--- /dev/null   Sat Jul 11 13:58:11 2020
+++ pkgsrc/devel/lua-bit32/PLIST        Sat Jul 11 13:58:11 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/11 13:58:11 nia Exp $
+${LUA_CDIR}/bit32.so
Index: pkgsrc/devel/lua-bit32/distinfo
diff -u /dev/null pkgsrc/devel/lua-bit32/distinfo:1.1
--- /dev/null   Sat Jul 11 13:58:11 2020
+++ pkgsrc/devel/lua-bit32/distinfo     Sat Jul 11 13:58:11 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/11 13:58:11 nia Exp $
+
+SHA1 (lua-compat53-0.9.tar.gz) = e1f2f8052dacb30295c768969547423c882bf3ee
+RMD160 (lua-compat53-0.9.tar.gz) = ae80f773f517885dad3e64863aaf9b56d40d535c
+SHA512 (lua-compat53-0.9.tar.gz) = bec15b6e95cb5cc775785515eba1f094e453059a0ba1eefa433d328b823378b7f48d9c7a34080ad77478cffb2008bead93418f809793afa6021e6046562acc58
+Size (lua-compat53-0.9.tar.gz) = 53599 bytes

Index: pkgsrc/devel/lua-bit32/files/Makefile
diff -u /dev/null pkgsrc/devel/lua-bit32/files/Makefile:1.1
--- /dev/null   Sat Jul 11 13:58:11 2020
+++ pkgsrc/devel/lua-bit32/files/Makefile       Sat Jul 11 13:58:11 2020
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2020/07/11 13:58:11 nia Exp $
+
+all: bit32.so
+
+.c.o:
+       $(CC) $(CFLAGS) -DLUA_COMPAT_BITLIB -fPIC -c $<
+
+bit32.so: lbitlib.o
+       $(CC) $(LDFLAGS) -shared -o $@ lbitlib.o



Home | Main Index | Thread Index | Old Index