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: Thu Jul 2 17:13:38 UTC 2020
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/lua-utf8: DESCR Makefile PLIST distinfo
pkgsrc/textproc/lua-utf8/files: Makefile
Log Message:
textproc: Add lua-utf8
This module adds UTF-8 support to Lua. It's compatible with Lua's
own string module, and passes all string and pattern matching tests
in Lua's test suite.
It also adds some useful routines against UTF-8 features:
- a convenient interface to escape Unicode sequences in strings.
- string insert/remove, since UTF-8 substring extract may be expensive.
- calculate Unicode width, useful when implementing e.g. console emulator.
- a useful interface to translate Unicode offsets and byte offsets.
To generate a diff of this commit:
cvs rdiff -u -r1.1152 -r1.1153 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-utf8/DESCR \
pkgsrc/textproc/lua-utf8/Makefile pkgsrc/textproc/lua-utf8/PLIST \
pkgsrc/textproc/lua-utf8/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-utf8/files/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.1152 pkgsrc/textproc/Makefile:1.1153
--- pkgsrc/textproc/Makefile:1.1152 Thu Jul 2 14:10:04 2020
+++ pkgsrc/textproc/Makefile Thu Jul 2 17:13:37 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1152 2020/07/02 14:10:04 nia Exp $
+# $NetBSD: Makefile,v 1.1153 2020/07/02 17:13:37 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -464,6 +464,7 @@ SUBDIR+= lua-expat
SUBDIR+= lua-lustache
SUBDIR+= lua-markdown
SUBDIR+= lua-slnunicode
+SUBDIR+= lua-utf8
SUBDIR+= lua-xapian
SUBDIR+= lucene++
SUBDIR+= makeindexk
Added files:
Index: pkgsrc/textproc/lua-utf8/DESCR
diff -u /dev/null pkgsrc/textproc/lua-utf8/DESCR:1.1
--- /dev/null Thu Jul 2 17:13:38 2020
+++ pkgsrc/textproc/lua-utf8/DESCR Thu Jul 2 17:13:37 2020
@@ -0,0 +1,10 @@
+This module adds UTF-8 support to Lua. It's compatible with Lua's
+own string module, and passes all string and pattern matching tests
+in Lua's test suite.
+
+It also adds some useful routines against UTF-8 features:
+
+- a convenient interface to escape Unicode sequences in strings.
+- string insert/remove, since UTF-8 substring extract may be expensive.
+- calculate Unicode width, useful when implementing e.g. console emulator.
+- a useful interface to translate Unicode offsets and byte offsets.
Index: pkgsrc/textproc/lua-utf8/Makefile
diff -u /dev/null pkgsrc/textproc/lua-utf8/Makefile:1.1
--- /dev/null Thu Jul 2 17:13:38 2020
+++ pkgsrc/textproc/lua-utf8/Makefile Thu Jul 2 17:13:37 2020
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 17:13:37 nia Exp $
+
+DISTNAME= lua-utf8-0.1.2
+PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES= textproc lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=starwing/}
+GITHUB_PROJECT= luautf8
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://github.com/starwing/luautf8
+COMMENT= UTF-8 module for Lua 5.x
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+
+INSTALLATION_DIRS+= ${LUA_CDIR}
+
+pre-build:
+ ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/lua-utf8.so \
+ ${DESTDIR}${PREFIX}/${LUA_CDIR}/lua-utf8.so
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/lua-utf8/PLIST
diff -u /dev/null pkgsrc/textproc/lua-utf8/PLIST:1.1
--- /dev/null Thu Jul 2 17:13:38 2020
+++ pkgsrc/textproc/lua-utf8/PLIST Thu Jul 2 17:13:37 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 17:13:37 nia Exp $
+${LUA_CDIR}/lua-utf8.so
Index: pkgsrc/textproc/lua-utf8/distinfo
diff -u /dev/null pkgsrc/textproc/lua-utf8/distinfo:1.1
--- /dev/null Thu Jul 2 17:13:38 2020
+++ pkgsrc/textproc/lua-utf8/distinfo Thu Jul 2 17:13:37 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 17:13:37 nia Exp $
+
+SHA1 (lua-utf8-0.1.2.tar.gz) = 6f3b411cc6d76237fbf9c2427f2c2343d5b99ef8
+RMD160 (lua-utf8-0.1.2.tar.gz) = dcedeafb89c94481872f2040c3f5e713b197c3ef
+SHA512 (lua-utf8-0.1.2.tar.gz) = 99d0a9958020175e6d3891603cb0ad9903d8013f8950ef211da6fc946be7f8ed9c0f7c46849aa78e9fa77b7c3fba12078227c1a5823c047ae2f17e559202b71e
+Size (lua-utf8-0.1.2.tar.gz) = 41188 bytes
Index: pkgsrc/textproc/lua-utf8/files/Makefile
diff -u /dev/null pkgsrc/textproc/lua-utf8/files/Makefile:1.1
--- /dev/null Thu Jul 2 17:13:38 2020
+++ pkgsrc/textproc/lua-utf8/files/Makefile Thu Jul 2 17:13:37 2020
@@ -0,0 +1,7 @@
+all: lua-utf8.so
+
+lutf8lib.o:
+ $(CC) $(CFLAGS) -fPIC -c lutf8lib.c
+
+lua-utf8.so: lutf8lib.o
+ $(CC) $(LDFLAGS) -shared -o lua-utf8.so lutf8lib.o
Home |
Main Index |
Thread Index |
Old Index