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-lyaml
details: https://anonhg.NetBSD.org/pkgsrc/rev/87d038e78135
branches: trunk
changeset: 435590:87d038e78135
user: nia <nia%pkgsrc.org@localhost>
date: Thu Jul 09 21:30:16 2020 +0000
description:
textproc: Add lua-lyaml
LibYAML binding for Lua, with a fast C implementation for converting between
%YAML 1.1 and Lua tables, and a low-level YAML event parser for implementing
more intricate YAML document loading.
diffstat:
textproc/Makefile | 3 ++-
textproc/lua-lyaml/DESCR | 3 +++
textproc/lua-lyaml/Makefile | 36 ++++++++++++++++++++++++++++++++++++
textproc/lua-lyaml/PLIST | 7 +++++++
textproc/lua-lyaml/distinfo | 6 ++++++
textproc/lua-lyaml/files/Makefile | 15 +++++++++++++++
6 files changed, 69 insertions(+), 1 deletions(-)
diffs (104 lines):
diff -r c6643f0faa29 -r 87d038e78135 textproc/Makefile
--- a/textproc/Makefile Thu Jul 09 20:57:11 2020 +0000
+++ b/textproc/Makefile Thu Jul 09 21:30:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1158 2020/07/09 11:14:00 nia Exp $
+# $NetBSD: Makefile,v 1.1159 2020/07/09 21:30:16 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -465,6 +465,7 @@
SUBDIR+= lua-expat
SUBDIR+= lua-inifile
SUBDIR+= lua-lustache
+SUBDIR+= lua-lyaml
SUBDIR+= lua-markdown
SUBDIR+= lua-rapidjson
SUBDIR+= lua-slnunicode
diff -r c6643f0faa29 -r 87d038e78135 textproc/lua-lyaml/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lyaml/DESCR Thu Jul 09 21:30:16 2020 +0000
@@ -0,0 +1,3 @@
+LibYAML binding for Lua, with a fast C implementation for converting between
+%YAML 1.1 and Lua tables, and a low-level YAML event parser for implementing
+more intricate YAML document loading.
diff -r c6643f0faa29 -r 87d038e78135 textproc/lua-lyaml/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lyaml/Makefile Thu Jul 09 21:30:16 2020 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 21:30:17 nia Exp $
+
+DISTNAME= lyaml-6.2.5
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=gvvaughan/}
+GITHUB_PROJECT= lyaml
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://gvvaughan.github.io/lyaml/
+COMMENT= LibYAML binding for Lua
+LICENSE= mit
+
+BUILD_DIRS= ext/yaml
+
+MAKE_FLAGS+= PKGVERSION=${PKGVERSION}
+
+INSTALLATION_DIRS+= ${LUA_DOCDIR}
+INSTALLATION_DIRS+= ${LUA_CDIR}
+INSTALLATION_DIRS+= ${LUA_LDIR}/lyaml
+
+pre-build:
+ ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/ext/yaml/Makefile
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/ext/yaml/yaml.so \
+ ${DESTDIR}${PREFIX}/${LUA_CDIR}/yaml.so
+ ${INSTALL_DATA} ${WRKSRC}/lib/lyaml/*.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/lyaml
+ ${INSTALL_DATA} ${WRKSRC}/README.md \
+ ${DESTDIR}${PREFIX}/${LUA_DOCDIR}/README.md
+
+.include "../../lang/lua/module.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c6643f0faa29 -r 87d038e78135 textproc/lua-lyaml/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lyaml/PLIST Thu Jul 09 21:30:16 2020 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 21:30:17 nia Exp $
+${LUA_CDIR}/yaml.so
+${LUA_DOCDIR}/README.md
+${LUA_LDIR}/lyaml/explicit.lua
+${LUA_LDIR}/lyaml/functional.lua
+${LUA_LDIR}/lyaml/implicit.lua
+${LUA_LDIR}/lyaml/init.lua
diff -r c6643f0faa29 -r 87d038e78135 textproc/lua-lyaml/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lyaml/distinfo Thu Jul 09 21:30:16 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 21:30:17 nia Exp $
+
+SHA1 (lyaml-6.2.5.tar.gz) = 864a84dbaa9d4333b37629ee71216def4ba0565d
+RMD160 (lyaml-6.2.5.tar.gz) = f4e2ac6ed335224057ab9a05ae42556c27909632
+SHA512 (lyaml-6.2.5.tar.gz) = f26c078e0d9d70724b1d7a8ccf6d84bf309f0e83e14052a980dbe07f918391b2b2c6907e746b27cb5cef946cbfbf4bac1389b30102119f6efe336da7a2fc501f
+Size (lyaml-6.2.5.tar.gz) = 48782 bytes
diff -r c6643f0faa29 -r 87d038e78135 textproc/lua-lyaml/files/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lyaml/files/Makefile Thu Jul 09 21:30:16 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 21:30:17 nia Exp $
+
+CFLAGS+= -fPIC -Wall
+CFLAGS+= -DVERSION=\"$(PKGVERSION)\"
+LDFLAGS+= -shared -lyaml
+
+OBJS+= emitter.o parser.o scanner.o yaml.o
+
+all: yaml.so
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+yaml.so: $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS)
Home |
Main Index |
Thread Index |
Old Index