Date: Sat, 22 Nov 2003 17:31:17 +0100 (CET) From: Stefan Walter <sw@gegenunendlich.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Greg Lewis <glewis@FreeBSD.org> Subject: ports/59589: textproc/foiltex: add pkg-deinstall script Message-ID: <20031122163117.E199E3A41@kyuzo.dunkelkammer.void> Resent-Message-ID: <200311221640.hAMGeBRL077258@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 59589 >Category: ports >Synopsis: textproc/foiltex: add pkg-deinstall script >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: Sat Nov 22 08:40:10 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@kyuzo.dunkelkammer.void:/usr/src/sys/i386/compile/KYUZO i386 >Description: - 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. >How-To-Repeat: (Un)Install the port. >Fix: --- foiltex-mktexlsr.patch begins here --- diff -urN foiltex.old/Makefile foiltex/Makefile --- foiltex.old/Makefile Mon Nov 10 20:54:12 2003 +++ foiltex/Makefile Sat Nov 22 17:00:25 2003 @@ -57,7 +57,7 @@ @${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR} 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 <bsd.port.mk> diff -urN foiltex.old/pkg-deinstall foiltex/pkg-deinstall --- foiltex.old/pkg-deinstall Thu Jan 1 01:00:00 1970 +++ foiltex/pkg-deinstall Sat Nov 22 17:09:47 2003 @@ -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 --- foiltex-mktexlsr.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031122163117.E199E3A41>