Wed Jul 8 11:54:53 2020 UTC ()
textproc: Add lua-stringy
Fast Lua string operations for: count, find, startswith, endswith, split
(nia)
diff -r1.1154 -r1.1155 pkgsrc/textproc/Makefile
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/DESCR
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/Makefile
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/PLIST
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/distinfo
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile
--- pkgsrc/textproc/Makefile 2020/07/02 17:30:22 1.1154
+++ pkgsrc/textproc/Makefile 2020/07/08 11:54:53 1.1155
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1154 2020/07/02 17:30:22 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.1155 2020/07/08 11:54:53 nia Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Text processing utilities (does not include desktop publishing) | | 4 | COMMENT= Text processing utilities (does not include desktop publishing) |
5 | | | 5 | |
6 | SUBDIR+= CRF++ | | 6 | SUBDIR+= CRF++ |
7 | SUBDIR+= DWB | | 7 | SUBDIR+= DWB |
8 | SUBDIR+= FlightCrew | | 8 | SUBDIR+= FlightCrew |
9 | SUBDIR+= GutenMark | | 9 | SUBDIR+= GutenMark |
10 | SUBDIR+= GutenMark-words | | 10 | SUBDIR+= GutenMark-words |
11 | SUBDIR+= LDoc | | 11 | SUBDIR+= LDoc |
12 | SUBDIR+= Markdown | | 12 | SUBDIR+= Markdown |
13 | SUBDIR+= OdfConverter | | 13 | SUBDIR+= OdfConverter |
14 | SUBDIR+= R-DT | | 14 | SUBDIR+= R-DT |
| @@ -455,26 +455,27 @@ SUBDIR+= libxslt | | | @@ -455,26 +455,27 @@ SUBDIR+= libxslt |
455 | SUBDIR+= libyaml | | 455 | SUBDIR+= libyaml |
456 | SUBDIR+= link-grammar | | 456 | SUBDIR+= link-grammar |
457 | SUBDIR+= lit2epub | | 457 | SUBDIR+= lit2epub |
458 | SUBDIR+= lout | | 458 | SUBDIR+= lout |
459 | SUBDIR+= lowdown | | 459 | SUBDIR+= lowdown |
460 | SUBDIR+= lq-sp | | 460 | SUBDIR+= lq-sp |
461 | SUBDIR+= lua-cjson | | 461 | SUBDIR+= lua-cjson |
462 | SUBDIR+= lua-cmark | | 462 | SUBDIR+= lua-cmark |
463 | SUBDIR+= lua-etlua | | 463 | SUBDIR+= lua-etlua |
464 | SUBDIR+= lua-expat | | 464 | SUBDIR+= lua-expat |
465 | SUBDIR+= lua-lustache | | 465 | SUBDIR+= lua-lustache |
466 | SUBDIR+= lua-markdown | | 466 | SUBDIR+= lua-markdown |
467 | SUBDIR+= lua-slnunicode | | 467 | SUBDIR+= lua-slnunicode |
| | | 468 | SUBDIR+= lua-stringy |
468 | SUBDIR+= lua-utf8 | | 469 | SUBDIR+= lua-utf8 |
469 | SUBDIR+= lua-xapian | | 470 | SUBDIR+= lua-xapian |
470 | SUBDIR+= lucene++ | | 471 | SUBDIR+= lucene++ |
471 | SUBDIR+= makeindexk | | 472 | SUBDIR+= makeindexk |
472 | SUBDIR+= makeztxt | | 473 | SUBDIR+= makeztxt |
473 | SUBDIR+= man2html | | 474 | SUBDIR+= man2html |
474 | SUBDIR+= mandoc | | 475 | SUBDIR+= mandoc |
475 | SUBDIR+= marisa | | 476 | SUBDIR+= marisa |
476 | SUBDIR+= markdown-mode | | 477 | SUBDIR+= markdown-mode |
477 | SUBDIR+= markdown2social | | 478 | SUBDIR+= markdown2social |
478 | SUBDIR+= mecab | | 479 | SUBDIR+= mecab |
479 | SUBDIR+= mecab-base | | 480 | SUBDIR+= mecab-base |
480 | SUBDIR+= mecab-ipadic | | 481 | SUBDIR+= mecab-ipadic |
Fast Lua string operations for: count, find, startswith, endswith, split
# $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
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"
@comment $NetBSD: PLIST,v 1.1 2020/07/08 11:54:53 nia Exp $
${LUA_CDIR}/stringy.so
$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
$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