pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lua-ldoc: build dependency of awesome4
Module Name: pkgsrc-wip
Committed By: Frédér Fauberteau <triaxx%triaxx.org@localhost>
Pushed By: frederic
Date: Mon Jun 5 21:33:16 2017 +0000
Changeset: dff1632f05b607d07625fe95b8a4fbc02b615e45
Modified Files:
Makefile
Added Files:
lua-ldoc/DESCR
lua-ldoc/Makefile
lua-ldoc/PLIST
lua-ldoc/distinfo
lua-ldoc/patches/patch-makefile
Log Message:
lua-ldoc: build dependency of awesome4
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dff1632f05b607d07625fe95b8a4fbc02b615e45
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
lua-ldoc/DESCR | 9 +++++++++
lua-ldoc/Makefile | 25 +++++++++++++++++++++++++
lua-ldoc/PLIST | 35 +++++++++++++++++++++++++++++++++++
lua-ldoc/distinfo | 7 +++++++
lua-ldoc/patches/patch-makefile | 40 ++++++++++++++++++++++++++++++++++++++++
6 files changed, 117 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 10ed210cb7..17de39f852 100644
--- a/Makefile
+++ b/Makefile
@@ -1849,6 +1849,7 @@ SUBDIR+= ltp-git
SUBDIR+= ltrace
SUBDIR+= lua-MessagePack
SUBDIR+= lua-lbn
+SUBDIR+= lua-ldoc
SUBDIR+= lua-mpack
SUBDIR+= lucene
SUBDIR+= lugaru
diff --git a/lua-ldoc/DESCR b/lua-ldoc/DESCR
new file mode 100644
index 0000000000..5014980136
--- /dev/null
+++ b/lua-ldoc/DESCR
@@ -0,0 +1,9 @@
+LDoc is a software documentation tool which automatically generates API
+documentation out of source code comments (doc comments). It is mainly targeted
+at Lua and documenting Lua APIs, but it can also parse C with according doc
+comments for documenting Lua modules implemented in C.
+
+It is mostly compatible with LuaDoc, except that certain workarounds are no
+longer needed. For instance, it is not so married to the idea that Lua modules
+should be defined using the module function; this is not only a matter of taste
+since this has been deprecated in Lua 5.2.
diff --git a/lua-ldoc/Makefile b/lua-ldoc/Makefile
new file mode 100644
index 0000000000..4e8ba932cd
--- /dev/null
+++ b/lua-ldoc/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= ldoc-1.4.6
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=stevedonovan/}
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://stevedonovan.github.io/ldoc/
+COMMENT= LuaDoc-compatible documentation generation system
+LICENSE= mit
+
+MAKE_FLAGS+= LUA=${LUA_INTERPRETER}
+MAKE_FLAGS+= LUA_BINDIR=${PREFIX}/bin
+MAKE_FLAGS+= LUA_SHAREDIR=${PREFIX}/${LUA_LDIR}
+MAKE_FILE= makefile
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/LDoc-${PKGVERSION_NOREV}
+
+DEPENDS+= ${LUA_PKGPREFIX}-penlight-[0-9]*:../../local/lua-penlight
+
+.include "../../lang/lua/module.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-ldoc/PLIST b/lua-ldoc/PLIST
new file mode 100644
index 0000000000..180e2e95f1
--- /dev/null
+++ b/lua-ldoc/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD$
+bin/ldoc
+${LUA_LDIR}/ldoc.lua
+${LUA_LDIR}/ldoc/SciTE.properties
+${LUA_LDIR}/ldoc/builtin/coroutine.lua
+${LUA_LDIR}/ldoc/builtin/debug.lua
+${LUA_LDIR}/ldoc/builtin/global.lua
+${LUA_LDIR}/ldoc/builtin/globals.lua
+${LUA_LDIR}/ldoc/builtin/io.lua
+${LUA_LDIR}/ldoc/builtin/lfs.lua
+${LUA_LDIR}/ldoc/builtin/lpeg.lua
+${LUA_LDIR}/ldoc/builtin/math.lua
+${LUA_LDIR}/ldoc/builtin/os.lua
+${LUA_LDIR}/ldoc/builtin/package.lua
+${LUA_LDIR}/ldoc/builtin/string.lua
+${LUA_LDIR}/ldoc/builtin/table.lua
+${LUA_LDIR}/ldoc/builtin/utf8.lua
+${LUA_LDIR}/ldoc/config.ld
+${LUA_LDIR}/ldoc/doc.lua
+${LUA_LDIR}/ldoc/html.lua
+${LUA_LDIR}/ldoc/html/_code_css.lua
+${LUA_LDIR}/ldoc/html/_reset_css.lua
+${LUA_LDIR}/ldoc/html/ldoc_css.lua
+${LUA_LDIR}/ldoc/html/ldoc_fixed_css.lua
+${LUA_LDIR}/ldoc/html/ldoc_ltp.lua
+${LUA_LDIR}/ldoc/html/ldoc_md_ltp.lua
+${LUA_LDIR}/ldoc/html/ldoc_one_css.lua
+${LUA_LDIR}/ldoc/html/ldoc_pale_css.lua
+${LUA_LDIR}/ldoc/lang.lua
+${LUA_LDIR}/ldoc/lexer.lua
+${LUA_LDIR}/ldoc/markdown.lua
+${LUA_LDIR}/ldoc/markup.lua
+${LUA_LDIR}/ldoc/parse.lua
+${LUA_LDIR}/ldoc/prettify.lua
+${LUA_LDIR}/ldoc/tools.lua
diff --git a/lua-ldoc/distinfo b/lua-ldoc/distinfo
new file mode 100644
index 0000000000..77901f28d4
--- /dev/null
+++ b/lua-ldoc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (ldoc-1.4.6.tar.gz) = 587ea175311110144df0d9c2175a72e462378e04
+RMD160 (ldoc-1.4.6.tar.gz) = b1d1fa7967af7f5c9c598c0a4898940e4275b03e
+SHA512 (ldoc-1.4.6.tar.gz) = bcaddba4e462a4fb0aa0d8fcff390de3f195fa5cc569d8f05b84ad0fff900f5ac945be7a2eb15cf5ca60cc462f02c874579e4a19e33776178a04104ef9d944af
+Size (ldoc-1.4.6.tar.gz) = 126080 bytes
+SHA1 (patch-makefile) = 39f47724ee68a9be14fbff3977447f117eb4ae22
diff --git a/lua-ldoc/patches/patch-makefile b/lua-ldoc/patches/patch-makefile
new file mode 100644
index 0000000000..6a0d797361
--- /dev/null
+++ b/lua-ldoc/patches/patch-makefile
@@ -0,0 +1,40 @@
+$NetBSD$
+
+Don't use mkdir and cp directly, use BSD_INSTALL_* abstraction instead
+
+--- makefile.orig 2016-11-07 14:20:55.000000000 +0000
++++ makefile
+@@ -6,17 +6,26 @@ LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/5.1
+ ldoc:
+
+ install: install_parts
+- echo "lua $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
+- chmod +x $(DESTDIR)$(LUA_BINDIR)/ldoc
++ $(BSD_INSTALL_SCRIPT_DIR) $(DESTDIR)$(LUA_BINDIR)
++ echo "$(LUA) $(LUA_SHAREDIR)/ldoc.lua \$$*" > ldoc.sh
++ $(BSD_INSTALL_SCRIPT) ldoc.sh $(DESTDIR)$(LUA_BINDIR)/ldoc
+
+ install_luajit: install_parts
+- echo "luajit $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
+- chmod +x $(DESTDIR)$(LUA_BINDIR)/ldoc
++ $(BSD_INSTALL_SCRIPT_DIR) $(DESTDIR)$(LUA_BINDIR)
++ echo "luajit $(LUA_SHAREDIR)/ldoc.lua \$$*" > ldoc.sh
++ $(BSD_INSTALL_SCRIPT) ldoc.sh $(DESTDIR)$(LUA_BINDIR)/ldoc
+
+ install_parts:
+- mkdir -p $(DESTDIR)$(LUA_SHAREDIR)
+- cp ldoc.lua $(DESTDIR)$(LUA_SHAREDIR)
+- cp -r ldoc $(DESTDIR)$(LUA_SHAREDIR)
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)
++ $(BSD_INSTALL_DATA) ldoc.lua $(DESTDIR)$(LUA_SHAREDIR)
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)/ldoc
++ $(BSD_INSTALL_DATA) ldoc/SciTE.properties $(DESTDIR)$(LUA_SHAREDIR)/ldoc
++ $(BSD_INSTALL_DATA) ldoc/config.ld $(DESTDIR)$(LUA_SHAREDIR)/ldoc
++ $(BSD_INSTALL_DATA) ldoc/*.lua $(DESTDIR)$(LUA_SHAREDIR)/ldoc
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)/ldoc/builtin
++ $(BSD_INSTALL_DATA) ldoc/builtin/* $(DESTDIR)$(LUA_SHAREDIR)/ldoc/builtin
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)/ldoc/html
++ $(BSD_INSTALL_DATA) ldoc/html/* $(DESTDIR)$(LUA_SHAREDIR)/ldoc/html
+
+ uninstall:
+ -rm $(DESTDIR)$(LUA_SHAREDIR)/ldoc.lua
Home |
Main Index |
Thread Index |
Old Index