1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Add staging support

- Convert to new options framework
This commit is contained in:
Pawel Pekala 2014-07-06 16:10:50 +00:00
parent 38b269a29d
commit c962d2a962
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360934

View File

@ -26,7 +26,8 @@ CLASS_FILES= ifluatex.dtx ifluatex.sty
DOC_FILES= ifluatex.pdf
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
@ -35,14 +36,10 @@ do-build:
cd ${WRKSRC} && ${TEX_BIN} ifluatex.dtx
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
post-install:
@${MKTEXLSR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} \
${STAGEDIR}${PREFIX}/${CLASSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>