aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-26 03:38:28 +0800
committerkrion <krion@FreeBSD.org>2004-03-26 03:38:28 +0800
commita870d5a0a95795e41a3d1ac4a77fe6c7fcbcef2f (patch)
tree7b173d7d5c1a88dde6622969956c6dba82ff1a75 /print
parent4dc3bb583133bdd462920c8f634fa4fa043f8c1c (diff)
downloadfreebsd-ports-gnome-a870d5a0a95795e41a3d1ac4a77fe6c7fcbcef2f.tar.gz
freebsd-ports-gnome-a870d5a0a95795e41a3d1ac4a77fe6c7fcbcef2f.tar.zst
freebsd-ports-gnome-a870d5a0a95795e41a3d1ac4a77fe6c7fcbcef2f.zip
- Generate pkg-plist on the fly.
- Some style fixes. PR: ports/64707 Submitted by: maintainer
Diffstat (limited to 'print')
-rw-r--r--print/latex-bibtopic/Makefile26
-rw-r--r--print/latex-bibtopic/pkg-plist9
2 files changed, 18 insertions, 17 deletions
diff --git a/print/latex-bibtopic/Makefile b/print/latex-bibtopic/Makefile
index d5fbec61aa2a..abbdc89e4c71 100644
--- a/print/latex-bibtopic/Makefile
+++ b/print/latex-bibtopic/Makefile
@@ -16,31 +16,41 @@ EXTRACT_ONLY= #empty
MAINTAINER= hrs@FreeBSD.org
COMMENT= A LaTeX package allows several bibliographies in a document
-BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
-BUILD_DEPENDS+= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
-BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX \
+ ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
+ latex:${PORTSDIR}/print/teTeX
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
-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= bibtopic.sty bibtopic.ins bibtopic.dtx
DOC_FILES= README
-CLASS_FILES= bibtopic.sty
-CLASS_FILES+= bibtopic.ins bibtopic.dtx
-
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${TEX_BIN} bibtopic.ins
+ (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-bibtopic/pkg-plist b/print/latex-bibtopic/pkg-plist
deleted file mode 100644
index 634686b56e32..000000000000
--- a/print/latex-bibtopic/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-@comment $FreeBSD$
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%CLASSDIR%%/bibtopic.dtx
-%%CLASSDIR%%/bibtopic.ins
-%%CLASSDIR%%/bibtopic.sty
-@dirrm %%CLASSDIR%%
-@exec %%MKTEXLSR%%
-@unexec %%MKTEXLSR%%