Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc textproc: Add lua-stringy



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f884fe5a6a4c
branches:  trunk
changeset: 435473:f884fe5a6a4c
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 11:54:53 2020 +0000

description:
textproc: Add lua-stringy

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

diffstat:

 textproc/Makefile                                   |   3 +-
 textproc/lua-stringy/DESCR                          |   1 +
 textproc/lua-stringy/Makefile                       |  28 +++++++++++++++++++++
 textproc/lua-stringy/PLIST                          |   2 +
 textproc/lua-stringy/distinfo                       |   7 +++++
 textproc/lua-stringy/patches/patch-stringy_Makefile |  27 ++++++++++++++++++++
 6 files changed, 67 insertions(+), 1 deletions(-)

diffs (102 lines):

diff -r 58a6d4518924 -r f884fe5a6a4c textproc/Makefile
--- a/textproc/Makefile Wed Jul 08 11:25:59 2020 +0000
+++ b/textproc/Makefile Wed Jul 08 11:54:53 2020 +0000
@@ -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-lustache
 SUBDIR+=       lua-markdown
 SUBDIR+=       lua-slnunicode
+SUBDIR+=       lua-stringy
 SUBDIR+=       lua-utf8
 SUBDIR+=       lua-xapian
 SUBDIR+=       lucene++
diff -r 58a6d4518924 -r f884fe5a6a4c textproc/lua-stringy/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-stringy/DESCR        Wed Jul 08 11:54:53 2020 +0000
@@ -0,0 +1,1 @@
+Fast Lua string operations for: count, find, startswith, endswith, split
diff -r 58a6d4518924 -r f884fe5a6a4c textproc/lua-stringy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-stringy/Makefile     Wed Jul 08 11:54:53 2020 +0000
@@ -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"
diff -r 58a6d4518924 -r f884fe5a6a4c textproc/lua-stringy/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-stringy/PLIST        Wed Jul 08 11:54:53 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 11:54:53 nia Exp $
+${LUA_CDIR}/stringy.so
diff -r 58a6d4518924 -r f884fe5a6a4c textproc/lua-stringy/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-stringy/distinfo     Wed Jul 08 11:54:53 2020 +0000
@@ -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
diff -r 58a6d4518924 -r f884fe5a6a4c textproc/lua-stringy/patches/patch-stringy_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-stringy/patches/patch-stringy_Makefile       Wed Jul 08 11:54:53 2020 +0000
@@ -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