From 00245668417cef1a73f720135856d33e65909efc Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Thu, 25 Mar 2004 19:38:28 +0000 Subject: - Generate pkg-plist on the fly. - Some style fixes. PR: ports/64707 Submitted by: maintainer --- print/latex-bibtopic/Makefile | 26 ++++++++++++++++++-------- print/latex-bibtopic/pkg-plist | 9 --------- 2 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 print/latex-bibtopic/pkg-plist (limited to 'print') 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%% -- cgit v1.2.3