aboutsummaryrefslogtreecommitdiff
path: root/textproc/ppower4
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-11-20 15:36:07 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-11-20 15:36:07 +0000
commit36791ca4fa04aaec36e5175b25bc7ddc86112b47 (patch)
tree115334b8cd99a433051fcd0a998837c7eb261947 /textproc/ppower4
parentc007f73f8815c1f23043ef793169be3c2b5a018f (diff)
downloadports-36791ca4fa04aaec36e5175b25bc7ddc86112b47.tar.gz
ports-36791ca4fa04aaec36e5175b25bc7ddc86112b47.zip
. More complete search path for mktexlsr.
PR: 59482 Submitted by: Stefan Walter <sw@gegenunendlich.de>
Notes
Notes: svn path=/head/; revision=94482
Diffstat (limited to 'textproc/ppower4')
-rw-r--r--textproc/ppower4/pkg-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/textproc/ppower4/pkg-install b/textproc/ppower4/pkg-install
index a97a81c62211..09c6d60ec27d 100644
--- a/textproc/ppower4/pkg-install
+++ b/textproc/ppower4/pkg-install
@@ -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"