pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/teTeX-bin Don't use :tl to lowercasify the paper...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0aef0b1133be
branches:  trunk
changeset: 471090:0aef0b1133be
user:      danw <danw%pkgsrc.org@localhost>
date:      Wed Mar 17 16:46:02 2004 +0000

description:
Don't use :tl to lowercasify the paper size, so this will work on older
NetBSD and non-NetBSD platforms

diffstat:

 print/teTeX-bin/Makefile |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 696fcd5fed02 -r 0aef0b1133be print/teTeX-bin/Makefile
--- a/print/teTeX-bin/Makefile  Wed Mar 17 16:36:28 2004 +0000
+++ b/print/teTeX-bin/Makefile  Wed Mar 17 16:46:02 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2004/02/14 18:16:03 snj Exp $
+# $NetBSD: Makefile,v 1.54 2004/03/17 16:46:02 danw Exp $
 
 DISTNAME=      tetex-src-${TETEX_BIN_VERS}
 PKGNAME=       teTeX-bin-${TETEX_BIN_VERS}
@@ -28,14 +28,18 @@
 CONFLICTS+=    coreutils-[0-9]*
 .endif
 
+.if defined(PAPERSIZE)
+LOWER_PAPERSIZE!=      ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+.endif
+
 post-install:
-       @${RM} ${PREFIX}/share/texmf/web2c/*.log
+       @${RM} -f ${PREFIX}/share/texmf/web2c/*.log
 .if defined(PAPERSIZE)
-       ${LOCALBASE}/bin/texconfig dvips paper ${PAPERSIZE:tl}
+       ${LOCALBASE}/bin/texconfig dvips paper ${LOWER_PAPERSIZE}
 .  if ${PAPERSIZE} == "Letter"
        ${LOCALBASE}/bin/texconfig xdvi us
 .  else
-       ${LOCALBASE}/bin/texconfig xdvi ${PAPERSIZE:tl}
+       ${LOCALBASE}/bin/texconfig xdvi ${LOWER_PAPERSIZE}
 .  endif
 .endif
        ${LOCALBASE}/bin/texconfig font ro



Home | Main Index | Thread Index | Old Index