ports/59481: textproc/foiltex: look for mktexlsr in PKG_PREFIX, too

Stefan Walter sw at gegenunendlich.de
Wed Nov 19 17:40:24 UTC 2003


>Number:         59481
>Category:       ports
>Synopsis:       textproc/foiltex: look for mktexlsr in PKG_PREFIX, too
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 19 09:40:16 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Walter
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
Infinity Approximation Task Force
>Environment:
System: FreeBSD kyuzo.dunkelkammer.void 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #0: Wed Sep 24 11:41:19 CEST 2003 root at kyuzo.dunkelkammer.void:/usr/src/sys/i386/compile/KYUZO i386
>Description:
Improvement as suggested by Greg Lewis:

The attached patch makes the foiltex port/package look for mktexlsr in
LOCALBASE, PKG_PREFIX and /usr/local. That should find it in most cases.
>How-To-Repeat:
Exactly.
>Fix:
--- foiltex-mktexlsr.patch begins here ---
diff -urN foiltex.old/pkg-install foiltex/pkg-install
--- foiltex.old/pkg-install	Wed Nov 19 18:05:09 2003
+++ foiltex/pkg-install	Wed Nov 19 18:05:23 2003
@@ -1,11 +1,13 @@
 #!/bin/sh
 
-[ -z "${LOCALBASE}" ] && LOCALBASE=/usr/local
-
 if [ "$2" = "POST-INSTALL" ]; then
 	echo "Updating content cache to let LaTeX know about the new style files:"
 	if [ -x ${LOCALBASE}/bin/mktexlsr ]; then
 		${LOCALBASE}/bin/mktexlsr
+	elif [ -x ${PKG_PREFIX}/bin/mktexlsr ]; then
+		${PKG_PREFIX}/bin/mktexlsr
+	elif [ -x /usr/local/bin/mktexlsr ]; then
+		/usr/local/bin/mktexlsr
 	else
 		echo "Could not find mktexlsr. Please run it manually to update"
 		echo "LaTeX's content cache, or you won't be able to use the"
--- foiltex-mktexlsr.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list