diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-10 17:50:50 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-10 17:50:50 +0000 |
commit | c5d4b2e77552967290ce0dbb4a34fcc16b22c8e3 (patch) | |
tree | 1f404e15cafec1dc04e44576106422ec49fbb7f6 /app-text/ptex | |
parent | Stable for HPPA (bug #309053). (diff) | |
download | gentoo-2-c5d4b2e77552967290ce0dbb4a34fcc16b22c8e3.tar.gz gentoo-2-c5d4b2e77552967290ce0dbb4a34fcc16b22c8e3.tar.bz2 gentoo-2-c5d4b2e77552967290ce0dbb4a34fcc16b22c8e3.zip |
Remove old wrt #319509 (leave only libpng14 compatible version in tree).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-text/ptex')
-rw-r--r-- | app-text/ptex/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/ptex/files/psfonts-ja.map | 45 | ||||
-rw-r--r-- | app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch | 13 | ||||
-rw-r--r-- | app-text/ptex/files/ptex-3.1.10_p20071203-gentoo.patch | 96 | ||||
-rw-r--r-- | app-text/ptex/ptex-3.1.10_p20071203.ebuild | 273 | ||||
-rw-r--r-- | app-text/ptex/ptex-3.1.10_p20090610.ebuild | 287 |
6 files changed, 7 insertions, 715 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog index ea9afcb3622e..738fe5b8d354 100644 --- a/app-text/ptex/ChangeLog +++ b/app-text/ptex/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/ptex # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.96 2010/07/10 17:28:49 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.97 2010/07/10 17:50:50 ssuominen Exp $ + + 10 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + -ptex-3.1.10_p20071203.ebuild, -ptex-3.1.10_p20090610.ebuild, + -files/ptex-3.1.10_p20071122-fmtutil-etex.patch, + -files/ptex-3.1.10_p20071203-gentoo.patch, -files/psfonts-ja.map: + Remove old wrt #319509 (leave only libpng14 compatible version in tree). 10 Jul 2010; Ra炭l Porcel <armin76@gentoo.org> ptex-3.1.10_p20090610-r1.ebuild: diff --git a/app-text/ptex/files/psfonts-ja.map b/app-text/ptex/files/psfonts-ja.map deleted file mode 100644 index 60ecf40a65bb..000000000000 --- a/app-text/ptex/files/psfonts-ja.map +++ /dev/null @@ -1,45 +0,0 @@ -% -% Japanese (JIS encoding) -% -rmlsl ".167 SlantFont" Ryumin-Light-H -gbmsl ".167 SlantFont" GothicBBB-Medium-H -%% -rml Ryumin-Light-H -rmlv Ryumin-Light-V -gbm GothicBBB-Medium-H -gbmv GothicBBB-Medium-V -%% -%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/ptex-3.1.10_p20071122-fmtutil-etex.patch b/app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch deleted file mode 100644 index 2f406fc50f14..000000000000 --- a/app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -Naur tetex-src-3.0.orig/texk/web2c/fmtutil.in tetex-src-3.0/texk/web2c/fmtutil.in ---- tetex-src-3.0.orig/texk/web2c/fmtutil.in 2005-02-06 09:27:46.000000000 +0900 -+++ tetex-src-3.0/texk/web2c/fmtutil.in 2007-11-30 01:39:55.000000000 +0900 -@@ -40,7 +40,8 @@ - # if you want babel support in tex: - tex tex - -translate-file=cp227.tcx tex.ini - @PETEX@latex pdfetex language.dat -translate-file=cp227.tcx *latex.ini --@PETEX@etex pdfetex language.def -translate-file=cp227.tcx *etex.ini -+@PETEX@etex etex language.def -etex -translate-file=cp227.tcx *etex.ini -+@PETEX@elatex etex language.def -translate-file=cp227.tcx *latex.ini - @PETEX@pdftex pdfetex - -translate-file=cp227.tcx *pdftex.ini - @PETEX@pdflatex pdfetex language.dat -translate-file=cp227.tcx *pdflatex.ini - @PETEX@pdfetex pdfetex language.def -translate-file=cp227.tcx *pdfetex.ini diff --git a/app-text/ptex/files/ptex-3.1.10_p20071203-gentoo.patch b/app-text/ptex/files/ptex-3.1.10_p20071203-gentoo.patch deleted file mode 100644 index f478b4640a64..000000000000 --- a/app-text/ptex/files/ptex-3.1.10_p20071203-gentoo.patch +++ /dev/null @@ -1,96 +0,0 @@ -diff -Naur ptetex3-20071203.orig/2extract-src.sh ptetex3-20071203/2extract-src.sh ---- ptetex3-20071203.orig/2extract-src.sh 2007-11-19 15:46:22.000000000 +0900 -+++ ptetex3-20071203/2extract-src.sh 2007-12-05 01:16:22.000000000 +0900 -@@ -147,29 +147,29 @@ - $CP $SRC/texk/dvipsk/* $SRC/texk/pdvipsk/ - $MKDIR $SRC/texk/pxdvik - $CP -r $SRC/texk/xdvik/* $SRC/texk/pxdvik/ -- P=p -+ DVIPSK_P=p - fi # "$JAPANESE" = "international" - ## for dvipsk - #tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${P}dvipsk --#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk --$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex --tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${P}dvipsk --cpatch $SRC/texk/${P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${P}dvipsk -+#cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${DVIPSK_P}dvipsk -+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex -+tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk -+cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${DVIPSK_P}dvipsk - ## disable installing 'config.ps' --$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.jp --$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in -+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.jp -+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in - ## disable psfonts_jp.map --#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${P}dvipsk/config.ps -+#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${DVIPSK_P}dvipsk/config.ps - #perlnoprint '$a=1 if /^# psfonts_jp.map/; $a=0 if /^# Info files/; --# print unless $a' $SRC/texk/${P}dvipsk/Makefile.in -+# print unless $a' $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in - - ## for xdvik --zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${P}xdvik -+zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${DVIPSK_P}xdvik - # fix for FC5 - perlprint 'print "#define NeedWidePrototypes 1\n" if /limits/' \ -- $SRC/texk/${P}xdvik/xdvi.h -+ $SRC/texk/${DVIPSK_P}xdvik/xdvi.h - # adjust X resource --cat <<EOF >> $SRC/texk/${P}xdvik/texmf/XDvi || exit 1 -+cat <<EOF >> $SRC/texk/${DVIPSK_P}xdvik/texmf/XDvi || exit 1 - - - !!! ------- added by ptetex3 ------- -diff -Naur ptetex3-20071203.orig/7font-search.sh ptetex3-20071203/7font-search.sh ---- ptetex3-20071203.orig/7font-search.sh 2007-12-03 00:43:41.000000000 +0900 -+++ ptetex3-20071203/7font-search.sh 2007-12-05 01:18:50.000000000 +0900 -@@ -51,6 +51,17 @@ - done - } - -+mksymlink_gentoo(){ -+ $MKDIR $TRUETYPE -+ fonts_dir=/usr/share/fonts/ -+ find $fonts_dir -maxdepth 1 -mindepth 1 -type d | while read font_path; do -+ if [ `find $font_path -maxdepth 1 -type f -iname '*.ttf' | wc -l` -gt 0 ]; then -+ font_name=${font_path/$fonts_dir/} -+ test -h ${TRUETYPE}/${font_name} && continue -+ $LN "${font_path}" "${TRUETYPE}/${font_name}" -+ fi -+ done -+} - - setrmlgbm() { - if test -n "$2"; then -@@ -105,7 +116,8 @@ - ### リンク名 検索ディレクトリ/ファイル - Acrobat4 /usr{,/local,/sfw}{,/lib}/Acrobat4/Resource/CMap - Acrobat5 /usr{,/local,/sfw}{,/lib}/Acrobat5/Resource/Font --Acrobat7 /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat7.0/Resource/CMap -+Acrobat7 /opt/Acrobat7/Resource/CMap -+Acrobat8 /opt/Adobe/Reader8/Resource/CMap - ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap - openwinja /usr/openwin/lib/locale/ja/X11/Resource/CMap - openwinko /usr/openwin/lib/locale/ko/X11/Resource/CMap -@@ -113,18 +125,7 @@ - openwintw /usr/openwin/lib/locale/zh_TW.BIG5/X11/Resource/CMap - EOF - --mksymlink $TRUETYPE <<EOF --### リンク名 検索ディレクトリ/ファイル --x11 /usr{,/local,/X11R6}/lib/X11/fonts/truetype --X11 /usr{,/local,/X11R6}/lib/X11/fonts/TrueType --X11TTF /usr{,/local,/X11R6}/lib/X11/fonts/TTF --openwin /usr/openwin/lib/locale/ja/X11/fonts/TT --truetype /usr/share/fonts/truetype --TTF /usr/share/fonts/TTF --ja /usr/share/fonts/ja/TrueType --japanese /usr/share/fonts/japanese/TrueType --QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType --EOF -+mksymlink_gentoo - - mksymlink $OPENTYPE <<EOF - ### リンク名 検索ディレクトリ/ファイル diff --git a/app-text/ptex/ptex-3.1.10_p20071203.ebuild b/app-text/ptex/ptex-3.1.10_p20071203.ebuild deleted file mode 100644 index 9b5acb648d8c..000000000000 --- a/app-text/ptex/ptex-3.1.10_p20071203.ebuild +++ /dev/null @@ -1,273 +0,0 @@ -# Copyright 1999-2010 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_p20071203.ebuild,v 1.12 2010/07/03 23:33:41 ssuominen 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 Xaw3d neXt iconv unicode" - -DEPEND="!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 - ) - )" - -S="${WORKDIR}/${PTETEX}" - -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}"/${P}-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 - 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 -} - -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 -} diff --git a/app-text/ptex/ptex-3.1.10_p20090610.ebuild b/app-text/ptex/ptex-3.1.10_p20090610.ebuild deleted file mode 100644 index 003624140eaf..000000000000 --- a/app-text/ptex/ptex-3.1.10_p20090610.ebuild +++ /dev/null @@ -1,287 +0,0 @@ -# Copyright 1999-2010 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_p20090610.ebuild,v 1.9 2010/07/03 23:33:41 ssuominen Exp $ - -# jmbreuer FOR DEV ONLY -RESTRICT="mirror test" - -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-${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-20090506" - -SRC_PATH_TETEX="http://www.ctan.org/tex-archive/obsolete/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" - -KEYWORDS="alpha amd64 arm hppa ia64 ppc ~ppc64 sh sparc x86" - -BUILD_DIR="${WORKDIR}/build/usr" - -LICENSE="GPL-2 BSD" -IUSE="X motif Xaw3d neXt iconv unicode" - -RDEPEND="!app-text/tetex - !<app-text/ptetex-3.1.9 - !app-text/dvipdfmx - !app-text/xdvik - !dev-texlive/texlive-basic - !dev-texlive/texlive-latex - !dev-texlive/texlive-latexrecommended - 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}" - -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}"/${P}-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 -STRIP=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 - toolkit="motif" - elif use neXt ; then - toolkit="neXtaw" - elif use Xaw3d ; then - toolkit="xaw3d" - else - toolkit="xaw" - fi - echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option - echo "export LDFLAGS=\"${LDFLAGS} $(freetype-config --libs)\"" >> "${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" - - # security bug #282874 - epatch "${FILESDIR}/CVE-2009-1284.patch" - - epatch "${FILESDIR}/${P}-getline.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}" \ - LD_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_LIBRARY_PATH}" \ - TEXMFMAIN="${BUILD_DIR}/share/texmf" \ - ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap -} - -src_test() { - PATH="${BUILD_DIR}/bin:${PATH}" \ - LD_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_LIBRARY_PATH}" \ - TEXMFMAIN="${BUILD_DIR}/share/texmf" \ - emake -j1 test || die "emake test failed" -} - -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 - 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 - insinto /usr/share/texmf/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/web2c/texmf.cnf.* - rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.* - find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f - - einfo "Installing texmf-update scripte ..." - dosbin "${FILESDIR}"/texmf-update - - dodoc ChangeLog* README* -} - -pkg_postinst() { - tetex-3_pkg_postinst - - elog - elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik." - elog - elog "To use proper Japanese font in dvips/dvipdfmx/xdvi/pdftex, you" - elog "needs to run updmap or updmap-sys w/ map. More deteil info about" - elog "this fonts central configuration can be available at following" - elog "ptetex Wiki:" - elog " http://tutimura.ath.cx/ptetex/?%A5%D5%A5%A9%A5%F3%A5%C8%A4%CE%BD%B8%C3%E6%B4%C9%CD%FD" - elog -} |