summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2006-04-28 18:50:22 +0000
committerMamoru Komachi <usata@gentoo.org>2006-04-28 18:50:22 +0000
commit7f494b93dec72e1ab638099c86dbe49a0813fd5c (patch)
tree6b41c2491c03b42a8014ddc9d3e2af1cd99760e8 /app-text/ptex
parentRemoving outdated ebuilds (diff)
downloadhistorical-7f494b93dec72e1ab638099c86dbe49a0813fd5c.tar.gz
historical-7f494b93dec72e1ab638099c86dbe49a0813fd5c.tar.bz2
historical-7f494b93dec72e1ab638099c86dbe49a0813fd5c.zip
Fixed CMAPINPUTS (dvipdfmx) issue. Adopted ptetex2 for ptex patch distribution.
Package-Manager: portage-2.0.54
Diffstat (limited to 'app-text/ptex')
-rw-r--r--app-text/ptex/ChangeLog7
-rw-r--r--app-text/ptex/Manifest4
-rw-r--r--app-text/ptex/files/digest-ptex-3.1.5-r26
-rw-r--r--app-text/ptex/ptex-3.1.5-r2.ebuild154
4 files changed, 169 insertions, 2 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog
index dfbb1b248702..626d14222348 100644
--- a/app-text/ptex/ChangeLog
+++ b/app-text/ptex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/ptex
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.57 2006/03/10 02:13:43 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.58 2006/04/28 18:50:22 usata Exp $
+
+*ptex-3.1.5-r2 (28 Apr 2006)
+
+ 28 Apr 2006; Mamoru KOMACHI <usata@gentoo.org> +ptex-3.1.5-r2.ebuild:
+ Fixed CMAPINPUTS (dvipdfmx) issue. Adopted ptetex2 for ptex patch distribution.
10 Mar 2006; Aron Griffis <agriffis@gentoo.org> ptex-3.1.5-r1.ebuild:
Mark 3.1.5-r1 stable on ia64
diff --git a/app-text/ptex/Manifest b/app-text/ptex/Manifest
index 5a663c411911..cc89894b0a0c 100644
--- a/app-text/ptex/Manifest
+++ b/app-text/ptex/Manifest
@@ -1,4 +1,4 @@
-MD5 31a9e2879e6d9764bec7b5139ca11533 ChangeLog 8195
+MD5 e5c183fc0351824f94b214f5e0359845 ChangeLog 8377
MD5 02883507686a831b844da77bd0fb2b3a files/10texmf-ptex.cnf 722
MD5 4d1956517ccb98e9be75cdf83f9b7ac0 files/20fmtutil-platex.cnf 121
MD5 a1829990d625a3607cc38b99a27b9574 files/20texmf-cmap.cnf 65
@@ -6,6 +6,7 @@ MD5 d4d469b2a8b88c4d97440979fd5c2a41 files/20updmap-ja.cfg 43
MD5 424cf5900fe6b1af9867cd2e8c952292 files/digest-ptex-3.1.4-r2 718
MD5 3e6bd16aa42a2c0f77d9ea14dabb96f3 files/digest-ptex-3.1.5 718
MD5 548472103b9e10dc25d040af8834ac94 files/digest-ptex-3.1.5-r1 718
+MD5 734ce454fe4ff45bf092efc530f5e55b files/digest-ptex-3.1.5-r2 424
MD5 661aaa7be66ace377a17bb300e99b508 files/digest-ptex-3.1.8.1 271
MD5 8649a146af71c946a9a5acd6495d1ec6 files/digest-ptex-3.1.8.1_p20050418 271
MD5 d15f2d9ab04bcfa15c3e737f106d1625 files/psfonts-ja.map 1158
@@ -21,6 +22,7 @@ MD5 362296e34a1a04a6e5e2a7d9e97547c6 files/xpdf2-underflow.patch 2363
MD5 d2fd604b88f163116f23670ca84b1815 metadata.xml 531
MD5 6159b18f18d59387df77cb2813192347 ptex-3.1.4-r2.ebuild 3526
MD5 efc922db23b08659b7f01a6ff601ab99 ptex-3.1.5-r1.ebuild 3839
+MD5 40a1feee08555460df9da220a4d9c621 ptex-3.1.5-r2.ebuild 4879
MD5 3f169da4e4346adecedf12050b56a97e ptex-3.1.5.ebuild 3535
MD5 f4dacad25285fd71b633da7dbbe28991 ptex-3.1.8.1.ebuild 4986
MD5 dd71ce3866d7de096837448e9b2fbdda ptex-3.1.8.1_p20050418.ebuild 4952
diff --git a/app-text/ptex/files/digest-ptex-3.1.5-r2 b/app-text/ptex/files/digest-ptex-3.1.5-r2
new file mode 100644
index 000000000000..d4e29a0ab220
--- /dev/null
+++ b/app-text/ptex/files/digest-ptex-3.1.5-r2
@@ -0,0 +1,6 @@
+MD5 71dfc6c1422ffb3fc2d538e2ab92fbdf ptetex-cmap-20051117.tar.gz 4061363
+MD5 bc35493e1e07e819f203290ded77780a ptetex2-20050522.tar.gz 4031404
+MD5 0a0ba30552331663f496d41b8ca2a299 tetex-2.0.2-gentoo.tar.gz 1704
+MD5 a16f6bba227d55e79aeee46fbbd82d28 tetex-src-2.0.2.tar.gz 11745933
+MD5 d3bdb96f9077e43b2115d3cc471743b3 tetex-texmf-2.0.2.tar.gz 52424280
+MD5 40d4b2c5582eccbee4b6ec692c3cc253 tetex-texmfsrc-2.0.2.tar.gz 22909537
diff --git a/app-text/ptex/ptex-3.1.5-r2.ebuild b/app-text/ptex/ptex-3.1.5-r2.ebuild
new file mode 100644
index 000000000000..272fbf296016
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.5-r2.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.5-r2.ebuild,v 1.1 2006/04/28 18:50:22 usata Exp $
+
+PTEX_TEXMF_PV=2.3
+TETEX_PV=2.0.2
+
+inherit tetex-2
+
+DESCRIPTION="The ASCII publishing TeX distribution"
+HOMEPAGE="http://www.ascii.co.jp/pb/ptex/"
+
+PTEX_SRC="ptex-src-${PV}.tar.gz"
+PTEX_TEXMF="ptex-texmf-${PTEX_TEXMF_PV}.tar.gz"
+PTETEX="ptetex2-20050522"
+PTETEX_CMAP="ptetex-cmap-20051117"
+
+SRC_URI="${SRC_URI}
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex2/${PTETEX}.tar.gz
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
+IUSE="X"
+
+DEPEND="X? ( >=media-libs/freetype-2
+ >=media-fonts/kochi-substitute-20030809-r3 )
+ !app-text/xdvik"
+
+src_unpack() {
+ unpack ${PTETEX}.tar.gz
+ unpack ${PTETEX_CMAP}.tar.gz
+ tetex-2_src_unpack
+
+ einfo "Unpacking pTeX sources..."
+ cd ${S}/texmf
+ echo ">>> Unpacking ${PTEX_TEXMF} to ${S}/texmf ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/${PTEX_TEXMF} || die
+
+ echo ">>> Unpacking jis fonts to ${S}/texmf/fonts ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/jis.tar.gz -C ${T} || die
+ mv ${T}/jis/tfm/ptex/* ${S}/texmf/fonts/tfm/ptex || die
+ mv ${T}/jis/vf* ${S}/texmf/fonts/vf/ptex || die
+
+ echo ">>> Unpacking morisawa fonts to ${S}/texmf/fonts ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/morisawa.tar.gz -C ${T} || die
+ mv ${T}/morisawa/tfm/dvips/* ${S}/texmf/fonts/tfm/ptex || die
+ mv ${T}/morisawa/tfm/ptex/* ${S}/texmf/fonts/tfm/ptex || die
+ mv ${T}/morisawa/vf/* ${S}/texmf/fonts/vf/ptex || die
+
+ cd ${S}/texmf/fonts
+ echo ">>> Unpacking CMap fonts to ${S}/texmf/fonts ..."
+ unzip ${WORKDIR}/${PTETEX_CMAP}/adobe-cmaps-200406.zip || die
+
+ cd ${S}/texk/web2c
+ echo ">>> Unpacking ${PTEX_SRC} to ${S}/texk/web2c ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/${PTEX_SRC} || die
+
+ cd ${S}/texk
+ echo ">>> Unpacking dvipsk-jpatch to ${S}/texk ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/dvipsk-jpatch-p1.6a1.tar.gz || die
+ epatch dvipsk-5.92b-p1.6a1.patch
+
+ if use X ; then
+ cd ${S}
+ epatch ${WORKDIR}/${PTETEX}/archive/tetex-src-2.0.2-xdvik-y1.patch.gz
+ epatch ${WORKDIR}/${PTETEX}/archive/xdvik-22.40y1-j1.21.patch.gz
+ epatch ${WORKDIR}/${PTETEX}/archive/tetex-src-2.0.2-xdvik-y1-j1.19.patch.gz
+ epatch ${WORKDIR}/${PTETEX}/archive/xdvik-22.40y1-waitpid.patch
+ sed -i -e "/\/usr\/local/s:^:%:g" \
+ -e "/kochi-.*-subst/s:%::g" \
+ -e "s:/usr/local:/usr:g" \
+ -e "s:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute:g" \
+ ${S}/texk/xdvik/vfontmap.freetype || die
+ cd texk/oxdvik
+ ln -s ../xdvik/*.{c,h} ./
+ cp -f ../xdvik/Makefile.in.oxdvi Makefile.in
+ cp -f ../xdvik/c-auto.in ./
+ fi
+
+ # bug 75801
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-CESA-2004-007-xpdf2-newer.diff
+ EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf-goo-sizet.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf2-underflow.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl2-CAN-2004-1125.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl3-CAN-2005-0064.patch
+ EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/xdvizilla.patch
+
+ #bug 115775
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p2" epatch ${FILESDIR}/xpdf-2.02pl1-CAN-2005-3191-3.patch
+
+ #bug 122365
+ EPATCH_OPTS="-d ${WORKDIR}" epatch ${FILESDIR}/${P}-flex-unput.patch
+
+ # bug 118264
+ EPATCH_OPTS="-d ${WORKDIR} -p0" epatch ${FILESDIR}/${P}-dvi-draw-conflicting-types.patch
+
+}
+
+src_compile() {
+ if use X ; then
+ export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
+ TETEX_ECONF="--with-vflib=vf2ft"
+ fi
+
+ tetex_src_compile
+
+ cat >>${S}/texk/web2c/fmtutil.cnf<<-EOF
+
+ # Japanese pLaTeX:
+ ptex ptex - ptex.ini
+ platex ptex language.dat platex.ini
+ platex209 ptex language.dat plplain.ini
+ EOF
+
+ cat >>${S}/texk/kpathsea/texmf.cnf<<-EOF
+
+ CMAPINPUTS = .;/opt/Acrobat5/Resource/Font//;/opt/Acrobat7/Resource/Font//;/usr/share/xpdf//;/usr/share/ghostscript/Resource//;/usr/share/texmf/fonts/CMap//
+ EOF
+
+ cd ${S}/texk/web2c/${PN}-src-${PV} || die
+ ./configure EUC || die "configure pTeX failed"
+
+ make programs || die "make pTeX failed"
+}
+
+src_install() {
+ tetex-2_src_install
+
+ einfo "Installing pTeX..."
+ cd ${S}/texk/web2c/${PN}-src-${PV} || die
+ einstall bindir=${D}/usr/bin texmf=${D}/usr/share/texmf || die
+
+ insinto /usr/share/texmf/dvips/config
+ doins ${FILESDIR}/psfonts-ja.map || die
+ cat >>${D}/usr/share/texmf/web2c/updmap.cfg<<-EOF
+
+ # Japanese fonts
+ MixedMap psfonts-ja.map
+ EOF
+
+ docinto dvipsk
+ cd ${S}/texk/dvipsk
+ dodoc ../ChangeLog.jpatch ../README.jpatch
+
+ if use X ; then
+ cd ${S}/texk/xdvik
+ docinto xdvik
+ dodoc ANNOUNCE BUGS CHANGES.xdvik-jp FAQ README.*
+ docinto xdvik/READMEs
+ dodoc READMEs/*
+ fi
+}