summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>2003-04-17 06:18:25 +0000
committermax <max@FreeBSD.org>2003-04-17 06:18:25 +0000
commitd3346b2cb7bad81473dd81de5bfe3c3369e466a5 (patch)
tree63684bb3b66827bda6512eae9674011523cc6c95 /japanese
parent97488c0c525b7c7f6632ace9ff7159e61c14e623 (diff)
downloadFreeBSD-ports-d3346b2cb7bad81473dd81de5bfe3c3369e466a5.zip
FreeBSD-ports-d3346b2cb7bad81473dd81de5bfe3c3369e466a5.tar.gz
Reflect the change in the ja-ptex-base's handling of texmf.cnf.
Add missing entry to the plist.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ptex/Makefile5
-rw-r--r--japanese/ptex/pkg-deinstall14
-rw-r--r--japanese/ptex/pkg-install14
-rw-r--r--japanese/ptex/pkg-plist4
4 files changed, 8 insertions, 29 deletions
diff --git a/japanese/ptex/Makefile b/japanese/ptex/Makefile
index b9e316f..06203c5 100644
--- a/japanese/ptex/Makefile
+++ b/japanese/ptex/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ptex
PORTVERSION= 3.1.2
+PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/
PKGNAMEPREFIX= ja-
@@ -48,7 +49,9 @@ post-extract:
@${MV} ${WRKDIR}/${SRCDIR} ${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/tetex-src-${TETEX_VERSION}/texk/web2c
pre-install:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ @if [ -L ${PREFIX}/share/texmf/web2c/texmf.cnf ]; then \
+ ${RM} ${PREFIX}/share/texmf/web2c/texmf.cnf; \
+ fi
post-install:
.for bin in ${BINARIES}
diff --git a/japanese/ptex/pkg-deinstall b/japanese/ptex/pkg-deinstall
deleted file mode 100644
index c432da2..0000000
--- a/japanese/ptex/pkg-deinstall
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# Preserve files installed by ptex-common, or other package/application.
-#
-files="${PKG_PREFIX}/bin/pltotf ${PKG_PREFIX}/bin/tftopl ${PKG_PREFIX}/share/texmf/web2c/texmf.cnf ${PKG_PREFIX}/share/texmf/ls-R"
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit;
-fi
-
-for f in ${files}; do
- if [ -f $f.old ]; then
- mv $f.old $f
- fi
-done
diff --git a/japanese/ptex/pkg-install b/japanese/ptex/pkg-install
deleted file mode 100644
index 3c64b80..0000000
--- a/japanese/ptex/pkg-install
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# Preserve files installed by ptex-common, or other package/application.
-#
-files="${PKG_PREFIX}/bin/pltotf ${PKG_PREFIX}/bin/tftopl ${PKG_PREFIX}/share/texmf/web2c/texmf.cnf ${PKG_PREFIX}/share/texmf/ls-R"
-
-if [ "$2" != "PRE-INSTALL" ]; then
- exit;
-fi
-
-for f in ${files}; do
- if [ -f $f ]; then
- mv $f $f.old
- fi
- done
diff --git a/japanese/ptex/pkg-plist b/japanese/ptex/pkg-plist
index bef11b9..d470b9b 100644
--- a/japanese/ptex/pkg-plist
+++ b/japanese/ptex/pkg-plist
@@ -4,6 +4,7 @@ bin/pdvitype
bin/platex
bin/pltotf
bin/ptex
+bin/tftopl
bin/virptex
share/texmf/web2c/platex-euc.fmt
share/texmf/web2c/platex-jis.fmt
@@ -16,3 +17,6 @@ share/texmf/web2c/ptex.fmt
share/texmf/web2c/ptex.pool
share/texmf/web2c/texmf.cnf
@exec %D/bin/mktexlsr %D/share/texmf
+@unexec %D/bin/mktexlsr %D/share/texmf
+@exec if [ -L %D/share/texmf/web2c/texmf.cnf ]; then /bin/rm %D/share/texmf/web2c/texmf.cnf ; fi
+@unexec if [ ! -e %D/share/texmf/web2c/texmf.cnf -a -f %D/share/texmf/web2c/texmf.cnf-teTeX-dist ]; then /bin/ln -fs %D/share/texmf/web2c/texmf.cnf-teTeX-dist %D/share/texmf/web2c/texmf.cnf ; fi
OpenPOWER on IntegriCloud