41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2017/09/16 19:53:51 alnsn Exp $
|
|
|
|
DISTNAME= LDoc-1.4.6
|
|
PKGNAME= ${DISTNAME:S/LDoc/${LUA_PKGPREFIX}-LDoc/}
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=stevedonovan/}
|
|
GITHUB_TAG= ${PKGVERSION}
|
|
GITHUB_PROJECT= ${DISTNAME:S/-${PKGVERSION_NOREV}//}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/stevedonovan/LDoc
|
|
COMMENT= Lua Documentation Tool
|
|
LICENSE= mit
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
NO_BUILD= yes
|
|
USE_TOOLS+= pax
|
|
|
|
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${_LUA_DOT_VERSION}
|
|
cd ${WRKSRC} && find ldoc -type f \
|
|
| pax -rw ${DESTDIR}${PREFIX}/${LUA_LDIR}/
|
|
|
|
.include "../../lang/lua/module.mk"
|
|
.include "../../lang/lua/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|