aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-06-16 04:16:13 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-06-16 04:16:13 +0000
commitfd9359bef01f7ba932438a1b1fc28b6a320f411e (patch)
treefd4354114e250d4d0e97c23d79a8616a4920c3b9 /print
parentb1822a015fe94e63b9a96894212e0bd46e40cfd5 (diff)
Notes
Diffstat (limited to 'print')
-rw-r--r--print/latex-prettyref/Makefile12
-rw-r--r--print/latex-prettyref/pkg-plist1
2 files changed, 9 insertions, 4 deletions
diff --git a/print/latex-prettyref/Makefile b/print/latex-prettyref/Makefile
index dbf9113b175f..fa91b221f78b 100644
--- a/print/latex-prettyref/Makefile
+++ b/print/latex-prettyref/Makefile
@@ -7,6 +7,7 @@
PORTNAME= latex-prettyref
PORTVERSION= 3.0
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib
@@ -20,23 +21,26 @@ BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base
USE_ZIP= yes
+PLIST_SUB= MKTEXLSR=${MKTEXLSR}
-TEXMFDIR= share/texmf
-STYDIR= tex/latex/${PORTNAME:S/^latex-//}
-DOCSDIR= doc/latex/${PORTNAME:S/^latex-//}
+TEXMFDIR?= share/texmf
+STYDIR?= tex/latex/${PORTNAME:S/^latex-//}
+DOCSDIR?= doc/latex/${PORTNAME:S/^latex-//}
INSFILE= ${PORTNAME:S/^latex-//}.ins
STYFILE= ${PORTNAME:S/^latex-//}.sty
PDFFILE= ${PORTNAME:S/^latex-//}.pdf
-MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
+MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
do-build:
@( cd ${WRKSRC} && tex ${INSFILE} )
do-install:
@( cd ${WRKSRC} && \
+ ${MKDIR} ${PREFIX}/${TEXMFDIR}/${STYDIR} && \
${COPYTREE_SHARE} "${STYFILE}" ${PREFIX}/${TEXMFDIR}/${STYDIR} )
.if !defined(NOPORTDOCS)
@( cd ${WRKSRC} && \
+ ${MKDIR} ${PREFIX}/${TEXMFDIR}/${DOCSDIR} && \
${COPYTREE_SHARE} "${PDFFILE}" ${PREFIX}/${TEXMFDIR}/${DOCSDIR} )
.endif
diff --git a/print/latex-prettyref/pkg-plist b/print/latex-prettyref/pkg-plist
index ce9a33dac475..7465e20f88a2 100644
--- a/print/latex-prettyref/pkg-plist
+++ b/print/latex-prettyref/pkg-plist
@@ -2,3 +2,4 @@
share/texmf/tex/latex/prettyref/prettyref.sty
%%PORTDOCS%%@dirrm share/texmf/doc/latex/prettyref
@dirrm share/texmf/tex/latex/prettyref
+@unexec %%MKTEXLSR%%