freebsd-ports/print/ec-fonts-mftraced/pkg-install
Mario Sergio Fujikawa Ferreira bab0e1df29 New port ec-fonts-mftraced version 1.0.12: EC PostScript Type1 fonts
with TFMs for TeX required for latest versions of GNU LilyPond
(print/lilypond)
2005-04-19 10:46:43 +00:00

34 lines
483 B
Bash

#!/bin/sh
# $FreeBSD$
[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2
PATH="${PATH}:/usr/bin:/usr/local/bin:${PKG_PREFIX}/bin"
MKTEXLSR=mktexlsr
SETENV=env
UPDMAP=updmap
case "$ACTION" in
POST-INSTALL)
${SETENV} PATH="${PATH}" ${MKTEXLSR}
${SETENV} PATH="${PATH}" ${UPDMAP} --enable Map ec-mftrace.map
;;
DEINSTALL)
${SETENV} PATH="${PATH}" ${MKTEXLSR}
${SETENV} PATH="${PATH}" ${UPDMAP} --disable ec-mftrace.map
;;
PRE-INSTALL|POST-DEINSTALL)
;;
*)
exit 1
;;
esac
exit