diff options
author | krion <krion@FreeBSD.org> | 2004-03-26 03:42:00 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-03-26 03:42:00 +0800 |
commit | 27f64293c9c9825c785566349ce7d29a7d08b930 (patch) | |
tree | 8f9b60f281d40f8786b49830e83def8afc8c0e11 /print/latex-bibunits | |
parent | a870d5a0a95795e41a3d1ac4a77fe6c7fcbcef2f (diff) | |
download | freebsd-ports-gnome-27f64293c9c9825c785566349ce7d29a7d08b930.tar.gz freebsd-ports-gnome-27f64293c9c9825c785566349ce7d29a7d08b930.tar.zst freebsd-ports-gnome-27f64293c9c9825c785566349ce7d29a7d08b930.zip |
- Generate pkg-plist on the fly.
- Some style fixes.
PR: ports/64709
Submitted by: maintainer
Diffstat (limited to 'print/latex-bibunits')
-rw-r--r-- | print/latex-bibunits/Makefile | 26 | ||||
-rw-r--r-- | print/latex-bibunits/pkg-plist | 9 |
2 files changed, 18 insertions, 17 deletions
diff --git a/print/latex-bibunits/Makefile b/print/latex-bibunits/Makefile index 050c55d834e8..8652ed5dceb2 100644 --- a/print/latex-bibunits/Makefile +++ b/print/latex-bibunits/Makefile @@ -17,31 +17,41 @@ EXTRACT_ONLY= #empty MAINTAINER= hrs@FreeBSD.org COMMENT= A LaTeX package allows separate bibliographies -BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX -BUILD_DEPENDS+= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal -BUILD_DEPENDS+= tex:${PORTSDIR}/print/teTeX +BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX \ + ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \ + tex:${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/tex + CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//} +CLASS_FILES= bibunits.sty bibunits.ins bibunits.dtx DOC_FILES= 00Readme -CLASS_FILES= bibunits.sty -CLASS_FILES+= bibunits.ins bibunits.dtx - do-extract: ${MKDIR} ${WRKSRC} cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC} do-build: cd ${WRKSRC} && ${TEX_BIN} bibunits.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-bibunits/pkg-plist b/print/latex-bibunits/pkg-plist deleted file mode 100644 index 59a305f4bb17..000000000000 --- a/print/latex-bibunits/pkg-plist +++ /dev/null @@ -1,9 +0,0 @@ -@comment $FreeBSD$ -%%PORTDOCS%%%%DOCSDIR%%/00Readme -%%PORTDOCS%%@dirrm %%DOCSDIR%% -%%CLASSDIR%%/bibunits.dtx -%%CLASSDIR%%/bibunits.ins -%%CLASSDIR%%/bibunits.sty -@dirrm %%CLASSDIR%% -@exec %%MKTEXLSR%% -@unexec %%MKTEXLSR%% |