Update to 3.1.3.

Also:

* Use OPTIONS to specify WITH_DVIPSK
* provide an option to install udvips
* Add listings.sty

Submitted by:	ITO Tsuyoshi <tsuyoshi@is.s.u-tokyo.ac.jp>
		SHIOZAKI Takehiko <st@be.to>
This commit is contained in:
Masafumi Max NAKANE 2004-04-20 13:25:33 +00:00
parent bbe8db834b
commit 1fca0d561e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107714
6 changed files with 1875 additions and 12 deletions

View file

@ -6,16 +6,16 @@
#
PORTNAME= ptex
PORTVERSION= 3.1.2
PORTREVISION= 3
PORTVERSION= 3.1.3
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ \
${MASTER_SITE_TEX_CTAN} \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,text/TeX/ptex-win32/utils,:S,$,:udvipspatch,}
MASTER_SITE_SUBDIR= systems/unix/teTeX/2.0/distrib
PKGNAMEPREFIX= ja-
PKGNAMESUFFIX= -base
DISTFILES= ${TETEX_SRC} ${TETEX_TEXMF} ${PTEX_TEXMF} ${DVIPSK_JPATCH}
DISTFILES= ${TETEX_SRC} ${TETEX_TEXMF} ${PTEX_TEXMF} ${DVIPSK_JPATCH} ${UDVIPS_PATCH}:udvipspatch
EXTRACT_ONLY= ${TETEX_SRC} ${DVIPSK_JPATCH}
MAINTAINER= max@FreeBSD.org
@ -25,6 +25,15 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
OPTIONS= DVIPSK "Install dvipsk with Japanize patch from ASCII" off
OPTIONS+= UDVIPS "Install udvips (Implies DVIPSK)" off
.include <bsd.port.pre.mk>
.if defined(WITH_UDVIPS)
WITH_DVIPSK= yes
.endif
CONFLICTS= teTeX-*
.if defined(WITH_DVIPSK)
CONFLICTS+= ja-dvipsk-* dvips-*
@ -51,6 +60,11 @@ PLIST_SUB+= DVIPSK=""
CONFIGURE_ARGS+=--without-dvipsk
PLIST_SUB+= DVIPSK="@comment "
.endif
.if defined(WITH_UDVIPS)
PLIST_SUB+= UDVIPS=""
.else
PLIST_SUB+= UDVIPS="@comment "
.endif
CONFIGURE_ENV= INSTALL_PROGRAM="${BSD_INSTALL_SCRIPT}"
MLINKS= mktexpk.1 MakeTeXPK.1 allcm.1 allec.1 pdftex.1 cont-de.1 \
pdftex.1 cont-en.1 pdftex.1 cont-nl.1 etex.1 einitex.1 \
@ -87,6 +101,7 @@ TETEX_SRC= tetex-src-${TETEX_VERSION}.tar.gz
TETEX_TEXMF= tetex-texmf-${TETEX_VERSION}.tar.gz
PTEX_TEXMF= ptex-texmf-2.1.tar.gz
DVIPSK_JPATCH= dvipsk-jpatch-p1.6.tar.gz
UDVIPS_PATCH= udvips-5.94a-p1.6.patch
LIBPNG_PREFIX?= ${LOCALBASE}
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
@ -109,11 +124,25 @@ post-extract:
post-patch:
.if defined(WITH_DVIPSK)
@${PATCH} -d ${WRKSRC}/texk -p0 -E --quiet < ${WRKDIR}/dvipsk-5.92b-p1.6.patch
.if defined(WITH_UDVIPS)
@${PATCH} -d ${WRKSRC}/texk -p0 -E --quiet < ${_DISTDIR}/${UDVIPS_PATCH}
.endif
.endif
post-configure:
.if defined(WITH_UDVIPS)
@(cd ${WRKSRC}/texk; ${CP} -pr dvipsk udvipsk)
.endif
post-build:
.if defined(WITH_UDVIPS)
(cd ${WRKSRC}/texk/udvipsk; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} program=udvips XDEFS=-DUDVIPS)
.endif
pre-install:
@${MKDIR} ${TEXMF_TREE}/dvips/base
@${TAR} ${EXCLUDE_DVIPSK} --exclude 'dvipdfm/*' -zxf ${_DISTDIR}/${TETEX_TEXMF} -C ${TEXMF_TREE}
@${INSTALL_DATA} ${FILESDIR}/listings.sty ${TEXMF_TREE}/tex/latex/listings/
@${TAR} -zxf ${_DISTDIR}/${PTEX_TEXMF} -C ${TEXMF_TREE}
@${MKDIR} ${TEXMF_TREE}/dvipdfm-teTeX-dist
@${CP} -pR ${WRKDIR}/dvipdfm/* ${TEXMF_TREE}/dvipdfm-teTeX-dist
@ -133,6 +162,9 @@ pre-install:
.endif
post-install:
.if defined(WITH_UDVIPS)
@${INSTALL_PROGRAM} ${WRKSRC}/texk/udvipsk/udvips ${PREFIX}/bin
.endif
@${INSTALL_SCRIPT} ${WRKSRC}/utils/texinfo/util/texi2dvi ${PREFIX}/bin
@${SED} -e "s|^TEXMFMAIN = .*|TEXMFMAIN = ${TEXMF_TREE}|g" \
< ${WRKSRC}/texk/kpathsea/texmf.cnf \
@ -145,4 +177,4 @@ post-install:
@${PREFIX}/bin/mktexlsr ${TEXMF_TREE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -6,3 +6,5 @@ MD5 (teTeX/ptex-texmf-2.1.tar.gz) = d0c01d4114dde202e96c97b1a2ef8523
SIZE (teTeX/ptex-texmf-2.1.tar.gz) = 1864219
MD5 (teTeX/dvipsk-jpatch-p1.6.tar.gz) = a072a2196015caa15834522728a91a78
SIZE (teTeX/dvipsk-jpatch-p1.6.tar.gz) = 28637
MD5 (teTeX/udvips-5.94a-p1.6.patch) = c5320cc5d11cd35a0e0a1b50cb9d8732
SIZE (teTeX/udvips-5.94a-p1.6.patch) = 10583

File diff suppressed because it is too large Load diff

View file

@ -11111,6 +11111,7 @@ share/texmf/tex/latex/koma-script/typearea.sty
share/texmf/tex/latex/labels/labels.sty
share/texmf/tex/latex/labels/olabels.sty
share/texmf/tex/latex/listings/listings.cfg
share/texmf/tex/latex/listings/listings.sty
share/texmf/tex/latex/listings/lstdoc.sty
share/texmf/tex/latex/listings/lstlang1.sty
share/texmf/tex/latex/listings/lstlang2.sty
@ -11919,6 +11920,7 @@ share/texmf/xdvi/XDvi
@unexec if [ -f %D/info/dvips.info ]; then install-info --delete %D/info/dvips.info %D/info/dir ; fi
%%DVIPSK%%bin/afm2tfm
%%DVIPSK%%bin/dvips
%%UDVIPS%%bin/udvips
%%DVIPSK%%info/dvips.info
%%DVIPSK%%info/dvips.info-1
%%DVIPSK%%info/dvips.info-2

View file

@ -6,8 +6,7 @@
#
PORTNAME= ptex
PORTVERSION= 3.1.2
PORTREVISION= 3
PORTVERSION= 3.1.3
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/
PKGNAMEPREFIX= ja-
@ -17,8 +16,8 @@ DIST_SUBDIR= teTeX
MAINTAINER= max@FreeBSD.org
COMMENT= Japanese specific files for ASCII Japanese pTeX
BUILD_DEPENDS= ${PREFIX}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
RUN_DEPENDS= ${PREFIX}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
BUILD_DEPENDS= ${LOCALBASE}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
RUN_DEPENDS= ${LOCALBASE}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
USE_GMAKE= yes
GNU_CONFIGURE= yes
@ -27,7 +26,7 @@ WRKSRC= ${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/tetex-src-${TETEX_VERSION}/t
ALL_TARGET= default
KANJICODE?= euc
SRCDIR= ptex-${PORTVERSION}
SRCDIR= ptex-src-${PORTVERSION}
TETEX_VERSION= 2.0.2
BINARIES= ptex pdvitype jbibtex pltotf tftopl

View file

@ -1,2 +1,2 @@
MD5 (teTeX/ptex-src-3.1.2.tar.gz) = dba257433562c3a5a33206ecb1157a74
SIZE (teTeX/ptex-src-3.1.2.tar.gz) = 120185
MD5 (teTeX/ptex-src-3.1.3.tar.gz) = 95aedfd68991f2ce0b1d94c8a662ef95
SIZE (teTeX/ptex-src-3.1.3.tar.gz) = 120649