diff options
author | Matthew Turk <satai@gentoo.org> | 2002-09-11 19:34:57 +0000 |
---|---|---|
committer | Matthew Turk <satai@gentoo.org> | 2002-09-11 19:34:57 +0000 |
commit | 1db26fb9d89c350674161eb78d0697d89c98af96 (patch) | |
tree | 4cb548b6b9a7a2924bd2096c9693a16b4f8b5c43 | |
parent | new qt3/kde3 version (diff) | |
download | historical-1db26fb9d89c350674161eb78d0697d89c98af96.tar.gz historical-1db26fb9d89c350674161eb78d0697d89c98af96.tar.bz2 historical-1db26fb9d89c350674161eb78d0697d89c98af96.zip |
Fixing up the ncurses problems...
-rw-r--r-- | app-text/tetex/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/tetex/files/digest-tetex-20020901-r1 | 5 | ||||
-rw-r--r-- | app-text/tetex/tetex-20020901-r1.ebuild | 163 | ||||
-rw-r--r-- | app-text/tetex/tetex-20020901.ebuild | 7 |
4 files changed, 181 insertions, 3 deletions
diff --git a/app-text/tetex/ChangeLog b/app-text/tetex/ChangeLog index d0309c9273d0..2d29901032ae 100644 --- a/app-text/tetex/ChangeLog +++ b/app-text/tetex/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/tetex # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/ChangeLog,v 1.9 2002/09/05 08:07:43 satai Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/ChangeLog,v 1.10 2002/09/11 19:34:57 satai Exp $ + +*tetex-20020901 (11 Sep 2002) + + 11 Sep 2002; satai <satai@gentoo.org> tetex-20020901-r1.ebuild : + + Fixed (kludgy) texconfig problem by replacing tcdialog with dialog from + ncurses. Remains unchanged for USE=-ncurses. *tetex-20020901 (05 Sep 2002) diff --git a/app-text/tetex/files/digest-tetex-20020901-r1 b/app-text/tetex/files/digest-tetex-20020901-r1 new file mode 100644 index 000000000000..6913914fc32c --- /dev/null +++ b/app-text/tetex/files/digest-tetex-20020901-r1 @@ -0,0 +1,5 @@ +MD5 692e98841adb9696c32fb976a99bfbc0 teTeX-src-beta-20020901.tar.gz 10064871 +MD5 a623715d418f2c02f16806eb91b288ca teTeX-texmfsrc-beta-20020829.tar.gz 23355616 +MD5 8ecfd4809e99e2475e946578f38b9623 teTeX-texmf-beta-20020901.tar.gz 48760604 +MD5 12925188fdadcd6a970c21bba3269fc2 ec-ready-mf-tfm.tar.gz 386630 +MD5 37393316b285926214c247acd55db743 teTeX-french.tar.gz 268161 diff --git a/app-text/tetex/tetex-20020901-r1.ebuild b/app-text/tetex/tetex-20020901-r1.ebuild new file mode 100644 index 000000000000..0d8e0b9d961b --- /dev/null +++ b/app-text/tetex/tetex-20020901-r1.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-20020901-r1.ebuild,v 1.1 2002/09/11 19:34:57 satai Exp $ + +TEXMFSRC="teTeX-texmfsrc-beta-20020829.tar.gz" +TEXMF="teTeX-texmf-beta-20020901.tar.gz" +S=${WORKDIR}/teTeX-src-beta-${PV} +DESCRIPTION="teTeX is a complete TeX distribution" +SRC_URI=" ftp://ftp.dante.de/tex-archive/systems/unix/teTeX-beta/teTeX-src-beta-20020901.tar.gz + ftp://ftp.dante.de/tex-archive/systems/unix/teTeX-beta/${TEXMFSRC} + ftp://ftp.dante.de/tex-archive/systems/unix/teTeX-beta/${TEXMF} + http://www.ibiblio.org/gentoo/distfiles/ec-ready-mf-tfm.tar.gz + http://www.ibiblio.org/gentoo/distfiles/teTeX-french.tar.gz" +HOMEPAGE="http://tug.cs.umb.edu/tetex/" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="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.4.0-r1 )" + +RDEPEND=">=sys-devel/perl-5.2 + dev-util/dialog" + +KEYWORDS="x86 ppc sparc sparc64" + +src_unpack() { + + unpack teTeX-src-beta-20020901.tar.gz + + mkdir ${S}/texmf + cd ${S}/texmf + echo ">>> Unpacking ${TEXMFSRC}" + tar xzf ${DISTDIR}/${TEXMFSRC} + echo ">>> Unpacking ${TEXMF}" + tar xzf ${DISTDIR}/${TEXMF} + echo ">>> Unpacking ec-ready-mf-tfm.tar.gz" + tar xzf ${DISTDIR}/ec-ready-mf-tfm.tar.gz -C .. + echo ">>> Unpacking teTeX-french.tar.gz" + tar xzf ${DISTDIR}/teTeX-french.tar.gz + + cd ${S} + patch -p0 < ${FILESDIR}/tetex-20020901-fontmap.diff || die + use ncurses \ + && cd ${S}/texk/tetex \ + && sed 's/tcdialog/dialog/g' texconfig > tc-gentoo \ + && mv tc-gentoo texconfig + +} + +src_compile() { + + local myconf + use X \ + && myconf="--with-x" \ + || myconf="--without-x" + + use libwww && ( \ + myconf="${myconf} --with-system-wwwlib" + ) + + use png \ + && myconf="${myconf} --with-system-pnglib" + + + use ncurses \ + && myconf="${myconf} --with-system-ncurses --with-ncurses-libdir=/usr/lib --with-ncurses-include=/usr/include" + + + ./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() { + + cd ${S} + dodir /usr/share/ + cp -af texmf ${D}/usr/share + sed -e 's: \$(scriptdir)/mktexlsr: echo:' \ + -e 's:\$(scriptdir)/texconfig init:echo:' \ + Makefile > Makefile.install + patch -p0 < ${FILESDIR}/tetex-20020901-makefile.diff || die + make prefix=${D}/usr \ + bindir=${D}/usr/bin \ + datadir=${D}/usr/share \ + mandir=${D}/usr/share/man/man1 \ + infodir=${D}/usr/share/info \ + texmf=${D}/usr/share/texmf \ + -f Makefile.install \ + 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 ${D}/bin/readlink + #add /var/cache/fonts directory + dodir /var/cache/fonts + + #fix for lousy upstream permisssions on /usr/share/texmf files + fowners root.root /usr/share/texmf/* +} + +pkg_postinst() { + + if [ $ROOT = "/" ] + then + echo ">>> Configuring teTeX..." + mktexlsr >/dev/null 2>&1 + fmtutil --all >/dev/null 2>&1 + texlinks >/dev/null 2>&1 + texconfig init >/dev/null 2>&1 + texconfig confall >/dev/null 2>&1 + texconfig font vardir /var/cache/fonts >/dev/null 2>&1 + texconfig font rw + echo "*** use 'texconfig font ro' to allow only root to generate fonts ***" + fi +} diff --git a/app-text/tetex/tetex-20020901.ebuild b/app-text/tetex/tetex-20020901.ebuild index 83327cd1f664..6db26ad36c58 100644 --- a/app-text/tetex/tetex-20020901.ebuild +++ b/app-text/tetex/tetex-20020901.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-20020901.ebuild,v 1.4 2002/09/05 21:15:03 satai Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-20020901.ebuild,v 1.5 2002/09/11 19:34:57 satai Exp $ TEXMFSRC="teTeX-texmfsrc-beta-20020829.tar.gz" TEXMF="teTeX-texmf-beta-20020901.tar.gz" @@ -44,6 +44,9 @@ src_unpack() { cd ${S} patch -p0 < ${FILESDIR}/tetex-20020901-fontmap.diff || die + cd texk/tetex + sed 's/tcdialog/dialog/g' texconfig > tc-gentoo ||die + mv tc-gentoo texconfig } @@ -63,7 +66,7 @@ src_compile() { use ncurses \ - && myconf="${myconf} --with-system-ncurses" + && myconf="${myconf} --with-system-ncurses --with-ncurses-libdir=/usr/lib --with-ncurses-include=/usr/include" ./configure --host=${CHOST} \ |