From 28e0ef6c75379c8291841f49f964041e92628d6e Mon Sep 17 00:00:00 2001 From: linimon Date: Mon, 8 Dec 2003 10:12:20 +0000 Subject: - 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 (maintainer) --- textproc/ppower4/Makefile | 4 ++-- textproc/ppower4/pkg-deinstall | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 textproc/ppower4/pkg-deinstall (limited to 'textproc') diff --git a/textproc/ppower4/Makefile b/textproc/ppower4/Makefile index c50c82c0b9e..49948e8d2af 100644 --- a/textproc/ppower4/Makefile +++ b/textproc/ppower4/Makefile @@ -60,7 +60,7 @@ do-install: @${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4 post-install: - ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \ - ${PKGNAME} POST-INSTALL + ${SETENV} LOCALBASE=${LOCALBASE} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL .include diff --git a/textproc/ppower4/pkg-deinstall b/textproc/ppower4/pkg-deinstall new file mode 100644 index 00000000000..f49ad2595ff --- /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 -- cgit