summaryrefslogtreecommitdiffstats
path: root/print/dvipsk-tetex/files
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2004-12-21 19:40:35 +0000
committerhrs <hrs@FreeBSD.org>2004-12-21 19:40:35 +0000
commit582e97d392f5b85b31c5442ab0a93ade536da9cb (patch)
tree6d854092cb6e430e41e6f3b8d4af1f01dd28b8f8 /print/dvipsk-tetex/files
parentf3b9fe9fe38c36e305062bbb76845baa0d85df7d (diff)
downloadFreeBSD-ports-582e97d392f5b85b31c5442ab0a93ade536da9cb.zip
FreeBSD-ports-582e97d392f5b85b31c5442ab0a93ade536da9cb.tar.gz
- Remove tetex-modesw dependency.
- Bump PORTREVISION.
Diffstat (limited to 'print/dvipsk-tetex/files')
-rw-r--r--print/dvipsk-tetex/files/pkg-install.in32
1 files changed, 23 insertions, 9 deletions
diff --git a/print/dvipsk-tetex/files/pkg-install.in b/print/dvipsk-tetex/files/pkg-install.in
index be92a3c..fcfb27f 100644
--- a/print/dvipsk-tetex/files/pkg-install.in
+++ b/print/dvipsk-tetex/files/pkg-install.in
@@ -1,20 +1,34 @@
#!/bin/sh
# $FreeBSD$
-GREP=/usr/bin/grep
-SED=/usr/bin/sed
-MODE=default
-
+PAPERSIZE=%%PAPERSIZE%%
+DVIPSDIR=%%DVIPSDIR%%
+DVIPSVARDIR=%%DVIPSVARDIR%%
MKTEXLSR=%%MKTEXLSR%%
-TETEX_MODESW=%%TETEX_MODESW%%
+TEXCONFIG=%%TEXCONFIG%%
+PATH=${PATH}:%%LOCALBASE%%/bin
case $2 in
POST-INSTALL)
- ${TETEX_MODESW} ${MODE} dvips force
- ${MKTEXLSR}
+ if [ -f ${DVIPSVARDIR}/config.ps ]; then
+ echo "======"
+ echo "NOTICE: you have to merge "\
+ "${DVIPSVARDIR}/config.ps from ${DVIPSDIR}/config.ps."
+ echo "======"
+ fi
+ case ${PAPERSIZE} in
+ letter)
+ ${TEXCONFIG} dvips paper letter
+ ;;
+ *)
+ ${TEXCONFIG} dvips paper a4
;;
+ esac
+ ${MKTEXLSR}
+;;
DEINSTALL)
- ${TETEX_MODESW} uninstall dvips
+ rm -f ${DVIPSVARDIR}/config.ps
+ cp -v ${DVIPSDIR}/config.ps.tetex ${DVIPSDIR}/config.ps
${MKTEXLSR}
- ;;
+;;
esac
OpenPOWER on IntegriCloud