summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-10-26 15:13:50 +0000
committerMamoru Komachi <usata@gentoo.org>2004-10-26 15:13:50 +0000
commit22d2f7a89230c66c3f53652bf86f4997891fcb12 (patch)
tree90783b9b4907fa7ab640b623c1fa42faf779d23b /app-text/ptex/ptex-3.1.3-r1.ebuild
parentCosmetic updates of einfo output. Closes #68982. (Manifest recommit) (diff)
downloadgentoo-2-22d2f7a89230c66c3f53652bf86f4997891fcb12.tar.gz
gentoo-2-22d2f7a89230c66c3f53652bf86f4997891fcb12.tar.bz2
gentoo-2-22d2f7a89230c66c3f53652bf86f4997891fcb12.zip
Use included xdvik.
Diffstat (limited to 'app-text/ptex/ptex-3.1.3-r1.ebuild')
-rw-r--r--app-text/ptex/ptex-3.1.3-r1.ebuild118
1 files changed, 118 insertions, 0 deletions
diff --git a/app-text/ptex/ptex-3.1.3-r1.ebuild b/app-text/ptex/ptex-3.1.3-r1.ebuild
new file mode 100644
index 000000000000..c1c795a4d298
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.3-r1.ebuild
@@ -0,0 +1,118 @@
+# 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.3-r1.ebuild,v 1.1 2004/10/26 15:13:50 usata Exp $
+
+PTEX_TEXMF_PV=2.2
+TETEX_PV=2.0.2
+
+inherit tetex eutils
+
+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"
+
+SRC_PATH_PTEX="ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex"
+SRC_URI="${SRC_URI}
+ ${SRC_PATH_PTEX}/tetex/${PTEX_SRC}
+ ${SRC_PATH_PTEX}/tetex/${PTEX_TEXMF}
+ ${SRC_PATH_PTEX}/dvips/dvipsk-jpatch-p1.6a.tar.gz
+ X? ( http://tutimura.ath.cx/~nob/tex/xdvi/tetex-src-2.0.2-xdvik-y1.patch.gz
+ http://tutimura.ath.cx/~nob/tex/xdvi/tetex-src-2.0.2-xdvik-y1-j1.19.patch.gz
+ http://www.nn.iij4u.or.jp/~tutimura/tex/xdvik-22.40y1-j1.21.patch.gz )"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~x86 ~alpha ~amd64 ~ppc ~sparc ~ppc64 -ppc-macos"
+IUSE="X"
+
+DEPEND="X? ( >=media-libs/freetype-2
+ >=media-fonts/kochi-substitute-20030809-r3 )
+ !app-text/xdvik"
+
+src_unpack() {
+ tetex_src_unpack
+
+ einfo "Unpacking pTeX sources..."
+ cd ${S}/texmf
+ unpack ${PTEX_TEXMF}
+
+ cd ${S}/texk/web2c
+ unpack ${PTEX_SRC}
+
+ cd ${S}/texk
+ unpack dvipsk-jpatch-p1.6a.tar.gz
+ epatch dvipsk-5.92b-p1.6a.patch
+
+ if use X ; then
+ cd ${S}
+ epatch ${DISTDIR}/tetex-src-2.0.2-xdvik-y1.patch.gz
+ epatch ${DISTDIR}/xdvik-22.40y1-j1.21.patch.gz
+ epatch ${DISTDIR}/tetex-src-2.0.2-xdvik-y1-j1.19.patch.gz
+ 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
+}
+
+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/web2c/texmf.cnf<<-EOF
+
+ CMAPINPUTS = .;/opt/Acrobat5/Resource/Font//;/usr/share/xpdf//
+ EOF
+
+ cd ${S}/texk/web2c/${PN}-src-${PV} || die
+ ./configure EUC || die "configure pTeX failed"
+
+ make programs || die "make pTeX failed"
+}
+
+src_install() {
+ tetex_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
+ newins ${FILESDIR}/psfonts-novflib-ja.map psfonts-ja.map
+ 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
+}