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  9 21:30:17 UTC 2020

Modified Files:
        pkgsrc/textproc: Makefile
Added Files:
        pkgsrc/textproc/lua-lyaml: DESCR Makefile PLIST distinfo
        pkgsrc/textproc/lua-lyaml/files: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1158 -r1.1159 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-lyaml/DESCR \
    pkgsrc/textproc/lua-lyaml/Makefile pkgsrc/textproc/lua-lyaml/PLIST \
    pkgsrc/textproc/lua-lyaml/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-lyaml/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.1158 pkgsrc/textproc/Makefile:1.1159
--- pkgsrc/textproc/Makefile:1.1158     Thu Jul  9 11:14:00 2020
+++ pkgsrc/textproc/Makefile    Thu Jul  9 21:30:16 2020
@@ -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-etlua
 SUBDIR+=       lua-expat
 SUBDIR+=       lua-inifile
 SUBDIR+=       lua-lustache
+SUBDIR+=       lua-lyaml
 SUBDIR+=       lua-markdown
 SUBDIR+=       lua-rapidjson
 SUBDIR+=       lua-slnunicode

Added files:

Index: pkgsrc/textproc/lua-lyaml/DESCR
diff -u /dev/null pkgsrc/textproc/lua-lyaml/DESCR:1.1
--- /dev/null   Thu Jul  9 21:30:17 2020
+++ pkgsrc/textproc/lua-lyaml/DESCR     Thu Jul  9 21:30:17 2020
@@ -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.
Index: pkgsrc/textproc/lua-lyaml/Makefile
diff -u /dev/null pkgsrc/textproc/lua-lyaml/Makefile:1.1
--- /dev/null   Thu Jul  9 21:30:17 2020
+++ pkgsrc/textproc/lua-lyaml/Makefile  Thu Jul  9 21:30:17 2020
@@ -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"
Index: pkgsrc/textproc/lua-lyaml/PLIST
diff -u /dev/null pkgsrc/textproc/lua-lyaml/PLIST:1.1
--- /dev/null   Thu Jul  9 21:30:17 2020
+++ pkgsrc/textproc/lua-lyaml/PLIST     Thu Jul  9 21:30:17 2020
@@ -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
Index: pkgsrc/textproc/lua-lyaml/distinfo
diff -u /dev/null pkgsrc/textproc/lua-lyaml/distinfo:1.1
--- /dev/null   Thu Jul  9 21:30:17 2020
+++ pkgsrc/textproc/lua-lyaml/distinfo  Thu Jul  9 21:30:17 2020
@@ -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

Index: pkgsrc/textproc/lua-lyaml/files/Makefile
diff -u /dev/null pkgsrc/textproc/lua-lyaml/files/Makefile:1.1
--- /dev/null   Thu Jul  9 21:30:17 2020
+++ pkgsrc/textproc/lua-lyaml/files/Makefile    Thu Jul  9 21:30:17 2020
@@ -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