pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/teTeX1-bin remove the use of :tl modifier for PA...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f03b775e92e4
branches:  trunk
changeset: 500558:f03b775e92e4
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Mon Oct 10 14:51:02 2005 +0000

description:
remove the use of :tl modifier for PAPERSIZE, with a trick taken from teTeX3-bin

diffstat:

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

diffs (37 lines):

diff -r 78381370d1d6 -r f03b775e92e4 print/teTeX1-bin/Makefile
--- a/print/teTeX1-bin/Makefile Mon Oct 10 14:29:05 2005 +0000
+++ b/print/teTeX1-bin/Makefile Mon Oct 10 14:51:02 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/09/30 22:01:33 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2005/10/10 14:51:02 tonio Exp $
 
 DISTNAME=      teTeX-src-1.0.7
 PKGNAME=       teTeX-bin-1.0.7
@@ -53,8 +53,12 @@
 CONFLICTS+=            coreutils-[0-9]*
 .endif
 
-.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+.if defined(PAPERSIZE)
+LOWER_PAPERSIZE_cmd=   ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE=       ${LOWER_PAPERSIZE_cmd:sh}
+.  if ${PAPERSIZE} == "A4"
 CONFIGURE_ARGS+=       --enable-a4
+.  endif
 .endif
 
 .if ${OPSYS} != "SunOS"
@@ -79,11 +83,11 @@
 post-install:
        @${RM} ${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