1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

- Add pkg-install, pkg-deinstall to SUB_FILES. No content changes.

(prepare for latex-cjk 4.8.0 update)
This commit is contained in:
Rong-En Fan 2008-06-06 16:19:37 +00:00
parent 9055c1c3bd
commit 050517b6d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214439
3 changed files with 29 additions and 1 deletions

View File

@ -30,7 +30,7 @@ USE_FREETYPE= yes
MAN1= bg5conv.1 cef5conv.1 cefconv.1 cefsconv.1 extconv.1 \
hbf2gf.1 sjisconv.1
SUB_FILES= pkg-message
SUB_FILES= pkg-deinstall pkg-install pkg-message
SUB_LIST= TEXMFMAIN=${LOCALBASE}/share/texmf
INSTALL_DIR= ${INSTALL} -d -m 0755 -o root -g wheel

View File

@ -0,0 +1,28 @@
#!/bin/sh
LOCALBASE=/usr/local
PATH=/bin:/usr/bin:${LOCALBASE}/bin; export PATH
if [ "x$2" = "xDEINSTALL" ]; then
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
TEXMFCNF=${TEXMFMAIN}/web2c/texmf.cnf
CJKTTFDIR=${TEXMFMAIN}/fonts/truetype/CJK
CJKTFMDIR=${TEXMFMAIN}/fonts/tfm/CJK
# Delete symbolic links of TrueType font files
cd ${CJKTTFDIR} && rm -f arb5kai.ttf arb5sung.ttf argbkai.ttf argbsung.ttf
find ${CJKTFMDIR} -type l -and -name \*.tfm| xargs -n 10 rm -f
exit 0
fi
if [ "x$2" = "xPOST-DEINSTALL" ]; then
mktexlsr
updmap-sys --disable CJK-type1.map
# Contents in pdftex.map from CJK-pdftex.map are eliminated by updmap
exit 0
fi