aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ppower4/pkg-deinstall
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2003-12-08 18:12:20 +0800
committerlinimon <linimon@FreeBSD.org>2003-12-08 18:12:20 +0800
commit28e0ef6c75379c8291841f49f964041e92628d6e (patch)
tree7209de4bbb20e0e89a4092616ef9d6bc21813b57 /textproc/ppower4/pkg-deinstall
parent5c8d2d2328351367abc0b24302dfe4cc6e947592 (diff)
downloadfreebsd-ports-gnome-28e0ef6c75379c8291841f49f964041e92628d6e.tar.gz
freebsd-ports-gnome-28e0ef6c75379c8291841f49f964041e92628d6e.tar.zst
freebsd-ports-gnome-28e0ef6c75379c8291841f49f964041e92628d6e.zip
- Add a pkg-deinstall script for updating LaTeX's content cache after
deinstalling, too. (Suggested by Greg Lewis) - When installing via port, set $PKG_PREFIX to $PREFIX for the pkg-install script to make it look for mktexlsr in there, too. PR: ports/59590 Submitted by: Stefan Walter <sw@gegenunendlich.de> (maintainer)
Diffstat (limited to 'textproc/ppower4/pkg-deinstall')
-rw-r--r--textproc/ppower4/pkg-deinstall13
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/ppower4/pkg-deinstall b/textproc/ppower4/pkg-deinstall
new file mode 100644
index 000000000000..f49ad2595ff4
--- /dev/null
+++ b/textproc/ppower4/pkg-deinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+ echo "Updating content cache to let LaTeX know about the new style files:"
+ if [ -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."
+ fi
+fi