aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-07-02 21:19:35 +0800
committerbapt <bapt@FreeBSD.org>2014-07-02 21:19:35 +0800
commit6709cc89f8554d9b2004bbdf81e1a9fd9e5b1b32 (patch)
tree5e22695d0b2eae6b491cad0c763b8f16b7876669
parentf0fdd2b2b22f4a7c97800fdaf792d71e3d185598 (diff)
downloadfreebsd-ports-gnome-6709cc89f8554d9b2004bbdf81e1a9fd9e5b1b32.tar.gz
freebsd-ports-gnome-6709cc89f8554d9b2004bbdf81e1a9fd9e5b1b32.tar.zst
freebsd-ports-gnome-6709cc89f8554d9b2004bbdf81e1a9fd9e5b1b32.zip
Simplify plist handling
-rw-r--r--print/latex-arydshln/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/print/latex-arydshln/Makefile b/print/latex-arydshln/Makefile
index 899f3a3e569c..e7e24e87759a 100644
--- a/print/latex-arydshln/Makefile
+++ b/print/latex-arydshln/Makefile
@@ -17,7 +17,6 @@ COMMENT= LaTeX package that draws dash-lines in array/tabular
OPTIONS_DEFINE= DOCS
USE_TEX= latex
-PLIST= ${WRKDIR}/pkg-plist
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
@@ -28,7 +27,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
CLASS_FILES= arydshln.dtx arydshln.ins arydshln.sty arydshln-man.tex
-DOC_FILES= README arydshln-man.pdf
+PORTDOCS= README arydshln-man.pdf
+PLIST_FILES= ${CLASS_FILES:S@^@${CLASSDIR}/@} \
+ "@exec ${MKTEXLSR}" \
+ "@unexec ${MKTEXLSR}"
+PLIST_DIRS= ${CLASSDIR}
do-extract:
${MKDIR} ${WRKSRC}
@@ -36,21 +39,11 @@ do-extract:
do-build:
cd ${WRKSRC} && ${YES_CMD} | ${TEX_BIN} arydshln.ins
- (for F in ${CLASS_FILES}; do \
- ${ECHO_CMD} "${CLASSDIR}/$${F}"; \
- done;\
- ${ECHO_CMD} "@dirrm ${CLASSDIR}" ) > ${PLIST}
- (for F in ${DOC_FILES}; do \
- ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
- done;\
- ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
- ${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
- ${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>