pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/LDoc Switch to pkg_alternatives(8) and rename...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3937acbe8909
branches:  trunk
changeset: 348104:3937acbe8909
user:      alnsn <alnsn%pkgsrc.org@localhost>
date:      Mon Jun 06 23:19:07 2016 +0000

description:
Switch to pkg_alternatives(8) and rename to lua5x-LDoc-1.4.3.

diffstat:

 textproc/LDoc/ALTERNATIVES |   1 +
 textproc/LDoc/Makefile     |  17 ++++++++++-------
 textproc/LDoc/PLIST        |   4 ++--
 3 files changed, 13 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r c8f8680ca157 -r 3937acbe8909 textproc/LDoc/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/LDoc/ALTERNATIVES        Mon Jun 06 23:19:07 2016 +0000
@@ -0,0 +1,1 @@
+bin/ldoc @PREFIX@/bin/ldoc@LUADOTVER@
diff -r c8f8680ca157 -r 3937acbe8909 textproc/LDoc/Makefile
--- a/textproc/LDoc/Makefile    Mon Jun 06 22:49:36 2016 +0000
+++ b/textproc/LDoc/Makefile    Mon Jun 06 23:19:07 2016 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.1.1.1 2016/01/30 11:09:18 alnsn Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/06 23:19:07 alnsn Exp $
 
 DISTNAME=      LDoc-1.4.3
+PKGNAME=       ${DISTNAME:S/LDoc/${LUA_PKGPREFIX}-LDoc/}
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=stevedonovan/}
 GITHUB_TAG=    ${PKGVERSION}
-GITHUB_PROJECT=        ${DISTNAME:S/-${PKGVERSION}//}
+GITHUB_PROJECT=        ${DISTNAME:S/-${PKGVERSION_NOREV}//}
 
 MAINTAINER=    alnsn%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/stevedonovan/LDoc
@@ -16,20 +17,22 @@
 NO_BUILD=      yes
 USE_TOOLS+=    pax
 
-# LDoc works with any version but this package
-# doesn't need to be multiversioned:
-LUA_VERSIONS_ACCEPTED= 53
-
 DEPENDS+=      ${LUA_PKGPREFIX}-penlight-[0-9]*:../../devel/lua-penlight
 DEPENDS+=      ${LUA_PKGPREFIX}-filesystem-[0-9]*:../../devel/lua-filesystem
 
 REPLACE_LUA=   ldoc.lua
 
+# XXX Add subst rules to ../../lang/lua/xxx.mk
+PLIST_SUBST+=          LUADOTVER=${_LUA_DOT_VERSION}
+FILES_SUBST+=          LUADOTVER=${_LUA_DOT_VERSION}
+
 INSTALLATION_DIRS+=    bin ${LUA_LDIR}
 
+WRKSRC=${WRKDIR}/${DISTNAME}
+
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/ldoc.lua \
-           ${DESTDIR}${PREFIX}/bin/ldoc
+           ${DESTDIR}${PREFIX}/bin/ldoc${_LUA_DOT_VERSION}
        cd ${WRKSRC} && find ldoc -type f \
            | pax -rw ${DESTDIR}${PREFIX}/${LUA_LDIR}/
 
diff -r c8f8680ca157 -r 3937acbe8909 textproc/LDoc/PLIST
--- a/textproc/LDoc/PLIST       Mon Jun 06 22:49:36 2016 +0000
+++ b/textproc/LDoc/PLIST       Mon Jun 06 23:19:07 2016 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2016/01/30 11:09:18 alnsn Exp $
-bin/ldoc
+@comment $NetBSD: PLIST,v 1.2 2016/06/06 23:19:07 alnsn Exp $
+bin/ldoc${LUADOTVER}
 ${LUA_LDIR}/ldoc/SciTE.properties
 ${LUA_LDIR}/ldoc/builtin/coroutine.lua
 ${LUA_LDIR}/ldoc/builtin/debug.lua



Home | Main Index | Thread Index | Old Index