1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- 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/59589
Submitted by:	Stefan Walter <sw@gegenunendlich.de> (maintainer)
This commit is contained in:
Mark Linimon 2003-12-08 10:03:42 +00:00
parent b217fc5e4e
commit 4375b96f29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95338
2 changed files with 15 additions and 2 deletions

View File

@ -57,7 +57,7 @@ do-install:
@${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>

View File

@ -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