openbsd-ports/devel/luadoc/Makefile
2010-11-15 19:45:56 +00:00

55 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2010/11/15 19:46:00 espie Exp $
COMMENT= documentation generation tool for Lua
DISTNAME= luadoc-3.0.1
REVISION= 0
CATEGORIES= devel
HOMEPAGE= http://luadoc.luaforge.net/
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES= lang/lua
RUN_DEPENDS= devel/luafs
MASTER_SITES= http://luaforge.net/frs/download.php/3185/
NO_BUILD= Yes
NO_REGRESS= Yes
LUADOC_DIR = ${MODLUA_DATADIR}/luadoc
DOCLET_DIR = ${LUADOC_DIR}/doclet
HTML_DIR = ${DOCLET_DIR}/html
TAGLET_DIR = ${LUADOC_DIR}/taglet
STANDARD_DIR = ${TAGLET_DIR}/standard
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/luadoc.lua.in ${PREFIX}/bin/luadoc
${INSTALL_DATA_DIR} ${LUADOC_DIR}
${INSTALL_DATA_DIR} ${DOCLET_DIR}
${INSTALL_DATA_DIR} ${HTML_DIR}
${INSTALL_DATA_DIR} ${TAGLET_DIR}
${INSTALL_DATA_DIR} ${STANDARD_DIR}
${INSTALL_DATA} ${WRKSRC}/src/luadoc/*.lua ${LUADOC_DIR}/
${INSTALL_DATA} ${WRKSRC}/src/luadoc/doclet/*.lua \
${DOCLET_DIR}/
${INSTALL_DATA} ${WRKSRC}/src/luadoc/doclet/html/*.{css,lp} \
${HTML_DIR}/
${INSTALL_DATA} ${WRKSRC}/src/luadoc/taglet/standard.lua \
${TAGLET_DIR}/
${INSTALL_DATA} ${WRKSRC}/src/luadoc/taglet/standard/tags.lua \
${STANDARD_DIR}/
${INSTALL_DATA} ${WRKSRC}/doc/us/examples/lfs/lfs.luadoc \
${LUADOC_DIR}/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luadoc/
${INSTALL_DATA} ${WRKSRC}/doc/us/*.{html,png,vsd} \
${PREFIX}/share/doc/luadoc/
.include <bsd.port.mk>