Support staging.
Sponsored by: Absolight
This commit is contained in:
parent
b3ca7e5ae0
commit
4f02141413
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341285
1 changed files with 8 additions and 19 deletions
|
@ -23,12 +23,13 @@ FOIL_DIR= share/texmf/tex/latex/${PORTNAME}
|
||||||
FOIL_FILES= foil17.clo foil20.clo foil25.clo foil30.clo foils.cls \
|
FOIL_FILES= foil17.clo foil20.clo foil25.clo foil30.clo foils.cls \
|
||||||
foils.sty foilshrt.clo fltfonts.def
|
foils.sty foilshrt.clo fltfonts.def
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
|
|
||||||
PORTDOCS= foiltex.dtx foiltex.dvi
|
PORTDOCS= foiltex.dtx foiltex.dvi
|
||||||
PORTEXAMPLES= sampfoil.tex
|
PORTEXAMPLES= sampfoil.tex
|
||||||
PLIST_FILES= ${FOIL_FILES:S,^,${FOIL_DIR}/,}
|
PLIST_FILES= ${FOIL_FILES:S,^,${FOIL_DIR}/,}
|
||||||
PLIST_DIRS= ${FOIL_DIR}
|
PLIST_DIRS= ${FOIL_DIR}
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
do-extract:
|
do-extract:
|
||||||
${MKDIR} ${WRKDIR}
|
${MKDIR} ${WRKDIR}
|
||||||
${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins
|
${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins
|
||||||
|
@ -41,29 +42,17 @@ do-build:
|
||||||
${LATEX_CMD} foiltex.dtx
|
${LATEX_CMD} foiltex.dtx
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
# install data files
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${FOIL_DIR}
|
||||||
@${MKDIR} ${PREFIX}/${FOIL_DIR}
|
|
||||||
.for file in ${FOIL_FILES}
|
.for file in ${FOIL_FILES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${FOIL_DIR}
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${FOIL_DIR}
|
||||||
.endfor
|
.endfor
|
||||||
# install docs and example file?
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
# install docs...
|
|
||||||
@${MKDIR} ${DOCSDIR}
|
|
||||||
.for file in ${PORTDOCS}
|
.for file in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.if !defined(NOPORTEXAMPLES)
|
|
||||||
# ...and examples
|
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
|
||||||
.for file in ${PORTEXAMPLES}
|
.for file in ${PORTEXAMPLES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
${SETENV} LOCALBASE=${LOCALBASE} PKG_PREFIX=${PREFIX} \
|
|
||||||
${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Reference in a new issue