diff options
author | rafan <rafan@FreeBSD.org> | 2008-06-07 00:19:37 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2008-06-07 00:19:37 +0800 |
commit | 96695570b25ef4f6ba56669b9bb3e9ffdf50ed7d (patch) | |
tree | 5fd4a69a30bb2a4551bfdc936c909c26e794bcfb /print | |
parent | 71212d676d9e763716474b9c4374419f879f0dbe (diff) | |
download | freebsd-ports-gnome-96695570b25ef4f6ba56669b9bb3e9ffdf50ed7d.tar.gz freebsd-ports-gnome-96695570b25ef4f6ba56669b9bb3e9ffdf50ed7d.tar.zst freebsd-ports-gnome-96695570b25ef4f6ba56669b9bb3e9ffdf50ed7d.zip |
- Add pkg-install, pkg-deinstall to SUB_FILES. No content changes.
(prepare for latex-cjk 4.8.0 update)
Diffstat (limited to 'print')
-rw-r--r-- | print/latex-cjk/Makefile | 2 | ||||
-rw-r--r-- | print/latex-cjk/files/pkg-deinstall.in | 28 | ||||
-rw-r--r-- | print/latex-cjk/files/pkg-install.in (renamed from print/latex-cjk/pkg-install) | 0 |
3 files changed, 29 insertions, 1 deletions
diff --git a/print/latex-cjk/Makefile b/print/latex-cjk/Makefile index a2874478bb97..dafd902b81c6 100644 --- a/print/latex-cjk/Makefile +++ b/print/latex-cjk/Makefile @@ -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 diff --git a/print/latex-cjk/files/pkg-deinstall.in b/print/latex-cjk/files/pkg-deinstall.in new file mode 100644 index 000000000000..5608d7573f2d --- /dev/null +++ b/print/latex-cjk/files/pkg-deinstall.in @@ -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 diff --git a/print/latex-cjk/pkg-install b/print/latex-cjk/files/pkg-install.in index b55b3aae8b4e..b55b3aae8b4e 100644 --- a/print/latex-cjk/pkg-install +++ b/print/latex-cjk/files/pkg-install.in |