summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-11-05 16:53:32 +0000
committerMamoru Komachi <usata@gentoo.org>2004-11-05 16:53:32 +0000
commita629a75a9b1c0e4aaa310e5edb4a537db2cd4f83 (patch)
treed4d797e155b8330ebdf0bb89b03d77216408fe38 /app-text/ptex
parentCC=${CC} >> CC=$(tc-getCC); bug #70120. (Manifest recommit) (diff)
downloadgentoo-2-a629a75a9b1c0e4aaa310e5edb4a537db2cd4f83.tar.gz
gentoo-2-a629a75a9b1c0e4aaa310e5edb4a537db2cd4f83.tar.bz2
gentoo-2-a629a75a9b1c0e4aaa310e5edb4a537db2cd4f83.zip
Added ptetex-3 patch. This will be masked until teTeX-3 official release.
Diffstat (limited to 'app-text/ptex')
-rw-r--r--app-text/ptex/ChangeLog9
-rw-r--r--app-text/ptex/Manifest13
-rw-r--r--app-text/ptex/files/digest-ptex-3.1.4.200410264
-rw-r--r--app-text/ptex/files/tetex-2.0.2-dont-run-config.diff33
-rw-r--r--app-text/ptex/files/tetex-2.0.2.diff47
-rw-r--r--app-text/ptex/ptex-3.1.4.20041026.ebuild161
6 files changed, 180 insertions, 87 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog
index 7870e95709d8..3dffe4f3c460 100644
--- a/app-text/ptex/ChangeLog
+++ b/app-text/ptex/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/ptex
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.22 2004/10/30 08:03:57 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.23 2004/11/05 16:53:32 usata Exp $
+
+*ptex-3.1.4.20041026 (06 Nov 2004)
+
+ 06 Nov 2004; Mamoru KOMACHI <usata@gentoo.org>
+ -files/tetex-2.0.2-dont-run-config.diff, -files/tetex-2.0.2.diff,
+ ptex-3.1.4-r1.ebuild, +ptex-3.1.4.20041026.ebuild:
+ Added ptetex-3 patch. This will be masked until teTeX-3 official release.
30 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> ptex-3.1.3-r1.ebuild,
ptex-3.1.4-r1.ebuild:
diff --git a/app-text/ptex/Manifest b/app-text/ptex/Manifest
index 1d82ed1b1307..7c4159c36ff7 100644
--- a/app-text/ptex/Manifest
+++ b/app-text/ptex/Manifest
@@ -1,11 +1,12 @@
-MD5 b38621684da3327b1bb588ffe657724f ChangeLog 3158
-MD5 d2fd604b88f163116f23670ca84b1815 metadata.xml 531
+MD5 540914d190f852e68ab0116dddf5787b ptex-3.1.4-r1.ebuild 3069
MD5 95ba87dcbb0a27aabd2fbcf1be40d9f7 ptex-3.1.3.ebuild 1882
MD5 b5d3e3ffe96c2355d2c83d1f187b9912 ptex-3.1.3-r1.ebuild 3034
-MD5 ae10e61a7921d04c17b9cee8bcc9e0ef ptex-3.1.4-r1.ebuild 3034
+MD5 1d8549864510becdee27a20ddb1c33c0 ptex-3.1.4.20041026.ebuild 4742
+MD5 b38621684da3327b1bb588ffe657724f ChangeLog 3158
+MD5 d2fd604b88f163116f23670ca84b1815 metadata.xml 531
MD5 75b6015c4ec058f264eb767326626843 files/digest-ptex-3.1.3 484
-MD5 d15f2d9ab04bcfa15c3e737f106d1625 files/psfonts-ja.map 1158
-MD5 476a1c8128397ff7a381c43fe723a522 files/tetex-2.0.2-dont-run-config.diff 1243
-MD5 50c560b391869be15a001b738e0b7bfe files/tetex-2.0.2.diff 2010
MD5 3cbdb92af75d2424acadf9037f0f8977 files/digest-ptex-3.1.3-r1 718
MD5 424cf5900fe6b1af9867cd2e8c952292 files/digest-ptex-3.1.4-r1 718
+MD5 e92d37a7194d0412dddad7a7f543e3b0 files/digest-ptex-3.1.4.20041026 317
+MD5 d15f2d9ab04bcfa15c3e737f106d1625 files/psfonts-ja.map 1158
+MD5 e92d37a7194d0412dddad7a7f543e3b0 files/digest-ptex-3.1.4-r10 317
diff --git a/app-text/ptex/files/digest-ptex-3.1.4.20041026 b/app-text/ptex/files/digest-ptex-3.1.4.20041026
new file mode 100644
index 000000000000..902d479ed8ea
--- /dev/null
+++ b/app-text/ptex/files/digest-ptex-3.1.4.20041026
@@ -0,0 +1,4 @@
+MD5 5f3d46a777ccb746c60e0d4b588c62bf tetex-src-beta-2.99.1.20041026.tar.gz 12565292
+MD5 099935025a9585b95b38a0ef1ac8278b tetex-texmf-beta-2.99.1.20041026.tar.gz 84068568
+MD5 39b4038606f813f5f575d6817be95c97 ptetex3-20041027.tar.gz 2904987
+MD5 97b0444abc22e96521ea94a33b8f5165 tetex-2.99.1.20041026-gentoo.tar.gz 2252
diff --git a/app-text/ptex/files/tetex-2.0.2-dont-run-config.diff b/app-text/ptex/files/tetex-2.0.2-dont-run-config.diff
deleted file mode 100644
index 6ab71bc5b229..000000000000
--- a/app-text/ptex/files/tetex-2.0.2-dont-run-config.diff
+++ /dev/null
@@ -1,33 +0,0 @@
---- Makefile.in.orig 2003-01-13 00:34:32.000000000 -0600
-+++ Makefile.in 2003-01-13 00:35:42.000000000 -0600
-@@ -59,18 +59,18 @@
- done
- $(srcdir)/selfautofix "$(bindir)" "$(texmf)/web2c"
- cd $(bindir); for i in $(ALLPROGS); do test -f $$i && echo strip $$i && strip $$i || true; done
-- if test -f $(scriptdir)/mktexlsr; then \
-- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-- $(scriptdir)/mktexlsr; \
-- else :; fi
-- if test -f $(scriptdir)/fmtutil; then \
-- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-- $(scriptdir)/fmtutil --all; \
-- else :; fi
-- if test -f $(scriptdir)/texlinks; then \
-- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-- $(scriptdir)/texlinks; \
-- else :; fi
-+ #if test -f $(scriptdir)/mktexlsr; then \
-+ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-+ # $(scriptdir)/mktexlsr; \
-+ #else :; fi
-+ #if test -f $(scriptdir)/fmtutil; then \
-+ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-+ # $(scriptdir)/fmtutil --all; \
-+ #else :; fi
-+ #if test -f $(scriptdir)/texlinks; then \
-+ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
-+ # $(scriptdir)/texlinks; \
-+ #else :; fi
-
- install-exec:
- for dir in $(ESUBDIRS); do \
diff --git a/app-text/ptex/files/tetex-2.0.2.diff b/app-text/ptex/files/tetex-2.0.2.diff
deleted file mode 100644
index cc9f775e0e67..000000000000
--- a/app-text/ptex/files/tetex-2.0.2.diff
+++ /dev/null
@@ -1,47 +0,0 @@
-diff -ru tetex-src-2.0-orig/texk/kpathsea/texmf.in tetex-src-2.0/texk/kpathsea/texmf.in
---- tetex-src-2.0-orig/texk/kpathsea/texmf.in 2003-01-19 05:58:27.000000000 -0600
-+++ tetex-src-2.0/texk/kpathsea/texmf.in 2003-02-05 20:17:16.000000000 -0600
-@@ -58,7 +58,7 @@
- TEXMFMAIN = @texmf@
-
- % A place for local additions to a "standard" texmf tree. For example:
--TEXMFLOCAL = @texmf@-local
-+TEXMFLOCAL = /usr/local/share/texmf
-
- % If defined, teTeX's texconfig stores modifications here (instead of the
- % TEXMFMAIN tree).
-diff -ru tetex-src-2.0-orig/texk/web2c/fmtutil.in tetex-src-2.0/texk/web2c/fmtutil.in
---- tetex-src-2.0-orig/texk/web2c/fmtutil.in 2003-01-26 16:24:30.000000000 -0600
-+++ tetex-src-2.0/texk/web2c/fmtutil.in 2003-02-05 20:17:44.000000000 -0600
-@@ -39,7 +39,7 @@
-
- # Change "tex.ini -> bplain.ini" and "- -> language.dat"
- # if you want babel support in tex:
--tex @TEXBIN@ - tex.ini
-+tex @TEXBIN@ language.dat bplain.ini
- # Change "tex -> etex" and "latex.ini -> *latex.ini" to get an
- # eTeX-2 enabled LaTeX format named latex. Or, don't change anything
- # and use elatex which is just the same.
-@@ -48,7 +48,7 @@
- @ETEX@elatex etex language.dat *elatex.ini
- # Change "pdftex.ini -> pdfbplain.ini" and "- -> language.dat"
- # if you want babel support in pdftex:
--@PTEX@pdftex pdftex - pdftex.ini
-+@PTEX@pdftex pdftex language.dat pdfbplain.ini
- @PTEX@pdflatex pdftex language.dat pdflatex.ini
- @PETEX@pdfetex pdfetex language.def *pdfetex.ini
- @PETEX@pdfelatex pdfetex language.dat *pdfelatex.ini
-@@ -59,11 +59,11 @@
-
- # Change "amstex.ini -> bamstex.ini" and "- -> language.dat"
- # if you want babel support in amstex:
--#! amstex @TEXBIN@ - amstex.ini
-+ amstex @TEXBIN@ language.dat bamstex.ini
-
- # Change "pdfamstex.ini -> pdfbamstex.ini" and "- -> language.dat"
- # if you want babel support in pdfamstex:
--#! pdfamstex pdftex - pdfamstex.ini
-+ pdfamstex pdftex language.dat pdfbamstex.ini
-
- # Context formats:
- #! cont-cz pdfetex cont-usr.tex *cont-cz.ini
diff --git a/app-text/ptex/ptex-3.1.4.20041026.ebuild b/app-text/ptex/ptex-3.1.4.20041026.ebuild
new file mode 100644
index 000000000000..38eb22f34c22
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.4.20041026.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.4.20041026.ebuild,v 1.1 2004/11/05 16:53:32 usata Exp $
+
+TETEX_PV=2.99.1.20041026
+TEXMF_PATH=/var/lib/texmf
+
+inherit tetex eutils
+
+DESCRIPTION="The ASCII publishing TeX distribution"
+HOMEPAGE="http://www.ascii.co.jp/pb/ptex/
+ http://www.misojiro.t.u-tokyo.ac.jp/~tutimura/ptetex3/0README
+ http://www.fsci.fuk.kindai.ac.jp/aftp/pub/ptex/utils/"
+
+PTEX_TEXMF_PV=2.2
+PTEX_SRC="ptex-src-${PV%.*}b.tar.gz"
+PTEX_TEXMF="ptex-texmf-${PTEX_TEXMF_PV}.tar.gz"
+PTETEX=ptetex3-20041027
+
+S=${WORKDIR}/tetex-src-beta-${TETEX_PV}
+
+SRC_PATH_PTEX="ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex"
+SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX-beta"
+TETEX_SRC="tetex-src-beta-${TETEX_PV}.tar.gz"
+TETEX_TEXMF="tetex-texmf-beta-${TETEX_PV}.tar.gz"
+TETEX_TEXMF_SRC=""
+SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC}
+ ${SRC_PATH_TETEX}/${TETEX_TEXMF}
+ http://www.misojiro.t.u-tokyo.ac.jp/~tutimura/ptetex3/${PTETEX}.tar.gz
+ mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~x86 ~alpha ~amd64 ~ppc ~sparc ~ppc64 ~ppc-macos"
+IUSE="X motif lesstif Xaw3d"
+
+DEPEND="X? ( >=media-libs/freetype-2
+ >=media-fonts/kochi-substitute-20030809-r3
+ motif? ( lesstif? ( x11-libs/lesstif )
+ !lesstif? ( x11-libs/openmotif ) )
+ !motif? ( Xaw3d? ( x11-libs/Xaw3d ) )
+ !app-text/xdvik
+ )"
+
+src_unpack() {
+ unpack ${PTETEX}.tar.gz
+ tetex_src_unpack
+
+ einfo "Unpacking pTeX sources ..."
+ cd ${S}/texmf
+ echo ">>> Unpacking ${PTEX_TEXMF} to ${S}/texmf ..."
+ tar xzf ${WORKDIR}/${PTETEX}/archive/${PTEX_TEXMF} || 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-5.94b-p1.6a.tar.gz || die
+ epatch dvipsk-5.94b-p1.6a.diff
+
+ if use X ; then
+ cd ${S}
+ epatch ${WORKDIR}/${PTETEX}/archive/xdvik-22.84.4-tetex-20040628-jp.diff.gz
+ cat >>${S}/texk/xdvik/vfontmap.sample<<-EOF
+
+ # TrueType fonts
+ min /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ nmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ goth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ tmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ tgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ ngoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ jis /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ jisg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ dm /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ dg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ mgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ fmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ fgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ EOF
+ fi
+}
+
+src_compile() {
+ if use X ; then
+ export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
+
+ if use motif ; then
+ if use lesstif ; then
+ append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
+ export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
+ fi
+ toolkit="motif"
+ elif use Xaw3d ; then
+ toolkit="xaw3d"
+ else
+ toolkit="xaw"
+ fi
+
+ TETEX_ECONF="--with-vflib=vf2ft --enable-freetype --with-x-toolkit=${toolkit}"
+ 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/web2c/texmf.cnf<<-EOF
+
+ CMAPINPUTS = .;/opt/Acrobat5/Resource/Font//;/usr/share/xpdf//
+ EOF
+
+ # make ptex.tex visible to ptex
+ TEXMF="${S}/texmf" ${S}/texk/kpathsea/mktexlsr || die
+
+ cd ${S}/texk/web2c/${PTEX_SRC%.tar.gz} || die
+ chmod +x configure
+ ./configure EUC || die "configure pTeX failed"
+
+ make || die "make pTeX failed"
+}
+
+src_install() {
+ tetex_src_install base doc fixup
+
+ einfo "Installing pTeX ..."
+ dodir ${D}${TEXMF_PATH}/web2c
+ cd ${S}/texk/web2c/${PTEX_SRC%.tar.gz} || die
+ einstall bindir=${D}/usr/bin texmf=${D}${TEXMF_PATH} || die
+
+ insinto /usr/share/texmf/fonts/map/dvips/tetex
+ doins ${FILESDIR}/psfonts-ja.map || die
+
+ cat >>${D}/${TEXMF_PATH}/web2c/updmap.cfg<<-EOF
+
+ # Japanese fonts
+ MixedMap psfonts-ja.map
+ EOF
+
+ # ptex reinstalls ${TEXMF_PATH}/web2c
+ tetex_src_install link
+
+ 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
+}