pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/lua-doc



Module Name:    pkgsrc
Committed By:   triaxx
Date:           Mon Aug 14 21:11:09 UTC 2017

Added Files:
        pkgsrc/devel/lua-doc: DESCR Makefile PLIST distinfo
        pkgsrc/devel/lua-doc/patches: patch-makefile

Log Message:
Add devel/lua-doc package version 1.4.6

Reviewed by maya@

Needed by wm/awesome for API doc generation.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-doc/DESCR \
    pkgsrc/devel/lua-doc/Makefile pkgsrc/devel/lua-doc/PLIST \
    pkgsrc/devel/lua-doc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-doc/patches/patch-makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/lua-doc/DESCR
diff -u /dev/null pkgsrc/devel/lua-doc/DESCR:1.1
--- /dev/null   Mon Aug 14 21:11:09 2017
+++ pkgsrc/devel/lua-doc/DESCR  Mon Aug 14 21:11:09 2017
@@ -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.
Index: pkgsrc/devel/lua-doc/Makefile
diff -u /dev/null pkgsrc/devel/lua-doc/Makefile:1.1
--- /dev/null   Mon Aug 14 21:11:09 2017
+++ pkgsrc/devel/lua-doc/Makefile       Mon Aug 14 21:11:09 2017
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2017/08/14 21:11:09 triaxx Exp $
+
+DISTNAME=      ldoc-1.4.6
+PKGNAME=       ${DISTNAME:S/l/${LUA_PKGPREFIX}-/}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=stevedonovan/}
+GITHUB_PROJECT=        ldoc
+
+MAINTAINER=    triaxx%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]*:../../devel/lua-penlight
+
+.include "../../lang/lua/module.mk"
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/lua-doc/PLIST
diff -u /dev/null pkgsrc/devel/lua-doc/PLIST:1.1
--- /dev/null   Mon Aug 14 21:11:09 2017
+++ pkgsrc/devel/lua-doc/PLIST  Mon Aug 14 21:11:09 2017
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/14 21:11:09 triaxx Exp $
+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
Index: pkgsrc/devel/lua-doc/distinfo
diff -u /dev/null pkgsrc/devel/lua-doc/distinfo:1.1
--- /dev/null   Mon Aug 14 21:11:09 2017
+++ pkgsrc/devel/lua-doc/distinfo       Mon Aug 14 21:11:09 2017
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/08/14 21:11:09 triaxx Exp $
+
+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

Index: pkgsrc/devel/lua-doc/patches/patch-makefile
diff -u /dev/null pkgsrc/devel/lua-doc/patches/patch-makefile:1.1
--- /dev/null   Mon Aug 14 21:11:09 2017
+++ pkgsrc/devel/lua-doc/patches/patch-makefile Mon Aug 14 21:11:09 2017
@@ -0,0 +1,40 @@
+$NetBSD: patch-makefile,v 1.1 2017/08/14 21:11:09 triaxx Exp $
+
+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