summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-04-11 21:35:48 +0000
committerjschauma <jschauma@pkgsrc.org>2003-04-11 21:35:48 +0000
commitb92d803466ab603d2fa05415bd882d7e8ce8ce46 (patch)
treee9c6e4f97e30cb99751a54437abe7466ccb8136a /print
parentc7a2b3543160ef2254b851d7022c8dec0730ac2e (diff)
downloadpkgsrc-b92d803466ab603d2fa05415bd882d7e8ce8ce46.tar.gz
Same as teTeX-bin:
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')
-rw-r--r--print/teTeX2-bin/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/print/teTeX2-bin/Makefile b/print/teTeX2-bin/Makefile
index 2347fe11a30..ec5a3ec9e6b 100644
--- a/print/teTeX2-bin/Makefile
+++ b/print/teTeX2-bin/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2003/04/07 18:30:24 jdc Exp $
+# $NetBSD: Makefile,v 1.4 2003/04/11 21:35:48 jschauma Exp $
DISTNAME= tetex-src-${TETEX_BIN_VERS}
PKGNAME= teTeX2-bin-${TETEX_BIN_VERS}
-PKGREVISION= # empty
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/2.0/distrib/}
@@ -20,9 +20,14 @@ INFO_FILES= latex.info dvips.info web2c.info kpathsea.info
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