diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2003-12-10 05:14:27 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2003-12-10 05:14:27 +0000 |
commit | 5220adb20c7ff6d0425854ce8f54237fe0e7ee7e (patch) | |
tree | 95098b4055813a797f2727c91931081b5946fe82 /app-text/tetex | |
parent | disable man2 manpages (diff) | |
download | gentoo-2-5220adb20c7ff6d0425854ce8f54237fe0e7ee7e.tar.gz gentoo-2-5220adb20c7ff6d0425854ce8f54237fe0e7ee7e.tar.bz2 gentoo-2-5220adb20c7ff6d0425854ce8f54237fe0e7ee7e.zip |
remove crufty ebuilds
Diffstat (limited to 'app-text/tetex')
-rw-r--r-- | app-text/tetex/Manifest | 26 | ||||
-rw-r--r-- | app-text/tetex/files/digest-tetex-1.0.7-r12 | 16 | ||||
-rw-r--r-- | app-text/tetex/files/digest-tetex-2.0.2 | 15 | ||||
-rw-r--r-- | app-text/tetex/files/digest-tetex-2.0.2-r2 | 3 | ||||
-rw-r--r-- | app-text/tetex/tetex-1.0.7-r12.ebuild | 194 | ||||
-rw-r--r-- | app-text/tetex/tetex-2.0.2-r2.ebuild | 188 | ||||
-rw-r--r-- | app-text/tetex/tetex-2.0.2.ebuild | 192 |
7 files changed, 10 insertions, 624 deletions
diff --git a/app-text/tetex/Manifest b/app-text/tetex/Manifest index 94a6bcf28ba2..258b6b611c04 100644 --- a/app-text/tetex/Manifest +++ b/app-text/tetex/Manifest @@ -1,22 +1,16 @@ -MD5 131a1ca4320193b37566ec18b0cb8600 ChangeLog 9784 -MD5 f86349dda2b7ede76ce7a816265d9fcb tetex-1.0.7-r12.ebuild 4938 -MD5 cb1874929425ae8f67807c605ede300a tetex-2.0.2.ebuild 4765 -MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164 MD5 1bfbe142b2aaed750bcc105fcb4c995b tetex-1.0.7-r13.ebuild 4670 MD5 0fe68b54ad7a367f7b2964e8f5a8a672 tetex-2.0.2-r1.ebuild 4526 -MD5 5484eab2f44a7a7ced1bf8fd5ad54f8d tetex-2.0.2-r2.ebuild 4655 +MD5 131a1ca4320193b37566ec18b0cb8600 ChangeLog 9784 +MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164 MD5 fa8054eb4ada3355d52349280e73f85d tetex-2.0.2-r3.ebuild 365 -MD5 eb29daccee75f5f007fa30e18ff0ccb8 files/digest-tetex-1.0.7-r12 1132 -MD5 b8cb43e3d6ac916e7d69e843b43aafad files/digest-tetex-2.0.2 1068 -MD5 4cefd677082951973c64809e5368874f files/teTeX-1.0-dvips.diff 389 -MD5 f05081952fcd0ac7d776c04242a3f7d1 files/teTeX-1.0-gentoo.diff 1176 -MD5 cc0a84367e8c96d736ca42ba162594dd files/teTeX-1.0.dif 50852 -MD5 5fd1b7e5bf4c4d6705e7c365995d057d files/tetex-1.0.7-dont-run-config.diff 1305 -MD5 7c6b2802aa5d3ea38bcc94a91c4ac54e files/digest-tetex-2.0.2-r3 214 -MD5 d1ce2613a3498412c7dde5509a066c9d files/tetex-1.0.7-picins.diff 281 -MD5 d17a70a33444ac4f10849dfb55af858c files/digest-tetex-2.0.2-r2 214 -MD5 476a1c8128397ff7a381c43fe723a522 files/tetex-2.0.2-dont-run-config.diff 1243 MD5 50c560b391869be15a001b738e0b7bfe files/tetex-2.0.2.diff 2010 -MD5 e25ee6dd9708723dc411b9acc3ec33db files/digest-tetex-1.0.7-r13 274 MD5 d17a70a33444ac4f10849dfb55af858c files/digest-tetex-2.0.2-r1 214 +MD5 7c6b2802aa5d3ea38bcc94a91c4ac54e files/digest-tetex-2.0.2-r3 214 +MD5 4cefd677082951973c64809e5368874f files/teTeX-1.0-dvips.diff 389 MD5 a57ac0ec7f0c9a136cb087abc8d86c46 files/tetex-1.0.7-dvips-secure.diff 1693 +MD5 d1ce2613a3498412c7dde5509a066c9d files/tetex-1.0.7-picins.diff 281 +MD5 5fd1b7e5bf4c4d6705e7c365995d057d files/tetex-1.0.7-dont-run-config.diff 1305 +MD5 cc0a84367e8c96d736ca42ba162594dd files/teTeX-1.0.dif 50852 +MD5 f05081952fcd0ac7d776c04242a3f7d1 files/teTeX-1.0-gentoo.diff 1176 +MD5 e25ee6dd9708723dc411b9acc3ec33db files/digest-tetex-1.0.7-r13 274 +MD5 476a1c8128397ff7a381c43fe723a522 files/tetex-2.0.2-dont-run-config.diff 1243 diff --git a/app-text/tetex/files/digest-tetex-1.0.7-r12 b/app-text/tetex/files/digest-tetex-1.0.7-r12 deleted file mode 100644 index ec7da6ccac23..000000000000 --- a/app-text/tetex/files/digest-tetex-1.0.7-r12 +++ /dev/null @@ -1,16 +0,0 @@ -MD5 50c560b391869be15a001b738e0b7bfe /files/tetex-2.0.2.diff 2010 -MD5 a57ac0ec7f0c9a136cb087abc8d86c46 /files/tetex-1.0.7-r12-gentoo.diff 1693 -MD5 4cefd677082951973c64809e5368874f /files/teTeX-1.0-dvips.diff 389 -MD5 476a1c8128397ff7a381c43fe723a522 /files/tetex-2.0-dont-run-config.diff 1243 -MD5 5fd1b7e5bf4c4d6705e7c365995d057d /files/tetex-1.0.7-dont-run-config.diff 1305 -MD5 cc0a84367e8c96d736ca42ba162594dd /files/teTeX-1.0.dif 50852 -MD5 f7a5360e9a44fa9ad6d14bd00127e6a0 /files/texmf.dif 37948 -MD5 f05081952fcd0ac7d776c04242a3f7d1 /files/teTeX-1.0-gentoo.diff 1176 -MD5 50c560b391869be15a001b738e0b7bfe /files/tetex-2.0.diff 2010 -MD5 a57ac0ec7f0c9a136cb087abc8d86c46 /files/tetex-1.0.7-r11-gentoo.diff 1693 -MD5 476a1c8128397ff7a381c43fe723a522 /files/tetex-2.0.2-dont-run-config.diff 1243 -MD5 68ede01c89e3b745b675833855f8c730 /tetex-1.0.7-r12.ebuild 4890 -MD5 2c6da2a45096c2fdc41b8de6a8af1a52 teTeX-src-1.0.7.tar.gz 8040192 -MD5 984530be5cc0dd73738de9d0067bc130 teTeX-texmf-gg-1.0.3.tar.bz2 35037546 -MD5 12925188fdadcd6a970c21bba3269fc2 ec-ready-mf-tfm.tar.gz 386630 -MD5 37393316b285926214c247acd55db743 teTeX-french.tar.gz 268161 diff --git a/app-text/tetex/files/digest-tetex-2.0.2 b/app-text/tetex/files/digest-tetex-2.0.2 deleted file mode 100644 index 323e32818ddb..000000000000 --- a/app-text/tetex/files/digest-tetex-2.0.2 +++ /dev/null @@ -1,15 +0,0 @@ -MD5 50c560b391869be15a001b738e0b7bfe /files/tetex-2.0.2.diff 2010 -MD5 a57ac0ec7f0c9a136cb087abc8d86c46 /files/tetex-1.0.7-r12-gentoo.diff 1693 -MD5 4cefd677082951973c64809e5368874f /files/teTeX-1.0-dvips.diff 389 -MD5 476a1c8128397ff7a381c43fe723a522 /files/tetex-2.0-dont-run-config.diff 1243 -MD5 5fd1b7e5bf4c4d6705e7c365995d057d /files/tetex-1.0.7-dont-run-config.diff 1305 -MD5 cc0a84367e8c96d736ca42ba162594dd /files/teTeX-1.0.dif 50852 -MD5 f7a5360e9a44fa9ad6d14bd00127e6a0 /files/texmf.dif 37948 -MD5 f05081952fcd0ac7d776c04242a3f7d1 /files/teTeX-1.0-gentoo.diff 1176 -MD5 50c560b391869be15a001b738e0b7bfe /files/tetex-2.0.diff 2010 -MD5 a57ac0ec7f0c9a136cb087abc8d86c46 /files/tetex-1.0.7-r11-gentoo.diff 1693 -MD5 476a1c8128397ff7a381c43fe723a522 /files/tetex-2.0.2-dont-run-config.diff 1243 -MD5 7c9ca5a72f44ef840e4d90cd90184936 /tetex-2.0.2.ebuild 4531 -MD5 a16f6bba227d55e79aeee46fbbd82d28 tetex-src-2.0.2.tar.gz 11745933 -MD5 40d4b2c5582eccbee4b6ec692c3cc253 tetex-texmfsrc-2.0.2.tar.gz 22909537 -MD5 d3bdb96f9077e43b2115d3cc471743b3 tetex-texmf-2.0.2.tar.gz 52424280 diff --git a/app-text/tetex/files/digest-tetex-2.0.2-r2 b/app-text/tetex/files/digest-tetex-2.0.2-r2 deleted file mode 100644 index 235f58e8e41f..000000000000 --- a/app-text/tetex/files/digest-tetex-2.0.2-r2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 a16f6bba227d55e79aeee46fbbd82d28 tetex-src-2.0.2.tar.gz 11745933 -MD5 40d4b2c5582eccbee4b6ec692c3cc253 tetex-texmfsrc-2.0.2.tar.gz 22909537 -MD5 d3bdb96f9077e43b2115d3cc471743b3 tetex-texmf-2.0.2.tar.gz 52424280 diff --git a/app-text/tetex/tetex-1.0.7-r12.ebuild b/app-text/tetex/tetex-1.0.7-r12.ebuild deleted file mode 100644 index 77bbd3a8f74b..000000000000 --- a/app-text/tetex/tetex-1.0.7-r12.ebuild +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-1.0.7-r12.ebuild,v 1.16 2003/10/24 18:34:49 usata Exp $ - -inherit flag-o-matic -filter-flags "-fstack-protector" - -TEXMFSRC="teTeX-texmf-gg-1.0.3.tar.bz2" -S=${WORKDIR}/teTeX-1.0 - -DESCRIPTION="a complete TeX distribution" -SRC_URI="ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/1.0/distrib/sources/teTeX-src-${PV}.tar.gz - ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/contrib/ghibo/${TEXMFSRC} - mirror://gentoo/ec-ready-mf-tfm.tar.gz - mirror://teTeX-french.tar.gz" -HOMEPAGE="http://tug.org/teTeX/" - -KEYWORDS="x86 ppc sparc alpha hppa" -SLOT="0" -LICENSE="GPL-2" -IUSE="ncurses X libwww png zlib" - -DEPEND="!app-text/ptex - sys-apps/ed - X? ( virtual/x11 ) - png? ( >=media-libs/libpng-1.2.1 ) - ncurses? ( sys-libs/ncurses ) - libwww? ( >=net-libs/libwww-5.3.2-r1 ) - zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND} - >=dev-lang/perl-5.2 - dev-util/dialog" -PROVIDE="virtual/tetex" - -src_unpack() { - unpack teTeX-src-${PV}.tar.gz - - cd ${S} - patch -p1 < ${FILESDIR}/${P}-dvips-secure.diff - - mkdir ${S}/texmf - cd ${S}/texmf - umask 022 - echo ">>> Unpacking ${TEXMFSRC}" - tar --no-same-owner -xjf ${DISTDIR}/${TEXMFSRC} || die - echo ">>> Unpacking ec-ready-mf-tfm.tar.gz" - tar --no-same-owner -xzf ${DISTDIR}/ec-ready-mf-tfm.tar.gz -C .. || die - echo ">>> Unpacking teTeX-french.tar.gz" - tar --no-same-owner -xzf ${DISTDIR}/teTeX-french.tar.gz || die - - # Fixes from way back ... not sure even Achim will - # still know why :/ - cd ${WORKDIR} - patch -p0 < ${FILESDIR}/teTeX-1.0-gentoo.diff || die - cd ${S} - patch -p0 < ${FILESDIR}/teTeX-1.0.dif || die - - # Do not run config stuff - patch -p1 < ${FILESDIR}/${P}-dont-run-config.diff || die - - # Fix for dvips to print directly. - patch -p1 < ${FILESDIR}/teTeX-1.0-dvips.diff || die - - # Fix picins.sty - patch -p1 < ${FILESDIR}/${P}-picins.diff || die - - # Fix problem where the *.fmt files are not generated due to the LaTeX - # source being older than a year. - local x - for x in `find ${S}/texmf/ -type f -name '*.ini'` - do - cp ${x} ${x}.orig - sed -e '1i \\scrollmode' ${x}.orig > ${x} - rm -f ${x}.orig - done - - # IMPORTANT! If you're having *.fmt problems, do this: - # fmtutil --all - # after the merge. -} - -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" - - use zlib \ - && myconf="${myconf} --with-system-zlib" - - econf \ - --without-texinfo \ - --without-dialog \ - --disable-multiplatform \ - --with-epsfwin \ - --with-mftalkwin \ - --with-regiswin \ - --with-tektronixwin \ - --with-unitermwin \ - --with-ps=gs \ - --enable-ipc \ - --with-etex \ - ${myconf} || die "econf failed" - - # emake seems to not work (18 Jan 2003 agriffis) - make -} - -src_install() { - - dodir /usr/share/ - # Install texmf files - einfo "Installing texmf..." - cp -Rv texmf ${D}/usr/share || die "cp -Rv texmf failed" - - einstall \ - texmf=${D}/usr/share/texmf \ - texmfmain=${D}/usr/share/texmf \ - mandir=${D}/usr/share/man/man1 \ - || die "einstall failed" - - 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 ChangeLog INSTALLATION README - 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 - docinto xdvik - cd ${S}/texk/xdvik - dodoc BUGS FAQ 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 -} - -pkg_postinst() { - - if [ $ROOT = "/" ] - then - einfo "Configuring teTeX..." - mktexlsr &>/dev/null - texlinks &>/dev/null - texconfig init &>/dev/null - texconfig confall &>/dev/null - texconfig font vardir /var/cache/fonts &>/dev/null - - # Fix bug 13789; this should really be done by texconfig init - # but oh well, it will probably be fixed by 2.0, right? ;-) - # (18 Jan 2003 agriffis) - ( cd /var/lib/texmf/web2c; inimf mf; ) &>/dev/null - - einfo "Generating format files..." - fmtutil --missing &>/dev/null # This should generate all missing fmt files. - - echo - einfo "Use 'texconfig font rw' to allow all users to generate fonts." - echo - fi -} - diff --git a/app-text/tetex/tetex-2.0.2-r2.ebuild b/app-text/tetex/tetex-2.0.2-r2.ebuild deleted file mode 100644 index e2a5c9be3970..000000000000 --- a/app-text/tetex/tetex-2.0.2-r2.ebuild +++ /dev/null @@ -1,188 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-2.0.2-r2.ebuild,v 1.2 2003/11/12 21:49:13 usata Exp $ - -inherit eutils -filter-flags "-fstack-protector" - -S=${WORKDIR}/tetex-src-${PV} -TETEXSRC="${PN}-src-${PV}.tar.gz" -TEXMFSRC="${PN}-texmfsrc-${PV}.tar.gz" -TEXMF="${PN}-texmf-${PV}.tar.gz" - -DESCRIPTION="a complete TeX distribution" -SRC_URI="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TETEXSRC} - ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMFSRC} - ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMF}" -HOMEPAGE="http://tug.org/teTeX/" - -KEYWORDS="~ia64 ~x86 ~ppc ~sparc ~alpha ~amd64" -SLOT="0" -LICENSE="GPL-2" -IUSE="X" - -DEPEND="!app-text/ptex - !app-text/cstetex - sys-apps/ed - sys-libs/zlib - X? ( virtual/x11 ) - >=media-libs/libpng-1.2.1 - sys-libs/ncurses - >=net-libs/libwww-5.3.2-r1" - -RDEPEND="${DEPEND} - >=dev-lang/perl-5.2 - dev-util/dialog" - -PROVIDE="virtual/tetex" - -src_unpack() { - unpack ${TETEXSRC} - - cd ${WORKDIR} - mkdir ${S}/texmf - cd ${S}/texmf - umask 022 - pwd - einfo "Unpacking ${TEXMFSRC}" - tar --no-same-owner -xzf ${DISTDIR}/${TEXMFSRC} || die - - einfo "Unpacking ${TEXMF}" - tar --no-same-owner -xzf ${DISTDIR}/${TEXMF} || die - - # Do not run config. Also fix local texmf tree. - cd ${S} - epatch ${FILESDIR}/${P}-dont-run-config.diff - epatch ${FILESDIR}/${P}.diff - - # fix up misplaced listings.sty in the 2.0.2 archive. - # this should be fixed in the next release <obz@gentoo.org> - mv texmf/source/latex/listings/listings.sty texmf/tex/latex/listings/ - - # need to fix up the hyperref driver, see bug #31967 - sed -i -e "/providecommand/s/hdvips/hypertex/" \ - ${S}/texmf/tex/latex/config/hyperref.cfg - - -} - -src_compile() { - - local myconf="" - use X \ - && myconf="--with-x" \ - || myconf="--without-x" - - ./configure --host=${CHOST} \ - --prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --datadir=${S} \ - --with-system-wwwlib \ - --with-libwww-include=/usr/include/w3c-libwww \ - --with-system-ncurses \ - --with-system-pnglib \ - --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 \ - ${myconf} || die - - make texmf=/usr/share/texmf || die -} - -src_install() { - - dodir /usr/share/ - # Install texmf files - einfo "Installing texmf..." - cp -Rv texmf ${D}/usr/share - - make prefix=${D}/usr \ - bindir=${D}/usr/bin \ - datadir=${D}/usr/share \ - mandir=${D}/usr/share/man \ - infodir=${D}/usr/share/info \ - texmf=${D}/usr/share/texmf \ - install || die - - 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 ChangeLog INSTALLATION README - 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 - docinto xdvik - cd ${S}/texk/xdvik - dodoc BUGS FAQ 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/"' > ${D}/etc/env.d/98tetex -} - -pkg_preinst() { - if [ -d "/usr/share/texmf/dvipdfm/config" ] - then - ewarn "Removing /usr/share/texmf/dvipdfm/config/" - rm -rf /usr/share/texmf/dvipdfm/config - fi - - # 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 - einfo "Generating format files..." - fmtutil --missing &>/dev/null # This should generate all missing fmt files. - echo - einfo "Use 'texconfig font ro' to disable font generation for users" - echo - fi -} - diff --git a/app-text/tetex/tetex-2.0.2.ebuild b/app-text/tetex/tetex-2.0.2.ebuild deleted file mode 100644 index 56c0d703b16e..000000000000 --- a/app-text/tetex/tetex-2.0.2.ebuild +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-2.0.2.ebuild,v 1.13 2003/11/12 21:49:13 usata Exp $ - -inherit eutils flag-o-matic -filter-flags "-fstack-protector" - -S=${WORKDIR}/tetex-src-${PV} -TETEXSRC="tetex-src-${PV}.tar.gz" -TEXMFSRC="tetex-texmfsrc-${PV}.tar.gz" -TEXMF="tetex-texmf-${PV}.tar.gz" - -DESCRIPTION="a complete TeX distribution" -SRC_URI="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TETEXSRC} - ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMFSRC} - ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMF}" -HOMEPAGE="http://tug.org/teTeX/" - -KEYWORDS="x86 ppc sparc alpha amd64" -SLOT="0" -LICENSE="GPL-2" -IUSE="ncurses X libwww png" - -DEPEND="!app-text/ptex - !app-text/cstetex - 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 )" -RDEPEND="${DEPEND} - >=dev-lang/perl-5.2 - dev-util/dialog" -PROVIDE="virtual/tetex" - -src_unpack() { - unpack ${TETEXSRC} - - cd ${WORKDIR} - mkdir ${S}/texmf - cd ${S}/texmf - umask 022 - pwd - einfo "Unpacking ${TEXMFSRC}" - tar --no-same-owner -xzf ${DISTDIR}/${TEXMFSRC} || die - - einfo "Unpacking ${TEXMF}" - tar --no-same-owner -xzf ${DISTDIR}/${TEXMF} || die - - # Do not run config. Also fix local texmf tree. - cd ${WORKDIR} - cd ${S} - epatch ${FILESDIR}/${P}-dont-run-config.diff - epatch ${FILESDIR}/${P}.diff - - # fix up misplaced listings.sty in the 2.0.2 archive. - # this should be fixed in the next release <obz@gentoo.org> - mv texmf/source/latex/listings/listings.sty texmf/tex/latex/listings/ - -} - -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 ? - - ./configure --host=${CHOST} \ - --prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --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 \ - ${myconf} || die - - make texmf=/usr/share/texmf || die -} - -src_install() { - - dodir /usr/share/ - # Install texmf files - einfo "Installing texmf..." - cp -Rv texmf ${D}/usr/share - - make prefix=${D}/usr \ - bindir=${D}/usr/bin \ - datadir=${D}/usr/share \ - mandir=${D}/usr/share/man \ - infodir=${D}/usr/share/info \ - texmf=${D}/usr/share/texmf \ - install || die - - 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 ChangeLog INSTALLATION README - 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 - docinto xdvik - cd ${S}/texk/xdvik - dodoc BUGS FAQ 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/"' > ${D}/etc/env.d/98tetex -} - -pkg_preinst() { - if [ -d "/usr/share/texmf/dvipdfm/config" ] - then - ewarn "Removing /usr/share/texmf/dvipdfm/config/" - rm -rf /usr/share/texmf/dvipdfm/config - fi - - # 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 - einfo "Generating format files..." - fmtutil --missing &>/dev/null # This should generate all missing fmt files. - echo - einfo "Use 'texconfig font ro' to disable font generation for users" - echo - fi -} - |