summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-25 19:34:31 +0000
committerkrion <krion@FreeBSD.org>2004-03-25 19:34:31 +0000
commit4dc3bb583133bdd462920c8f634fa4fa043f8c1c (patch)
tree650117ce29347aec7f1bb7a53230d336a2bef1bb
parent8b95a66dcb6ea58ca600cb4384c7d41d754be88f (diff)
downloadFreeBSD-ports-4dc3bb583133bdd462920c8f634fa4fa043f8c1c.zip
FreeBSD-ports-4dc3bb583133bdd462920c8f634fa4fa043f8c1c.tar.gz
- Generate pkg-plist on the fly.
- Some style fixes. PR: ports/64706 Submitted by: maintainer
-rw-r--r--print/latex-biblist/Makefile23
-rw-r--r--print/latex-biblist/pkg-plist9
2 files changed, 18 insertions, 14 deletions
diff --git a/print/latex-biblist/Makefile b/print/latex-biblist/Makefile
index 49d95ab9..14ac7cb 100644
--- a/print/latex-biblist/Makefile
+++ b/print/latex-biblist/Makefile
@@ -16,23 +16,36 @@ EXTRACT_ONLY= #empty
MAINTAINER= hrs@FreeBSD.org
COMMENT= A LaTeX package for printing all of a BibTeX database entries
-BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
-BUILD_DEPENDS+= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX \
+ ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
NO_BUILD= YES
-PLIST_SUB= TEXMFLOCAL=${TEXMFLOCAL} MKTEXLSR=${MKTEXLSR}
-PLIST_SUB+= CLASSDIR=${CLASSDIR}
+PLIST= ${WRKDIR}/pkg-plist
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
TEX_BIN= ${LOCALBASE}/bin/latex
+
CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
+CLASS_FILES= biblist.sty biblist.gde biblist.bst-dist
DOC_FILES= README
-CLASS_FILES= biblist.sty biblist.gde biblist.bst-dist
+pre-install:
+ (for F in ${CLASS_FILES}; do \
+ ${ECHO_CMD} "${CLASSDIR}/$${F}"; \
+ done;\
+ ${ECHO_CMD} "@dirrm ${CLASSDIR}" ) > ${PLIST}
+.if !defined(NOPORTDOCS)
+ (for F in ${DOC_FILES}; do \
+ ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
+ done;\
+ ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
+.endif
+ ${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
+ ${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
diff --git a/print/latex-biblist/pkg-plist b/print/latex-biblist/pkg-plist
deleted file mode 100644
index 3e06765..0000000
--- a/print/latex-biblist/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-@comment $FreeBSD$
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%CLASSDIR%%/biblist.sty
-%%CLASSDIR%%/biblist.gde
-%%CLASSDIR%%/biblist.bst-dist
-@dirrm %%CLASSDIR%%
-@exec %%MKTEXLSR%%
-@unexec %%MKTEXLSR%%
OpenPOWER on IntegriCloud