summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-07-26 16:14:15 +0000
committerMamoru Komachi <usata@gentoo.org>2003-07-26 16:14:15 +0000
commit739b35a69830a822e192ebfe62a4eed00b79fd98 (patch)
tree5d4d2c23e0b5b602bfb99aee515944de248a298a /app-text
parentNew ebuild, closing bug #23128 (diff)
downloadgentoo-2-739b35a69830a822e192ebfe62a4eed00b79fd98.tar.gz
gentoo-2-739b35a69830a822e192ebfe62a4eed00b79fd98.tar.bz2
gentoo-2-739b35a69830a822e192ebfe62a4eed00b79fd98.zip
New ebuild, closing bug #23128
Diffstat (limited to 'app-text')
-rw-r--r--app-text/ptex/ChangeLog12
-rw-r--r--app-text/ptex/Manifest3
-rw-r--r--app-text/ptex/files/digest-ptex-3.1.26
-rw-r--r--app-text/ptex/files/psfonts-ja.map45
-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.2.ebuild221
7 files changed, 366 insertions, 1 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog
new file mode 100644
index 000000000000..d2f150fd2fc5
--- /dev/null
+++ b/app-text/ptex/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-text/ptex
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.1 2003/07/26 16:14:06 usata Exp $
+
+*ptex-3.1.2 (27 Jul 2003)
+
+ 27 Jul 2003; Mamoru KOMACHI <usata@gentoo.org> ptex-3.1.2.ebuild,
+ files/psfonts-ja.map, files/tetex-2.0.2-dont-run-config.diff,
+ files/tetex-2.0.2.diff:
+ New ebuild, based on the ebuild submitted by Shinya Ando
+ <shinya@systemlinks.com> at GentooJP BugTrack, closing #23128
+
diff --git a/app-text/ptex/Manifest b/app-text/ptex/Manifest
index 4bcae378ce38..45d1d7ecb76b 100644
--- a/app-text/ptex/Manifest
+++ b/app-text/ptex/Manifest
@@ -1,4 +1,5 @@
-MD5 22ddc790b7333c6d0f79d5a238181cfa ptex-3.1.2.ebuild 5454
+MD5 fd7f433d8fb4c4b08555013faa155ef5 ptex-3.1.2.ebuild 5457
+MD5 9750c82fbf5bd3fc17ea2d191bdc37e1 ChangeLog 516
MD5 8d6f7372f16899ab048c61a738b48065 files/psfonts-ja.map 1184
MD5 476a1c8128397ff7a381c43fe723a522 files/tetex-2.0.2-dont-run-config.diff 1243
MD5 50c560b391869be15a001b738e0b7bfe files/tetex-2.0.2.diff 2010
diff --git a/app-text/ptex/files/digest-ptex-3.1.2 b/app-text/ptex/files/digest-ptex-3.1.2
new file mode 100644
index 000000000000..bbd8de62e43e
--- /dev/null
+++ b/app-text/ptex/files/digest-ptex-3.1.2
@@ -0,0 +1,6 @@
+MD5 dba257433562c3a5a33206ecb1157a74 ptex-src-3.1.2.tar.gz 120185
+MD5 d0c01d4114dde202e96c97b1a2ef8523 ptex-texmf-2.1.tar.gz 1864219
+MD5 a16f6bba227d55e79aeee46fbbd82d28 tetex-src-2.0.2.tar.gz 11745933
+MD5 d3bdb96f9077e43b2115d3cc471743b3 tetex-texmf-2.0.2.tar.gz 52424280
+MD5 a072a2196015caa15834522728a91a78 dvipsk-jpatch-p1.6.tar.gz 28637
+MD5 41cecbe1b660573fde1f13856e5ae344 dvipsk-vflib-1.2alpha.patch.tar.gz 17427
diff --git a/app-text/ptex/files/psfonts-ja.map b/app-text/ptex/files/psfonts-ja.map
new file mode 100644
index 000000000000..cc6c3232a48d
--- /dev/null
+++ b/app-text/ptex/files/psfonts-ja.map
@@ -0,0 +1,45 @@
+%
+% Japanese (JIS encoding)
+%
+rmlsl ".167 SlantFont" Ryumin-Light-H
+gbmsl ".167 SlantFont" GothicBBB-Medium-H
+%%
+rml Ryumin-Light-H <`min
+rmlv Ryumin-Light-V <`min
+gbm GothicBBB-Medium-H <`goth
+gbmv GothicBBB-Medium-V <`goth
+%%
+%rml Ryumin-Light-Ext-H
+%rmlv Ryumin-Light-Ext-V
+%gbm GothicBBB-Medium-Ext-H
+%gbmv GothicBBB-Medium-Ext-V
+%
+% Morisawa
+%
+ryumin-l Ryumin-Light-H
+ryumin-l-v Ryumin-Light-V
+gtbbb-m GothicBBB-Medium-H
+gtbbb-m-v GothicBBB-Medium-V
+futomin-b FutoMinA101-Bold-H
+futomin-b-v FutoMinA101-Bold-V
+futogo-b FutoGoB101-Bold-H
+futogo-b-v FutoGoB101-Bold-V
+jun101-l Jun101-Light-H
+jun101-l-v Jun101-Light-V
+%
+% ums package + virtual fonts
+%
+unimin Ryumin-Light-UniJIS-UCS2-H
+unigoth GothicBBB-Medium-UniJIS-UCS2-H
+%
+% utf package (S. Saito)
+%
+unijmin-h Ryumin-Light-UniJIS-UTF16-H
+unijmin-v Ryumin-Light-UniJIS-UTF16-V
+unijgoth-h GothicBBB-Medium-UniJIS-UTF16-H
+unijgoth-v GothicBBB-Medium-UniJIS-UTF16-V
+%%
+cidmin-h Ryumin-Light-Identity-H
+cidmin-v Ryumin-Light-Identity-V
+cidgoth-h GothicBBB-Medium-Identity-H
+cidgoth-v GothicBBB-Medium-Identity-V
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
new file mode 100644
index 000000000000..6ab71bc5b229
--- /dev/null
+++ b/app-text/ptex/files/tetex-2.0.2-dont-run-config.diff
@@ -0,0 +1,33 @@
+--- 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
new file mode 100644
index 000000000000..cc9f775e0e67
--- /dev/null
+++ b/app-text/ptex/files/tetex-2.0.2.diff
@@ -0,0 +1,47 @@
+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.2.ebuild b/app-text/ptex/ptex-3.1.2.ebuild
new file mode 100644
index 000000000000..36e17fb83186
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.2.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.2.ebuild,v 1.1 2003/07/26 16:14:06 usata Exp $
+
+inherit eutils flag-o-matic
+filter-flags "-fstack-protector"
+
+IUSE="cjk ncurses X libwww png"
+
+PTEX_TEXMF_PV=2.1
+TETEX_PV=2.0.2
+TETEX_TEXMF_PV=2.0.2
+
+S=${WORKDIR}/tetex-src-${TETEX_PV}
+PTEX_SRC="ptex-src-${PV}.tar.gz"
+PTEX_TEXMF="ptex-texmf-${PTEX_TEXMF_PV}.tar.gz"
+TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz"
+TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV}.tar.gz"
+
+DESCRIPTION="The ASCII publishing TeX distribution"
+SRC_PATH_PTEX=ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex
+SRC_PATH_TETEX=ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib
+SRC_URI="${SRC_PATH_PTEX}/tetex/${PTEX_SRC}
+ ${SRC_PATH_PTEX}/tetex/${PTEX_TEXMF}
+ ${SRC_PATH_TETEX}/${TETEX_SRC}
+ ${SRC_PATH_TETEX}/${TETEX_TEXMF}
+ cjk? ( ${SRC_PATH_PTEX}/dvips/dvipsk-jpatch-p1.6.tar.gz
+ mirror://gentoo/dvipsk-vflib-1.2alpha.patch.tar.gz )"
+HOMEPAGE="http://www.ascii.co.jp/pb/ptex/"
+
+KEYWORDS="~x86 ~alpha ~ppc ~sparc"
+SLOT="0"
+LICENSE="GPL-2 BSD"
+
+DEPEND="!virtual/tetex
+ sys-apps/ed
+ sys-libs/zlib
+ X? ( virtual/x11 )
+ png? ( >=media-libs/libpng-1.2.1 )
+ ncurses? ( sys-libs/ncurses )
+ libwww? ( >=net-libs/libwww-5.3.2-r1 )
+ cjk? ( =media-libs/vflib-2* )"
+RDEPEND="!virtual/tetex
+ >=dev-lang/perl-5.2
+ dev-util/dialog
+ cjk? ( =media-libs/vflib-2* )"
+PROVIDE="virtual/tetex-2.0.2"
+
+src_unpack() {
+
+ unpack ${TETEX_SRC}
+
+ mkdir ${S}/texmf; cd ${S}/texmf
+ unpack ${TETEX_TEXMF}
+ unpack ${PTEX_TEXMF}
+
+ cd ${S}/texk/web2c
+ unpack ${PTEX_SRC}
+
+ if [ `use cjk` ] ; then
+ cd ${S}/texk
+ unpack dvipsk-jpatch-p1.6.tar.gz
+ epatch dvipsk-5.92b-p1.6.patch
+ unpack dvipsk-vflib-1.2alpha.patch.tar.gz
+ epatch dvipsk-vflib-1.2alpha.patch
+ fi
+
+ cd ${S}
+ epatch ${FILESDIR}/tetex-2.0.2-dont-run-config.diff
+ epatch ${FILESDIR}/tetex-2.0.2.diff
+}
+
+src_compile() {
+
+ local myconf=""
+ use X \
+ && myconf="--with-x" \
+ || myconf="--without-x"
+
+ use libwww \
+ && myconf="${myconf} --with-system-wwwlib \
+ --with-libwww-include=/usr/include/w3c-libwww"
+
+ use png \
+ && myconf="${myconf} --with-system-pnglib"
+
+
+ use ncurses \
+ && myconf="${myconf} --with-system-ncurses"
+
+
+ # Does it make sense to compile the included libwww with mysql ?
+
+ einfo "Building teTeX"
+
+ econf --bindir=/usr/bin \
+ --datadir=${S} \
+ --without-texinfo \
+ --without-dialog \
+ --with-system-zlib \
+ --disable-multiplatform \
+ --with-epsfwin \
+ --with-mftalkwin \
+ --with-regiswin \
+ --with-tektronixwin \
+ --with-unitermwin \
+ --with-ps=gs \
+ --enable-ipc \
+ --with-etex \
+ --without-xdvik \
+ --without-dvipdfm \
+ ${myconf}
+
+ emake texmf=/usr/share/texmf || die "make teTeX failed"
+
+ cat <<-EOF>>${S}/texk/web2c/fmtutil.cnf
+
+ # Japanese pLaTeX:
+ ptex ptex - ptex.ini
+ platex ptex language.dat platex.ini
+ platex209 ptex language.dat plplain.ini
+ EOF
+
+ cd ${S}/texk/web2c/${P}; pwd
+ ./configure EUC || die "configure pTeX failed"
+
+ make programs || die "make pTeX failed"
+}
+
+src_install() {
+
+ dodir /usr/share/
+
+ einfo "Installing texmf..."
+ cp -Rv texmf ${D}/usr/share
+
+ # Install teTeX files
+ einfo "Installing teTeX..."
+ einstall bindir=${D}/usr/bin texmf=${D}/usr/share/texmf || die
+
+ # Install pTeX files
+ cd ${S}/texk/web2c/${P}
+ einfo "Installing pTeX..."
+ einstall bindir=${D}/usr/bin texmf=${D}/usr/share/texmf || die
+
+ if [ `use cjk` ] ; then
+ install -c ${FILESDIR}/psfonts-ja.map \
+ ${D}/usr/share/texmf/dvips/config
+ cat <<-EOF>> ${D}/usr/share/texmf/web2c/updmap.cfg
+
+ # Japanese fonts
+ MixedMap psfonts-ja.map
+ EOF
+ fi
+
+ cd ${S}
+
+ dodoc PROBLEMS README
+ docinto texk
+ dodoc texk/ChangeLog texk/README
+ docinto kpathesa
+ cd ${S}/texk/kpathsea
+ dodoc README* NEWS PROJECTS HIER
+ docinto dviljk
+ cd ${S}/texk/dviljk
+ dodoc AUTHORS README NEWS
+ docinto dvipsk
+ cd ${S}/texk/dvipsk
+ dodoc AUTHORS INSTALLATION ChangeLog README \
+ ../ChangeLog.jpatch ../README.jpatch README.vflib
+ docinto makeindexk
+ cd ${S}/texk/makeindexk
+ dodoc CONTRIB COPYING NEWS NOTES PORTING README
+ docinto ps2pkm
+ cd ${S}/texk/ps2pkm
+ dodoc ChangeLog CHANGES.type1 INSTALLATION README*
+ docinto web2c
+ cd ${S}/texk/web2c
+ dodoc AUTHORS ChangeLog NEWS PROJECTS README
+
+ #fix for conflicting readlink binary:
+ rm -f ${D}/bin/readlink
+ rm -f ${D}/usr/bin/readlink
+ #add /var/cache/fonts directory
+ dodir /var/cache/fonts
+
+ #fix for lousy upstream permisssions on /usr/share/texmf files
+ #NOTE: do not use fowners, as its not recursive ...
+ einfo "Fixing permissions..."
+ chown -R root.root ${D}/usr/share/texmf
+ dodir /etc/env.d/
+ echo 'CONFIG_PROTECT="/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/"' > ${D}/etc/env.d/98tetex
+}
+
+pkg_preinst() {
+
+ # Let's take care of config protecting.
+ einfo "Here I am!"
+}
+
+pkg_postinst() {
+
+ if [ $ROOT = "/" ]
+ then
+ einfo "Configuring teTeX..."
+ mktexlsr &>/dev/null
+ texlinks &>/dev/null
+ texconfig init &>/dev/null
+ texconfig confall &>/dev/null
+ texconfig font rw &>/dev/null
+ texconfig font vardir /var/cache/fonts &>/dev/null
+ texconfig font options varfonts &>/dev/null
+ updmap &>/dev/null
+ einfo "Generating format files..."
+ #fmtutil --missing &>/dev/null # This should generate all missing fmt files.
+ einfo ""
+ einfo "Use 'texconfig font ro' to disable font generation for users"
+ einfo ""
+ fi
+}
+