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 14:10:05 UTC 2020
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/lua-cmark: DESCR Makefile PLIST distinfo
pkgsrc/textproc/lua-cmark/patches: patch-Makefile
Log Message:
textproc: Add lua-cmark
Lua wrapper for libcmark, the CommonMark parsing and rendering library
To generate a diff of this commit:
cvs rdiff -u -r1.1151 -r1.1152 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-cmark/DESCR \
pkgsrc/textproc/lua-cmark/Makefile pkgsrc/textproc/lua-cmark/PLIST \
pkgsrc/textproc/lua-cmark/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-cmark/patches/patch-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.1151 pkgsrc/textproc/Makefile:1.1152
--- pkgsrc/textproc/Makefile:1.1151 Thu Jul 2 13:14:59 2020
+++ pkgsrc/textproc/Makefile Thu Jul 2 14:10:04 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1151 2020/07/02 13:14:59 nia Exp $
+# $NetBSD: Makefile,v 1.1152 2020/07/02 14:10:04 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -459,6 +459,7 @@ SUBDIR+= lout
SUBDIR+= lowdown
SUBDIR+= lq-sp
SUBDIR+= lua-cjson
+SUBDIR+= lua-cmark
SUBDIR+= lua-expat
SUBDIR+= lua-lustache
SUBDIR+= lua-markdown
Added files:
Index: pkgsrc/textproc/lua-cmark/DESCR
diff -u /dev/null pkgsrc/textproc/lua-cmark/DESCR:1.1
--- /dev/null Thu Jul 2 14:10:05 2020
+++ pkgsrc/textproc/lua-cmark/DESCR Thu Jul 2 14:10:04 2020
@@ -0,0 +1 @@
+Lua wrapper for libcmark, the CommonMark parsing and rendering library
Index: pkgsrc/textproc/lua-cmark/Makefile
diff -u /dev/null pkgsrc/textproc/lua-cmark/Makefile:1.1
--- /dev/null Thu Jul 2 14:10:05 2020
+++ pkgsrc/textproc/lua-cmark/Makefile Thu Jul 2 14:10:04 2020
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 14:10:04 nia Exp $
+
+DISTNAME= lua-cmark-0.29.0
+PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES= textproc lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/}
+GITHUB_PROJECT= cmark-lua
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://github.com/jgm/cmark-lua
+COMMENT= Lua wrapper for libcmark, the CommonMark parsing and rendering library
+LICENSE= 2-clause-bsd
+
+WRKSRC= ${WRKDIR}/cmark-lua-${PKGVERSION_NOREV}
+
+USE_TOOLS+= gmake
+
+BUILD_TARGET= cmark.so
+
+INSTALLATION_DIRS+= ${LUA_CDIR}
+INSTALLATION_DIRS+= ${LUA_LDIR}/cmark
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/cmark.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cmark/builder.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/cmark/builder.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/lua-cmark/PLIST
diff -u /dev/null pkgsrc/textproc/lua-cmark/PLIST:1.1
--- /dev/null Thu Jul 2 14:10:05 2020
+++ pkgsrc/textproc/lua-cmark/PLIST Thu Jul 2 14:10:04 2020
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 14:10:04 nia Exp $
+${LUA_CDIR}/cmark.so
+${LUA_LDIR}/cmark/builder.lua
Index: pkgsrc/textproc/lua-cmark/distinfo
diff -u /dev/null pkgsrc/textproc/lua-cmark/distinfo:1.1
--- /dev/null Thu Jul 2 14:10:05 2020
+++ pkgsrc/textproc/lua-cmark/distinfo Thu Jul 2 14:10:04 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 14:10:04 nia Exp $
+
+SHA1 (lua-cmark-0.29.0.tar.gz) = 0aad960a5682a0d78cb1dc7c15462071a6be8db0
+RMD160 (lua-cmark-0.29.0.tar.gz) = 711e271e740c230b78641518d7025dca16a07539
+SHA512 (lua-cmark-0.29.0.tar.gz) = b773162da024277a55672015b3497ee751daca9c5fe514a5270d43e3e2d9fba31ed36d15fefe80f7367a5829dc303d7828309ec34cef0bfb334e29a191137f05
+Size (lua-cmark-0.29.0.tar.gz) = 208150 bytes
+SHA1 (patch-Makefile) = 90ecd6f58a5c01cccc4dc8dba53086683c7b2e8e
Index: pkgsrc/textproc/lua-cmark/patches/patch-Makefile
diff -u /dev/null pkgsrc/textproc/lua-cmark/patches/patch-Makefile:1.1
--- /dev/null Thu Jul 2 14:10:05 2020
+++ pkgsrc/textproc/lua-cmark/patches/patch-Makefile Thu Jul 2 14:10:05 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/02 14:10:05 nia Exp $
+
+Honour CFLAGS/LDFLAGS.
+
+--- Makefile.orig 2019-04-08 17:52:43.000000000 +0000
++++ Makefile
+@@ -2,7 +2,7 @@ CBITS = ext
+ VERSION=$(shell grep CMARK_VERSION_STRING $(CBITS)/cmark_version.h | awk '{print $$3}')
+ REVISION=1
+ ROCKSPEC=cmark-$(VERSION)-$(REVISION).rockspec
+-CFLAGS = -fPIC -O3 -I$(CBITS) -I.
++CFLAGS += -fPIC -I$(CBITS) -I.
+ SWIG ?= swig
+ CMARK_DIR ?= ../cmark
+ OBJS = $(subst .c,.o,$(wildcard $(CBITS)/*.c))
+@@ -23,7 +23,7 @@ $(ROCKSPEC): rockspec.in
+ sed -e "s/_VERSION/$(VERSION)/g; s/_REVISION/$(REVISION)/g" $< > $@
+
+ cmark.so: cmark_wrap.o $(OBJS)
+- $(CC) -shared -o $@ -I$(CBITS) -llua $^
++ $(CC) $(LDFLAGS) -shared -o $@ -I$(CBITS) -llua $^
+
+ cmark-lua.a: cmark_wrap.o $(OBJS)
+ ar rcs $@ $^ $(LUASTATIC)
Home |
Main Index |
Thread Index |
Old Index