diff options
author | hrs <hrs@FreeBSD.org> | 2005-02-11 01:25:36 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2005-02-11 01:25:36 +0800 |
commit | 97e9b9cc4a6b75933161bb6f487f90b765905402 (patch) | |
tree | a8df816cbd714ebbafd18835a42b519d67939fd8 /print | |
parent | 2bda31b55f1c923bf445441552b7e6a337bf9517 (diff) | |
download | freebsd-ports-gnome-97e9b9cc4a6b75933161bb6f487f90b765905402.tar.gz freebsd-ports-gnome-97e9b9cc4a6b75933161bb6f487f90b765905402.tar.zst freebsd-ports-gnome-97e9b9cc4a6b75933161bb6f487f90b765905402.zip |
- Generate .fmt and .map files during package install.
- Remove old configuration files in the texmf-var directory
which prevent the fmtutil utility from working.
- Bump PORTREVISION.
Diffstat (limited to 'print')
-rw-r--r-- | print/teTeX-base/Makefile | 24 | ||||
-rw-r--r-- | print/teTeX-base/pkg-plist | 28 |
2 files changed, 36 insertions, 16 deletions
diff --git a/print/teTeX-base/Makefile b/print/teTeX-base/Makefile index 8e0592d9306c..9dee497846d9 100644 --- a/print/teTeX-base/Makefile +++ b/print/teTeX-base/Makefile @@ -7,7 +7,7 @@ PORTNAME= teTeX-base PORTVERSION= 3.0 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_TEX_CTAN} \ ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:1 @@ -126,18 +126,36 @@ TEXMFDISTDIR= share/texmf-dist TEXMFLOCALDIR= share/texmf-local TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCALDIR}/ls-R TEXMFVARDIR= share/texmf-var -MKTEXLSR= ${LOCALBASE}/bin/mktexlsr +MKTEXLSR= ${PREFIX}/bin/mktexlsr +FMTUTIL_SYS= "${SETENV} PATH=${PATH}:${PREFIX}/bin TEXMFMAIN=${PREFIX}/${TEXMFDIR} ${PREFIX}/bin/fmtutil-sys" +UPDMAP_SYS= "${SETENV} PATH=${PATH}:${PREFIX}/bin TEXMFMAIN=${PREFIX}/${TEXMFDIR} ${PREFIX}/bin/updmap-sys" PLIST_SUB+= TEXMFDIR=${TEXMFDIR} \ TEXMFDISTDIR=${TEXMFDISTDIR} \ - TEXMFVARDIR=${TEXMFVARDIR} + TEXMFVARDIR=${TEXMFVARDIR} \ + FMTUTIL_SYS=${FMTUTIL_SYS} \ + UPDMAP_SYS=${UPDMAP_SYS} PKGMESSAGE_SUB= TEXMFDIR=${TEXMFDIR} \ TEXMFDISTDIR=${TEXMFDISTDIR} \ PREFIX=${PREFIX} +OLDCONFIG= web2c/texmf.cnf web2c/mktex.cnf web2c/fmtutil.cnf \ + web2c/updmap.cfg \ + xdvi/XDvi \ + dvipdfm/config/config \ + dvips/config/config.ps \ + etex/plain/config/language.def \ + tex/generic/config/language.dat \ + tex/context/config/cont-usr.tex \ + pdftex/config/pdftex.cfg pre-install: ${SED} ${PKGMESSAGE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} +.for F in ${OLDCONFIG} + if [ -f ${PREFIX}/${TEXMFVARDIR}/${F} ]; then \ + ${ECHO_CMD} "NOTICE: old config file ${F} has been removed.";\ + fi +.endfor post-install: ${INSTALL_SCRIPT} ${WRKSRC}/utils/texinfo/util/texi2dvi ${PREFIX}/bin diff --git a/print/teTeX-base/pkg-plist b/print/teTeX-base/pkg-plist index bde3e760c040..d52956da040f 100644 --- a/print/teTeX-base/pkg-plist +++ b/print/teTeX-base/pkg-plist @@ -202,18 +202,21 @@ lib/libkpathsea.a %%TEXMFDIR%%/texconfig/tcfmgr %%TEXMFDIR%%/texconfig/tcfmgr.map %%TEXMFDIR%%/release-tetex-src.txt -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/download35.map -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/builtin35.map -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts_t1.map -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts_pk.map -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/ps2pk.map -%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts.map -%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex_dl14.map -%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex_ndl14.map -%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex.map -%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm_dl14.map -%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm_ndl14.map -%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm.map +@exec %%UPDMAP_SYS%% +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/download35.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/builtin35.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts_t1.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts_pk.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/ps2pk.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvips/updmap/psfonts.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex_dl14.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex_ndl14.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/pdftex/updmap/pdftex.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm_dl14.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm_ndl14.map +@unexec rm -f %D/%%TEXMFVARDIR%%/fonts/map/dvipdfm/updmap/dvipdfm.map +@unexec rm -f %D/%%TEXMFVARDIR%%/web2c/updmap.log +@exec %%FMTUTIL_SYS%% --all @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/aleph.log @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/cont-en.log @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/etex.log @@ -244,7 +247,6 @@ lib/libkpathsea.a @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/metafun.mem @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/mpost.mem @unexec rm -f %D/%%TEXMFVARDIR%%/web2c/mf.base -@unexec rm -f %D/%%TEXMFVARDIR%%/web2c/updmap.log @dirrm include/kpathsea @dirrm %%TEXMFDIR%%/texconfig/x @dirrm %%TEXMFDIR%%/texconfig/v |