Fix dependencies (print/teTeX-*) and add some style changes.

Approved by:	linimon (mentor)
This commit is contained in:
Hiroki Sato 2004-06-18 15:55:13 +00:00
parent e9544d19cf
commit 92cb0a9c62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111736
5 changed files with 51 additions and 63 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= dvipsk
PORTVERSION= 5.92b
PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \
${MASTER_SITE_TEX_CTAN} \
@ -21,14 +22,25 @@ DIST_SUBDIR= teTeX
MAINTAINER= hrs@FreeBSD.org
COMMENT= A DVI to PostScript translator + Japanese patch
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base \
${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex
RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base \
${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
RUN_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}
PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR}
PATCH_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk
EXTRA_PATCHES= ${WRKDIR}/dvipsk-${PORTVERSION}-p${VER_JPATCH}.patch
CONFIGURE_WRKSRC=${WRKDIR}/tetex-src-${VER_TETEX}
BUILD_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk/dvipsk
INSTALL_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk/dvipsk
PLIST_SUB= TEXMF=${TEXMF} MKTEXLSR=${MKTEXLSR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--disable-multiplatform \
@ -50,30 +62,27 @@ INFO= dvips
VER_TETEX= 2.0.2
VER_JPATCH= 1.6
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
TEXMFDIR?= share/texmf
TEXMF?= share/texmf
LIBPNG_PREFIX?= ${LOCALBASE}
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
DVIPSKCNF= ${PREFIX}/${TEXMFDIR}/dvips/config/config.ps
do-patch:
cd ${WRKSRC}/texk &&\
${PATCH} -p0 < ${WRKDIR}/dvipsk-${PORTVERSION}-p${VER_JPATCH}.patch
${SED} -e 's,%%TEXMFCNF%%,${TEXMFCNF},g;s,%%DVIPSKCNF%%,${DVIPSKCNF},g;s,%%MKTEXLSR%%,${MKTEXLSR},g' \
TETEX_MODESW= ${PREFIX}/bin/tetex-modesw
PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \
MKTEXLSR=${MKTEXLSR}
post-configure:
${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
${CHMOD} 0755 ${PKGINSTALL}
do-build:
cd ${WRKSRC}/texk/dvipsk &&\
${MAKE_ENV} ${MAKE} ${ALL_TARGET}
do-install:
cd ${WRKSRC}/texk/dvipsk &&\
${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
${INSTALL_DATA} ${FILESDIR}/kanji.map ${PREFIX}/${TEXMFDIR}/dvips/config
${INSTALL_DATA} ${FILESDIR}/config.ps ${PREFIX}/${TEXMFDIR}/dvips/config/config.ps.ptex-tetex
post-install:
${INSTALL_DATA} \
${FILESDIR}/ptex-kanji.map \
${PREFIX}/${TEXMF}/dvips/ptex/ptex-kanji.map
${INSTALL_DATA} \
${FILESDIR}/config.ps.ptex-tetex \
${PREFIX}/${TEXMF}/dvips/config/config.ps.ptex-tetex
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

View file

@ -1,5 +1,5 @@
% teTeX's config.ps. Thomas Esser, 1998, public domain.
% $FreeBSD$
% teTeX's config.ps. Thomas Esser, 1998, public domain.
% Memory available. Download the three-line PostScript file:
% %! Hey, we're PostScript
@ -46,7 +46,7 @@ j
% This shows how to add your own map file.
% Remove the comment and adjust the name:
% p +myfonts.map
p +kanji.map
p +ptex-kanji.map
@ A4size 210mm 297mm
@+ %%PaperSize: A4

View file

@ -2,39 +2,18 @@
GREP=/usr/bin/grep
SED=/usr/bin/sed
SUFFIX=ptex-tetex
MODE=ptex-tetex
MKTEXLSR=%%MKTEXLSR%%
TETEX_MODESW=%%TETEX_MODESW%%
case $2 in
POST-INSTALL)
if [ ! -f %%DVIPSKCNF%% ]; then
cp %%DVIPSKCNF%%.${SUFFIX} %%DVIPSKCNF%%
echo "Notice: installing %%DVIPSKCNF%%.${SUFFIX} -> %%DVIPSKCNF%%."
%%MKTEXLSR%%
elif ${SED} q < %%DVIPSKCNF%% | ${GREP} "public domain" > /dev/null 2>&1; then
cp %%DVIPSKCNF%%.${SUFFIX} %%DVIPSKCNF%%
echo "Notice: installing %%DVIPSKCNF%%.${SUFFIX} -> %%DVIPSKCNF%%."
%%MKTEXLSR%%
else
echo "Notice: %%DVIPSKCNF%% is not installed."
echo " Merge from %%DVIPSKCNF%%.${SUFFIX} manually."
fi
;;
%%TETEX_MODESW%% ${MODE} dvips forceinstall
%%MKTEXLSR%%
;;
DEINSTALL)
if [ -f %%DVIPSKCNF%% ]; then
if ${SED} q < %%DVIPSKCNF%% | ${GREP} "public domain" > /dev/null 2>&1; then
if [ -f %%DVIPSKCNF%%.tetex ]; then
cp %%DVIPSKCNF%%.tetex %%DVIPSKCNF%%
echo "Notice: installing %%DVIPSKCNF%%.tetex -> %%DVIPSKCNF%%."
%%MKTEXLSR%%
else
rm -f %%DVIPSKCNF%%
echo "Notice: %%DVIPSKCNF%% is removed."
%%MKTEXLSR%%
fi
else
echo "Notice: %%DVIPSKCNF%% is NOT removed."
echo " Remove manually."
fi
fi
;;
%%TETEX_MODESW%% default dvips forceinstall
%%MKTEXLSR%%
;;
esac

View file

@ -1,13 +1,13 @@
@comment $FreeBSD$
bin/afm2tfm
bin/dvips
%%TEXMFDIR%%/dvips/base/tex.pro
%%TEXMFDIR%%/dvips/base/texps.pro
%%TEXMFDIR%%/dvips/base/texc.pro
%%TEXMFDIR%%/dvips/base/special.pro
%%TEXMFDIR%%/dvips/base/finclude.pro
%%TEXMFDIR%%/dvips/base/color.pro
%%TEXMFDIR%%/dvips/base/crop.pro
%%TEXMFDIR%%/dvips/base/hps.pro
%%TEXMFDIR%%/dvips/config/kanji.map
%%TEXMFDIR%%/dvips/config/config.ps.ptex-tetex
%%TEXMF%%/dvips/base/tex.pro
%%TEXMF%%/dvips/base/texps.pro
%%TEXMF%%/dvips/base/texc.pro
%%TEXMF%%/dvips/base/special.pro
%%TEXMF%%/dvips/base/finclude.pro
%%TEXMF%%/dvips/base/color.pro
%%TEXMF%%/dvips/base/crop.pro
%%TEXMF%%/dvips/base/hps.pro
%%TEXMF%%/dvips/ptex/ptex-kanji.map
%%TEXMF%%/dvips/config/config.ps.ptex-tetex