diff options
Diffstat (limited to 'print/dvipsk-tetex')
-rw-r--r-- | print/dvipsk-tetex/Makefile | 29 | ||||
-rw-r--r-- | print/dvipsk-tetex/files/pkg-install.in | 32 |
2 files changed, 45 insertions, 16 deletions
diff --git a/print/dvipsk-tetex/Makefile b/print/dvipsk-tetex/Makefile index e1c195cc9474..fb4a96626b29 100644 --- a/print/dvipsk-tetex/Makefile +++ b/print/dvipsk-tetex/Makefile @@ -6,7 +6,7 @@ PORTNAME= dvipsk-tetex PORTVERSION= 5.92b -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \ ${MASTER_SITE_TEX_CTAN} @@ -17,10 +17,10 @@ DIST_SUBDIR= teTeX MAINTAINER= hrs@FreeBSD.org COMMENT= Convert a TeX DVI file to PostScript -BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \ +BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ mktexlsr:${PORTSDIR}/print/teTeX-base -RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \ +RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ mktexlsr:${PORTSDIR}/print/teTeX-base LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ @@ -45,23 +45,38 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \ --with-pnglib-include=${LIBPNG_PREFIX}/include \ --with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \ --with-t1lib-include=${LIBT1_PREFIX}/include -CONFLICTS= *-teTeX* ja-ptex-base* *-*dvips* *dvips-* +CONFLICTS= *-teTeX-[0-9]* ja-ptex-base-[0-9]* *-*dvips* *dvips-* MAN1= dvips.1 afm2tfm.1 INFO= dvips +.if defined(WITH_LETTERSIZE) +FLAVOR+= letter +PAPERSIZE= letter +.else +PAPERSIZE= a4 +.endif + TETEX_VER= 2.0.2 MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr TEXMF?= share/texmf +TEXMFLOCAL?= share/texmf-local +TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R +TEXCONFIG?= ${LOCALBASE}/bin/texconfig +DVIPSDIR= ${LOCALBASE}/${TEXMF}/dvips/config +DVIPSVARDIR= ${LOCALBASE}/${TEXMF}-var/dvips/config LIBPNG_PREFIX?= ${LOCALBASE} LIBWWW_PREFIX?= ${LOCALBASE} LIBT1_PREFIX?= ${LOCALBASE} PKGINSTALL= ${WRKDIR}/pkg-install.sh PKGDEINSTALL= ${WRKDIR}/pkg-install.sh -TETEX_MODESW= ${PREFIX}/bin/tetex-modesw -PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \ - MKTEXLSR=${MKTEXLSR} +PKGINSTALL_SUB= PAPERSIZE=${PAPERSIZE} \ + MKTEXLSR=${MKTEXLSR} \ + DVIPSDIR=${DVIPSDIR} \ + DVIPSVARDIR=${DVIPSVARDIR} \ + TEXCONFIG=${TEXCONFIG} \ + LOCALBASE=${LOCALBASE} pre-build: ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ diff --git a/print/dvipsk-tetex/files/pkg-install.in b/print/dvipsk-tetex/files/pkg-install.in index be92a3c27cab..fcfb27f8e255 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 |