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-cmark
details: https://anonhg.NetBSD.org/pkgsrc/rev/15c3473c3434
branches: trunk
changeset: 435225:15c3473c3434
user: nia <nia%pkgsrc.org@localhost>
date: Thu Jul 02 14:10:04 2020 +0000
description:
textproc: Add lua-cmark
Lua wrapper for libcmark, the CommonMark parsing and rendering library
diffstat:
textproc/Makefile | 3 ++-
textproc/lua-cmark/DESCR | 1 +
textproc/lua-cmark/Makefile | 29 +++++++++++++++++++++++++++++
textproc/lua-cmark/PLIST | 3 +++
textproc/lua-cmark/distinfo | 7 +++++++
textproc/lua-cmark/patches/patch-Makefile | 24 ++++++++++++++++++++++++
6 files changed, 66 insertions(+), 1 deletions(-)
diffs (101 lines):
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/Makefile
--- a/textproc/Makefile Thu Jul 02 14:05:53 2020 +0000
+++ b/textproc/Makefile Thu Jul 02 14:10:04 2020 +0000
@@ -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+= lowdown
SUBDIR+= lq-sp
SUBDIR+= lua-cjson
+SUBDIR+= lua-cmark
SUBDIR+= lua-expat
SUBDIR+= lua-lustache
SUBDIR+= lua-markdown
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/lua-cmark/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-cmark/DESCR Thu Jul 02 14:10:04 2020 +0000
@@ -0,0 +1,1 @@
+Lua wrapper for libcmark, the CommonMark parsing and rendering library
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/lua-cmark/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-cmark/Makefile Thu Jul 02 14:10:04 2020 +0000
@@ -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"
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/lua-cmark/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-cmark/PLIST Thu Jul 02 14:10:04 2020 +0000
@@ -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
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/lua-cmark/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-cmark/distinfo Thu Jul 02 14:10:04 2020 +0000
@@ -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
diff -r 22ee0cab6104 -r 15c3473c3434 textproc/lua-cmark/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-cmark/patches/patch-Makefile Thu Jul 02 14:10:04 2020 +0000
@@ -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