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-utf8
details: https://anonhg.NetBSD.org/pkgsrc/rev/d92260b593c8
branches: trunk
changeset: 435234:d92260b593c8
user: nia <nia%pkgsrc.org@localhost>
date: Thu Jul 02 17:13:37 2020 +0000
description:
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.
diffstat:
textproc/Makefile | 3 ++-
textproc/lua-utf8/DESCR | 10 ++++++++++
textproc/lua-utf8/Makefile | 26 ++++++++++++++++++++++++++
textproc/lua-utf8/PLIST | 2 ++
textproc/lua-utf8/distinfo | 6 ++++++
textproc/lua-utf8/files/Makefile | 7 +++++++
6 files changed, 53 insertions(+), 1 deletions(-)
diffs (88 lines):
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/Makefile
--- a/textproc/Makefile Thu Jul 02 14:54:30 2020 +0000
+++ b/textproc/Makefile Thu Jul 02 17:13:37 2020 +0000
@@ -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-lustache
SUBDIR+= lua-markdown
SUBDIR+= lua-slnunicode
+SUBDIR+= lua-utf8
SUBDIR+= lua-xapian
SUBDIR+= lucene++
SUBDIR+= makeindexk
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/lua-utf8/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-utf8/DESCR Thu Jul 02 17:13:37 2020 +0000
@@ -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.
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/lua-utf8/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-utf8/Makefile Thu Jul 02 17:13:37 2020 +0000
@@ -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"
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/lua-utf8/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-utf8/PLIST Thu Jul 02 17:13:37 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 17:13:37 nia Exp $
+${LUA_CDIR}/lua-utf8.so
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/lua-utf8/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-utf8/distinfo Thu Jul 02 17:13:37 2020 +0000
@@ -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
diff -r 8f5b064a2ee1 -r d92260b593c8 textproc/lua-utf8/files/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-utf8/files/Makefile Thu Jul 02 17:13:37 2020 +0000
@@ -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