summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2008-01-18 16:29:06 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2008-01-18 16:29:06 +0000
commit85407a67e5c6c12e83543f2409b9d393675395df (patch)
treeae1f34417809b1be5233909439f8c236553ed27b /app-text
parentFixed dependency again. (diff)
downloadgentoo-2-85407a67e5c6c12e83543f2409b9d393675395df.tar.gz
gentoo-2-85407a67e5c6c12e83543f2409b9d393675395df.tar.bz2
gentoo-2-85407a67e5c6c12e83543f2409b9d393675395df.zip
Version bumped. Added app-arch/unzip to DEPEND, bug #206027.
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/ptex/ChangeLog9
-rw-r--r--app-text/ptex/files/digest-ptex-3.1.10_p2008010715
-rw-r--r--app-text/ptex/ptex-3.1.10_p20080107.ebuild282
3 files changed, 305 insertions, 1 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog
index ea1efeb2456e..34d10be54784 100644
--- a/app-text/ptex/ChangeLog
+++ b/app-text/ptex/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/ptex
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.76 2008/01/11 21:43:40 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.77 2008/01/18 16:29:06 matsuu Exp $
+
+*ptex-3.1.10_p20080107 (18 Jan 2008)
+
+ 18 Jan 2008; MATSUU Takuto <matsuu@gentoo.org>
+ +ptex-3.1.10_p20080107.ebuild:
+ Version bumped.
+ Added app-arch/unzip to DEPEND, bug #206027.
11 Jan 2008; Fabian Groffen <grobian@gentoo.org> ptex-3.1.5-r1.ebuild:
Dropped ppc-macos keyword, see you in prefix
diff --git a/app-text/ptex/files/digest-ptex-3.1.10_p20080107 b/app-text/ptex/files/digest-ptex-3.1.10_p20080107
new file mode 100644
index 000000000000..64c498faeeb4
--- /dev/null
+++ b/app-text/ptex/files/digest-ptex-3.1.10_p20080107
@@ -0,0 +1,15 @@
+MD5 71dfc6c1422ffb3fc2d538e2ab92fbdf ptetex-cmap-20051117.tar.gz 4061363
+RMD160 a9b4468979efc8b65161ce7deb7cd00d93dfff06 ptetex-cmap-20051117.tar.gz 4061363
+SHA256 34e50c63cba5aa1abfb1e4eece95aff9845c0f0c3115b65807670a2579a5a032 ptetex-cmap-20051117.tar.gz 4061363
+MD5 0effbf1888ec446bc8ee986f3355bf40 ptetex3-20080107.tar.gz 6233405
+RMD160 b4fbd510a9de0ee3f7a8753608d8b2dca3203ea3 ptetex3-20080107.tar.gz 6233405
+SHA256 7172f7fda3b8eff6fe162f4f0f6d3569d6d0301f9e8606be2eaf23e173a56eb3 ptetex3-20080107.tar.gz 6233405
+MD5 f1c722c61acc20fea92d66c927eb5f99 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+RMD160 7a63ebf1ebce0dbd7d48d9dbef2ea663ba187871 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+SHA256 af6b92ee2640e754fc3e0b55e8aa7c8436d655f0d38e5afdd3badf5ee5f55c93 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+MD5 944a4641e79e61043fdaf8f38ecbb4b3 tetex-src-3.0.tar.gz 12749314
+RMD160 15a139f5f36993e4ed3583260e175cfb13ce7bcc tetex-src-3.0.tar.gz 12749314
+SHA256 9c0f7eaeb5ba6dc6f66433404d264941bf95cded2fa798b1f7a9dd580c21649b tetex-src-3.0.tar.gz 12749314
+MD5 ed9d30d9162d16ac8d5065cde6e0f6fa tetex-texmf-3.0po.tar.gz 91402377
+RMD160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 tetex-texmf-3.0po.tar.gz 91402377
+SHA256 6c3b8fa619749cbb28ca0f8847e56773d13e0bb92f1ea34287420950373640c2 tetex-texmf-3.0po.tar.gz 91402377
diff --git a/app-text/ptex/ptex-3.1.10_p20080107.ebuild b/app-text/ptex/ptex-3.1.10_p20080107.ebuild
new file mode 100644
index 000000000000..32458b619dea
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.10_p20080107.ebuild
@@ -0,0 +1,282 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild,v 1.1 2008/01/18 16:29:06 matsuu Exp $
+
+TETEX_PV=3.0_p1
+
+inherit eutils tetex-3 flag-o-matic autotools multilib
+
+SMALL_PV="${TETEX_PV/_p*}"
+TETEX_TEXMF_PV="${SMALL_PV}"
+TETEX_S="${WORKDIR}/tetex-src-${SMALL_PV}"
+
+DESCRIPTION="TeX distribution teTeX with Japanese patch collection 'ptetex3'"
+HOMEPAGE="http://www.nn.iij4u.or.jp/~tutimura/tex/ptetex.html"
+
+#TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz"
+TETEX_SRC="tetex-src-${SMALL_PV}.tar.gz"
+TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}"
+TETEX_TEXMF_SRC="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}po.tar.gz"
+PTETEX="ptetex3-${PV/*_p}"
+PTETEX_CMAP="ptetex-cmap-20051117"
+
+SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib"
+SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC}
+ ${SRC_PATH_TETEX}/${TETEX_TEXMF_SRC}
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/${PTETEX}.tar.gz
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz
+ mirror://gentoo/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2"
+# mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+
+BUILD_DIR="${WORKDIR}/build/usr"
+
+LICENSE="GPL-2 BSD"
+IUSE="X motif lesstif Xaw3d neXt iconv unicode"
+
+RDEPEND="!app-text/tetex
+ !<app-text/ptetex-3.1.9
+ !app-text/dvipdfmx
+ !app-text/xdvik
+ media-libs/t1lib
+ media-libs/gd
+ X? (
+ >=media-libs/freetype-2.3.4
+ || (
+ media-fonts/ja-ipafonts
+ media-fonts/ipamonafont
+ media-fonts/vlgothic
+ media-fonts/sazanami
+ media-fonts/kochi-substitute
+ )
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${PTETEX}"
+
+# Sorry this provides tetex again...
+PROVIDE="virtual/tetex"
+
+src_unpack() {
+ #tetex-3_src_unpack
+ mkdir -p "${WORKDIR}/${TETEX_TEXMF}"
+ cd "${WORKDIR}/${TETEX_TEXMF}"
+ unpack ${TETEX_TEXMF_SRC}
+ cd "${WORKDIR}"
+ unpack ${TETEX_SRC}
+ cd "${WORKDIR}"
+ unpack ${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2
+ unpack ${PTETEX}.tar.gz
+ unpack ${PTETEX_CMAP}.tar.gz
+ echo ">>> Unpacking jis and morisawa fonts ..."
+ tar xzf "${WORKDIR}"/${PTETEX}/archive/jis.tar.gz -C "${WORKDIR}" || die
+ tar xzf "${WORKDIR}"/${PTETEX}/archive/morisawa.tar.gz -C "${WORKDIR}" || die
+
+ # Gentoo box reserves variable ${P}!!
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-3.1.10_p20071203-gentoo.patch
+
+ cat <<EOF > "${S}"/my_option
+SRC_DIR="${WORKDIR}"
+TMP_PREFIX="${BUILD_DIR}"
+PREFIX=/usr
+DATADIR=/usr/share
+TEXMFDIST="${WORKDIR}/${TETEX_TEXMF}"
+TEXSRC_EXTRACTED="${WORKDIR}"
+#make_option vartexfonts=/var/lib/texmf
+make_option vartexfonts="${T}/texfonts"
+make_option CC="$(tc-getCC)"
+make_option CXX="$(tc-getCXX)"
+JAPANESE=international
+XDVI=echo
+PXDVI=echo
+PLATEX209=no
+conf_option --without-dviljk
+conf_option --without-dvipng
+conf_option --without-info
+conf_option --without-texi2html
+conf_option --without-texinfo
+
+conf_option --with-system-zlib
+conf_option --with-system-pnglib
+conf_option --with-system-gd
+conf_option --with-system-ncurses
+conf_option --with-system-t1lib
+conf_option --enable-shared
+EOF
+
+ if use iconv ; then
+ echo "conf_option --enable-kanji-iconv" >> "${S}"/my_option
+ fi
+
+ if use unicode ; then
+ echo "KANJI_CODE=UTF8" >> "${S}"/my_option
+ else
+ echo "KANJI_CODE=EUC" >> "${S}"/my_option
+ fi
+
+ # copied from tetex-3.eclass and modified
+ if use X ; then
+ if use motif ; then
+ append-ldflags $(motif-config --libs)
+ export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)"
+ toolkit="motif"
+ elif use neXt ; then
+ toolkit="neXtaw"
+ elif use Xaw3d ; then
+ toolkit="xaw3d"
+ else
+ toolkit="xaw"
+ fi
+ append-ldflags $(freetype-config --libs)
+ echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option
+ echo "conf_option --with-xdvi-x-toolkit=${toolkit}" >> "${S}"/my_option
+ else
+ echo "conf_option --without-x" >> "${S}"/my_option
+ echo "conf_option --without-xdvik" >> "${S}"/my_option
+ echo "conf_option --without-pxdvik" >> "${S}"/my_option
+ fi
+
+ cd "${S}"
+ unset TEXMFMAIN TEXMF HOME
+ emake -j1 x || die "emake x failed"
+
+ cd "${TETEX_S}"
+
+ epatch "${FILESDIR}/tetex-${SMALL_PV}-kpathsea-pic.patch"
+
+ # bug 85404
+ epatch "${FILESDIR}/${PN}-3.1.10_p20071122-epstopdf-wrong-rotation.patch"
+
+ # ptetex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-amd64-xdvik-wp.patch"
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-mptest.patch"
+
+ #bug 98029
+ # no need
+ #epatch "${FILESDIR}/${PN}-3.1.10_p20071122-fmtutil-etex.patch"
+
+ #bug 115775
+ # ptex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-vulnerabilities.patch"
+
+ # bug 94860
+ epatch "${FILESDIR}/${PN}-3.1.10_p20071122-pdftosrc-install.patch"
+
+ # bug 126918
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-create-empty-files.patch"
+
+ # bug 94901
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-dvipdfm-timezone.patch"
+
+ # security bug #170861
+ # ptetex included
+ # epatch "${FILESDIR}/tetex-${TETEX_PV}-CVE-2007-0650.patch"
+
+ # security bug #188172
+ # ptetex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-CVE-2007-3387.patch"
+
+ # security bug #198238
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-dvips_bufferoverflow.patch"
+
+ # securty bug #196735
+ epatch "${FILESDIR}/xpdf-3.02pl2.patch"
+
+ # Construct a Gentoo site texmf directory
+ # that overlays the upstream supplied
+ # target not found
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-texmf-site.patch"
+
+ # security bug #198238
+ epatch "${WORKDIR}/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch"
+
+ # security bug #198238 and bug #193437
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-t1lib-SA26241_buffer_overflow.patch"
+
+ cd "${TETEX_S}/texk/dviljk"
+ eautoreconf
+}
+
+src_compile() {
+ unset TEXMFMAIN TEXMF HOME
+
+ emake -j1 c || die "emake c failed"
+ emake -j1 macro || die "emake macro failed"
+ emake -j1 otf || die "emake otf failed"
+ emake -j1 fonty || die "emake fonty failed"
+ emake -j1 babel || die "emake babel failed"
+
+ einfo "Setting ptetex-cmap ..."
+ cd "${WORKDIR}/${PTETEX_CMAP}"
+ PATH="${BUILD_DIR}/bin:$PATH" ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap
+}
+
+src_test() {
+ emake -j1 test || die "emake test failed"
+}
+
+src_install() {
+ #tetex-3_src_install
+ einfo "Installing ptetex3 binaries ..."
+ dobin "${BUILD_DIR}"/bin/*
+ dolib "${BUILD_DIR}"/lib/*
+
+ einfo "Installing /usr/include/* files ..."
+ insinto /usr/include
+ doins -r "${BUILD_DIR}"/include/*
+
+ einfo "Installing /usr/share/* files ..."
+ insinto /usr/share
+ #doins -r "${BUILD_DIR}"/share/*
+ cp -dr "${BUILD_DIR}"/share/* "${D}"/usr/share
+
+ einfo "Installing document files ..."
+ doman "${BUILD_DIR}"/man/*/*
+ doinfo "${BUILD_DIR}"/info/*
+
+ einfo "Installing jis and morisawa fonts ..."
+ insinto /usr/share/texmf/fonts/tfm
+ doins -r "${WORKDIR}"/jis/tfm/* || die "installing jis/tfm failed"
+ doins -r "${WORKDIR}"/morisawa/tfm/* || die "installing morisawa/tfm failed"
+
+ einfo "Installing texmf files ..."
+ find "${WORKDIR}"/${TETEX_TEXMF} -maxdepth 1 -mindepth 1 -type f | xargs rm -f
+ insinto /usr/share/texmf
+ doins -r "${WORKDIR}"/${TETEX_TEXMF}/*
+
+ einfo "Installing other files ..."
+ insinto /usr/share/texmf/fonts/map/dvips/tetex
+ doins "${WORKDIR}"/${TETEX_S}/texk/pdvipsk/psfonts_jp.map
+ #insinto /var/lib/texmf/web2c
+ insinto /usr/share/texmf/web2c
+ doins -r "${BUILD_DIR}"/share/texmf-config/web2c/*
+ doins -r "${BUILD_DIR}"/share/texmf-var/web2c/*.fmt
+
+ einfo "Removing unnecessary files ..."
+ rm -r "${D}"/usr/share/texmf/doc
+ #rm -r "${D}"/usr/share/texmf-config
+ #rm -r "${D}"/usr/share/texmf-var
+ rm -r "${D}"/usr/share/texmf/web2c/texmf.cnf.*
+ rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.*
+ rm -r "${D}"/usr/info/dir
+ find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f
+
+ einfo "Installing texmf-update scripte ..."
+ dosbin "${FILESDIR}"/texmf-update
+ #einfo "Making ls-R files ..."
+ #TEXMF="${D}"/usr/share/texmf "${D}"/usr/bin/mktexlsr || die
+
+ dodoc ChangeLog* README*
+}
+
+pkg_postinst() {
+ tetex-3_pkg_postinst
+
+ elog
+ elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik."
+ #elog "You also need to emerge app-text/dvipdfmx to convert dvi into PDF."
+ elog
+}