diff options
author | Matthew Turk <satai@gentoo.org> | 2002-08-23 02:46:24 +0000 |
---|---|---|
committer | Matthew Turk <satai@gentoo.org> | 2002-08-23 02:46:24 +0000 |
commit | 114eb43374d75ecc18f68500f05bb40153368fa9 (patch) | |
tree | 955d26addb1308e1cd16fdcb34a3e1cbf165c049 /app-text | |
parent | guidedog unmasked (diff) | |
download | historical-114eb43374d75ecc18f68500f05bb40153368fa9.tar.gz historical-114eb43374d75ecc18f68500f05bb40153368fa9.tar.bz2 historical-114eb43374d75ecc18f68500f05bb40153368fa9.zip |
Changed default teTeX behavior to allow all users font generation priv's. This
fixes numerous bugs in other programs, and is actually pretty sane behavior.
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/tetex/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/tetex/files/digest-tetex-1.0.7-r11 | 4 | ||||
-rw-r--r-- | app-text/tetex/tetex-1.0.7-r11.ebuild | 170 |
3 files changed, 182 insertions, 1 deletions
diff --git a/app-text/tetex/ChangeLog b/app-text/tetex/ChangeLog index ee2b43e0a459..340c3dcd1b1e 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.7 2002/08/02 17:42:50 phoenix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/ChangeLog,v 1.8 2002/08/23 02:46:24 satai Exp $ + +*tetex-1.0.7-r11 (22 Aug 2002) + + 22 Aug 2002; satai <satai@gentoo.org> tetex-1.0.7-r11.ebuild : + + Changed default behavior to fix numerous bugs - now font generation is, by + default, available for all users. *tetex-1.0.7-r10 (20 Jun 2002) diff --git a/app-text/tetex/files/digest-tetex-1.0.7-r11 b/app-text/tetex/files/digest-tetex-1.0.7-r11 new file mode 100644 index 000000000000..b0dad1273c70 --- /dev/null +++ b/app-text/tetex/files/digest-tetex-1.0.7-r11 @@ -0,0 +1,4 @@ +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/tetex-1.0.7-r11.ebuild b/app-text/tetex/tetex-1.0.7-r11.ebuild new file mode 100644 index 000000000000..ae182433163a --- /dev/null +++ b/app-text/tetex/tetex-1.0.7-r11.ebuild @@ -0,0 +1,170 @@ +# 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-1.0.7-r11.ebuild,v 1.1 2002/08/23 02:46:24 satai Exp $ + +TEXMFSRC="teTeX-texmf-gg-1.0.3.tar.bz2" + +S=${WORKDIR}/teTeX-1.0 +DESCRIPTION="teTeX is a complete TeX distribution" +SRC_URI="ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/1.0/distrib/sources/teTeX-src-1.0.7.tar.gz + ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/contrib/ghibo/${TEXMFSRC} + 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.3.2-r1 )" + +RDEPEND=">=sys-devel/perl-5.2 + dev-util/dialog" + +KEYWORDS="x86 ppc sparc sparc64" + +src_unpack() { + + unpack teTeX-src-1.0.7.tar.gz + + mkdir ${S}/texmf + cd ${S}/texmf + echo ">>> Unpacking ${TEXMFSRC}" + tar xjf ${DISTDIR}/${TEXMFSRC} + 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 ${WORKDIR} + patch -p0 < ${FILESDIR}/teTeX-1.0-gentoo.diff || die + + cd ${S} + patch -p0 < ${FILESDIR}/teTeX-1.0.dif || 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 + +} + +src_compile() { + + local myconf + use X \ + && myconf="--with-x" \ + || myconf="--without-x" + + use libwww && ( \ + myconf="${myconf} --with-system-wwwlib" + myconf="${myconf} --with-libwww-include=/usr/include" + ) + + use png \ + && myconf="${myconf} --with-system-pnglib" + + + use ncurse \ + && 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() { + + 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 + 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 + 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 >/dev/null 2>&1 + echo "*** use 'texconfig font ro' to allow only root to generate fonts ***" + fi +} |