summaryrefslogtreecommitdiff
path: root/print/teTeX-bin
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-04-11 15:13:42 +0000
committerjschauma <jschauma@pkgsrc.org>2003-04-11 15:13:42 +0000
commit5d9572c76ae80f8068b0fb41992851cc2055482b (patch)
treef6affff0ccf04056deda09c0d415df63f3715412 /print/teTeX-bin
parent4c3363d8db795453efa37c01d15dfe53b4e7faf9 (diff)
downloadpkgsrc-5d9572c76ae80f8068b0fb41992851cc2055482b.tar.gz
Fix post-install to set the appropriate papersize.
Bump PKGREVISION since now setting PAPERSIZE to 'Letter' actually will yield letter-sized default output.
Diffstat (limited to 'print/teTeX-bin')
-rw-r--r--print/teTeX-bin/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/print/teTeX-bin/Makefile b/print/teTeX-bin/Makefile
index 1227a43c124..f188d770a01 100644
--- a/print/teTeX-bin/Makefile
+++ b/print/teTeX-bin/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2003/04/07 17:39:19 tron Exp $
+# $NetBSD: Makefile,v 1.41 2003/04/11 15:13:42 jschauma Exp $
DISTNAME= teTeX-src-1.0.7
PKGNAME= teTeX-bin-1.0.7
-PKGREVISION= 2
+PKGREVISION= 3
WRKSRC= ${WRKDIR}/teTeX-1.0
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/1.0/distrib/sources/}
@@ -68,9 +68,14 @@ OWN_DIRS_PERMS+= ${TEXFONTSDIR}/tfm ${ROOT_USER} ${ROOT_GROUP} 1777
post-install:
@${RM} ${PREFIX}/share/texmf/web2c/*.log
- ### someone needs to adjust papersize to this:
- #${LOCALBASE}/bin/texconfig dvips paper a4
- #${LOCALBASE}/bin/texconfig xdvi a4
+.if defined(PAPERSIZE)
+ ${LOCALBASE}/bin/texconfig dvips paper ${PAPERSIZE:tl}
+. if ${PAPERSIZE} == "Letter"
+ ${LOCALBASE}/bin/texconfig xdvi us
+. else
+ ${LOCALBASE}/bin/texconfig xdvi ${PAPERSIZE:tl}
+. endif
+.endif
${LOCALBASE}/bin/texconfig font ro
${LOCALBASE}/bin/texconfig font vardir /var/spool/texfonts
${LOCALBASE}/bin/texconfig font options appendonlydir varfonts