Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2003 10:38:25 -0600 (CST)
From:      Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48488: teTeX is by default for A4 paper
Message-ID:  <200302201638.h1KGcPEH073175@cauchy.math.missouri.edu>

next in thread | raw e-mail | index | archive | help

>Number:         48488
>Category:       ports
>Synopsis:       teTeX is by default for A4 paper
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 20 09:10:23 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD cauchy 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Feb 2 11:27:50 CST 2003 stephen@cauchy:/usr/obj/usr/src/sys/cauchy i386


	
>Description:

The programs dvips, dvipdfm and xdvi that are installed with teTeX are designed
to work with A4 paper.  But many people use letter paper.  It is easy to
configure teTeX to use letter paper, but then all the checksums are messed
up for make deinstall.

Obviously this is by no means a major problem.  But the fix below is easy and
unobtrusive.

>How-To-Repeat:
>Fix:

This small change to the print/teTeX port will enable users to type
make USE_LETTER_PAPER=yes install
if they want to have teTeX configured for letter paper.

diff -ur teTeX-old/Makefile teTeX/Makefile
--- teTeX-old/Makefile	Thu Feb 20 10:29:42 2003
+++ teTeX/Makefile	Thu Feb 20 10:31:04 2003
@@ -73,6 +73,14 @@
 LIBWWW_PREFIX?=	${LOCALBASE}
 TEXMF_TREE=	${PREFIX}/share/texmf
 
+pre-everything::
+.if !defined(USE_LETTER_PAPER)
+	@${ECHO_MSG} "********************************************************"
+	@${ECHO_MSG} "Define USE_LETTER_PAPER if you want teTeX configured"
+	@${ECHO_MSG} "for letter paper instead of the default A4."
+	@${ECHO_MSG} "********************************************************"
+.endif
+
 pre-configure:
 	@${ECHO_MSG}
 	@${ECHO_MSG} "It will be ok if configure will complain about a missing texmf tree!"
@@ -92,6 +100,14 @@
 		${PREFIX}/bin/texconfig font ro > /dev/null 2>&1
 	@${SETENV} TEXMFMAIN=${TEXMF_TREE} \
 		${PREFIX}/bin/texconfig font options appendonlydir varfonts
+.if defined(USE_LETTER_PAPER)
+	@${SETENV} TEXMFMAIN=${TEXMF_TREE} \
+		${PREFIX}/bin/texconfig dvips paper letter
+	@${SETENV} TEXMFMAIN=${TEXMF_TREE} \
+		${PREFIX}/bin/texconfig dvipdfm paper letter
+	@${SETENV} TEXMFMAIN=${TEXMF_TREE} \
+		${PREFIX}/bin/texconfig xdvi us
+.endif
 	@${ECHO_MSG}
 	@${ECHO_MSG} "You may want to run texconfig to configure teTeX for your"
 	@${ECHO_MSG} "local environment. You will find teTeX's local documentation"

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302201638.h1KGcPEH073175>