1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/print/latex-cjk/pkg-deinstall
Sam Lawrance cac88fdd44 - unbreak
- depend on print/freetype-tools, instead of installing itself
- use %%DOCSDIR%% and %%EXAMPLEDIR%%
- rename files/patch-texinput::Bg5::c00bsmi.fd to make portlint happy
- remove files/UBig5.sfd.diff (included in print/freetype-tools)
- fix installation looping problem (ln -s -> ln -fs)

Submitter takes maintainership!  The crowd goes wild!

PR:		ports/84415
Submitted by:	Rong-En Fan <rafan@infor.org>
2005-08-01 15:18:40 +00:00

35 lines
948 B
Bash

#!/bin/sh
# Run just once.
if [ "x$2" != "xDEINSTALL" ]; then
exit 0
fi
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
TEXMFCNF=${TEXMFMAIN}/web2c/texmf.cnf
SPECIALMAP=${TEXMFMAIN}-dist/fonts/map/fontname/special.map
# Edit web2c/texmf.cnf
sed -e "/ttf2pk/d" ${TEXMFCNF} > ${TEXMFCNF}.tmp
sed -e "/ttf2tfm/d" ${TEXMFCNF}.tmp > ${TEXMFCNF}
rm -f ${TEXMFCNF}.tmp
# Edit fontname/special.map
sed -e "/Arphic/d" ${SPECIALMAP} > ${SPECIALMAP}.tmp
sed -e "/^arb5/d" ${SPECIALMAP}.tmp > ${SPECIALMAP}
sed -e "/^argb/d" ${SPECIALMAP} > ${SPECIALMAP}.tmp
mv -f ${SPECIALMAP}.tmp ${SPECIALMAP}
# Delete symbolic links
rm -f ${TEXMFMAIN}/fonts/truetype/arphic/arb5_kai.ttf
rm -f ${TEXMFMAIN}/fonts/truetype/arphic/arb5_sung.ttf
rm -f ${TEXMFMAIN}/fonts/truetype/arphic/argb_kai.ttf
rm -f ${TEXMFMAIN}/fonts/truetype/arphic/argb_sung.ttf
#
# Update ls-R. We have to run twice to get correct result.
# Strange bug of texconfig.
#
texconfig rehash
texconfig rehash