pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jul  8 11:54:53 UTC 2020

Modified Files:
        pkgsrc/textproc: Makefile
Added Files:
        pkgsrc/textproc/lua-stringy: DESCR Makefile PLIST distinfo
        pkgsrc/textproc/lua-stringy/patches: patch-stringy_Makefile

Log Message:
textproc: Add lua-stringy

Fast Lua string operations for: count, find, startswith, endswith, split


To generate a diff of this commit:
cvs rdiff -u -r1.1154 -r1.1155 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-stringy/DESCR \
    pkgsrc/textproc/lua-stringy/Makefile pkgsrc/textproc/lua-stringy/PLIST \
    pkgsrc/textproc/lua-stringy/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile

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

Modified files:

Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1154 pkgsrc/textproc/Makefile:1.1155
--- pkgsrc/textproc/Makefile:1.1154     Thu Jul  2 17:30:22 2020
+++ pkgsrc/textproc/Makefile    Wed Jul  8 11:54:53 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1154 2020/07/02 17:30:22 nia Exp $
+# $NetBSD: Makefile,v 1.1155 2020/07/08 11:54:53 nia Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -465,6 +465,7 @@ SUBDIR+=    lua-expat
 SUBDIR+=       lua-lustache
 SUBDIR+=       lua-markdown
 SUBDIR+=       lua-slnunicode
+SUBDIR+=       lua-stringy
 SUBDIR+=       lua-utf8
 SUBDIR+=       lua-xapian
 SUBDIR+=       lucene++

Added files:

Index: pkgsrc/textproc/lua-stringy/DESCR
diff -u /dev/null pkgsrc/textproc/lua-stringy/DESCR:1.1
--- /dev/null   Wed Jul  8 11:54:53 2020
+++ pkgsrc/textproc/lua-stringy/DESCR   Wed Jul  8 11:54:53 2020
@@ -0,0 +1 @@
+Fast Lua string operations for: count, find, startswith, endswith, split
Index: pkgsrc/textproc/lua-stringy/Makefile
diff -u /dev/null pkgsrc/textproc/lua-stringy/Makefile:1.1
--- /dev/null   Wed Jul  8 11:54:53 2020
+++ pkgsrc/textproc/lua-stringy/Makefile        Wed Jul  8 11:54:53 2020
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 11:54:53 nia Exp $
+
+DISTNAME=      lua-stringy-0.6.1
+PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES=    textproc lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mdeneen/}
+GITHUB_PROJECT=        lua-stringy
+GITHUB_TAG=    v0.6-1
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mdeneen/lua-stringy
+COMMENT=       Fast Lua string operations
+LICENSE=       mit
+
+USE_TOOLS+=    gmake pkg-config
+
+BUILD_DIRS=    stringy
+
+MAKE_FLAGS+=   LUA_PC=lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/stringy/stringy.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/stringy.so
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/lua-stringy/PLIST
diff -u /dev/null pkgsrc/textproc/lua-stringy/PLIST:1.1
--- /dev/null   Wed Jul  8 11:54:53 2020
+++ pkgsrc/textproc/lua-stringy/PLIST   Wed Jul  8 11:54:53 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 11:54:53 nia Exp $
+${LUA_CDIR}/stringy.so
Index: pkgsrc/textproc/lua-stringy/distinfo
diff -u /dev/null pkgsrc/textproc/lua-stringy/distinfo:1.1
--- /dev/null   Wed Jul  8 11:54:53 2020
+++ pkgsrc/textproc/lua-stringy/distinfo        Wed Jul  8 11:54:53 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 11:54:53 nia Exp $
+
+SHA1 (lua-stringy-0.6.1.tar.gz) = 25ed808267eb8e09993ecc7b067ad5f0362bcb61
+RMD160 (lua-stringy-0.6.1.tar.gz) = bd2b7d55ca4b53d2258a4c3ed685a51b2540c944
+SHA512 (lua-stringy-0.6.1.tar.gz) = 2c2e07bc0c9981a58da350e13a2c956a250fd3a270aa8c165a8ad4609c6bd1a3c308df89352827f5a936c50d942b5348a4accb68776d628d9bcb66e9afd1ec2a
+Size (lua-stringy-0.6.1.tar.gz) = 5826 bytes
+SHA1 (patch-stringy_Makefile) = de1abbb4e5c5a4b805caea58bd88b1ed4eeff0ae

Index: pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile
diff -u /dev/null pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile:1.1
--- /dev/null   Wed Jul  8 11:54:53 2020
+++ pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile  Wed Jul  8 11:54:53 2020
@@ -0,0 +1,27 @@
+$NetBSD: patch-stringy_Makefile,v 1.1 2020/07/08 11:54:53 nia Exp $
+
+- Append CFLAGS.
+- Use LDFLAGS when linking.
+- Don't try to run tests.
+
+--- stringy/Makefile.orig      2019-03-22 19:12:17.000000000 +0000
++++ stringy/Makefile
+@@ -2,7 +2,7 @@ LUA ?= lua5.1
+ LUA_PC ?= lua5.1
+ LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags)
+ 
+-CFLAGS ?= -O3 -Wall -Werror
++CFLAGS += -Wall
+ 
+ all: stringy.so
+ 
+@@ -12,8 +12,7 @@ all: stringy.so
+ stringy.o: fastsearch.h
+ 
+ stringy.so: stringy.o stringy_test.lua
+-      $(CC) -shared stringy.o -o $@
+-      $(LUA) stringy_test.lua
++      $(CC) $(LDFLAGS) -shared stringy.o -o $@
+ 
+ clean:
+       rm -f stringy.so stringy.o *.rock



Home | Main Index | Thread Index | Old Index