Commit 13a9b8ac authored by brix's avatar brix
Browse files

- Use PORT_OPTIONS:MDOCS

- Add license
- Add staging support
parent 616cbe35
......@@ -3,7 +3,7 @@
PORTNAME= svninfo
PORTVERSION= 0.7.4
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= http://www.brucker.ch/projects/svninfo/download/ \
${MASTER_SITE_LOCAL}
......@@ -13,6 +13,8 @@ PKGNAMEPREFIX= latex-
MAINTAINER= brix@FreeBSD.org
COMMENT= A LaTeX package for Subversion support
LICENSE= LPPL10
USE_TEX= latex
PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR}
......@@ -25,21 +27,20 @@ CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME}
CLASS_FILES= svninfo.sty svninfo.cfg
PORTDOCS= README svninfo.dvi
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-build:
cd ${WRKSRC} && ${TEX_BIN} svninfo.ins
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC} && ${TEX_BIN} svninfo.dtx
.endif
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
${MKDIR} ${STAGEDIR}/${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}/${PREFIX}/${CLASSDIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}/${DOCSDIR}
.endif
post-install:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment