diff options
author | Matthew Turk <satai@gentoo.org> | 2002-10-01 20:46:26 +0000 |
---|---|---|
committer | Matthew Turk <satai@gentoo.org> | 2002-10-01 20:46:26 +0000 |
commit | a4b8dd4b24e3ca15edf69e858b2b761fd417423a (patch) | |
tree | 1e13a8910c173c521d0310a26cf4ba04da1f7afa | |
parent | bugfix release (diff) | |
download | gentoo-2-a4b8dd4b24e3ca15edf69e858b2b761fd417423a.tar.gz gentoo-2-a4b8dd4b24e3ca15edf69e858b2b761fd417423a.tar.bz2 gentoo-2-a4b8dd4b24e3ca15edf69e858b2b761fd417423a.zip |
Removing dvips, thus fixing sandbox problems in 8486.
-rw-r--r-- | app-sci/octave/ChangeLog | 10 | ||||
-rw-r--r-- | app-sci/octave/files/digest-octave-2.1.36-r1 | 1 | ||||
-rw-r--r-- | app-sci/octave/files/kill-dvips.diff | 62 | ||||
-rw-r--r-- | app-sci/octave/octave-2.1.36-r1.ebuild | 73 |
4 files changed, 145 insertions, 1 deletions
diff --git a/app-sci/octave/ChangeLog b/app-sci/octave/ChangeLog index 125d6a78e255..aba897451bce 100644 --- a/app-sci/octave/ChangeLog +++ b/app-sci/octave/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for <CATEGORY>/<PACKAGE_NAME> # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-sci/octave/ChangeLog,v 1.5 2002/09/19 20:09:38 owen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-sci/octave/ChangeLog,v 1.6 2002/10/01 20:46:26 satai Exp $ + +*octave-2.1.36-r1 (01 Oct 02) + + 01 Oct 2002; Matthew Turk <satai@gentoo.org> : + Closing bug 8486 by ripping out all references to dvips. DVIPS generates + fonts on the fly, which causes massive sandbox failures. Instead, we leave + docs in DVI format if USE=tetex, which are then installed uncompressed into + /usr/share/doc/octave-2.1.36-r1 . *octave-2.1.36 (15 Jul 2002) diff --git a/app-sci/octave/files/digest-octave-2.1.36-r1 b/app-sci/octave/files/digest-octave-2.1.36-r1 new file mode 100644 index 000000000000..869e2d30fa34 --- /dev/null +++ b/app-sci/octave/files/digest-octave-2.1.36-r1 @@ -0,0 +1 @@ +MD5 2ae3b8e954b319a6e37a41c3c5c97583 octave-2.1.36.tar.bz2 3627899 diff --git a/app-sci/octave/files/kill-dvips.diff b/app-sci/octave/files/kill-dvips.diff new file mode 100644 index 000000000000..9d6ff5dead13 --- /dev/null +++ b/app-sci/octave/files/kill-dvips.diff @@ -0,0 +1,62 @@ +diff -ru octave-2.1.36/doc/faq/Makefile octave-2.1.36-fixed/doc/faq/Makefile +--- octave-2.1.36/doc/faq/Makefile 2002-09-30 20:37:06.000000000 -0500 ++++ octave-2.1.36-fixed/doc/faq/Makefile 2002-09-30 21:18:21.000000000 -0500 +@@ -46,8 +46,6 @@ + export TEXINPUTS; \ + $(TEXI2DVI) $(srcdir)/Octave-FAQ.texi + +-Octave-FAQ.ps: Octave-FAQ.dvi +- -dvips -o Octave-FAQ.ps Octave-FAQ.dvi + + # These option forms are supported by texi2html 1.65 and probably also + # more recent versions. +diff -ru octave-2.1.36/doc/interpreter/Makefile octave-2.1.36-fixed/doc/interpreter/Makefile +--- octave-2.1.36/doc/interpreter/Makefile 2002-09-30 20:37:06.000000000 -0500 ++++ octave-2.1.36-fixed/doc/interpreter/Makefile 2002-09-30 21:18:30.000000000 -0500 +@@ -88,8 +88,6 @@ + export TEXINPUTS; \ + $(TEXI2DVI) $< + +-octave.ps: octave.dvi +- -dvips -o octave.ps octave.dvi + + ../../INSTALL.OCTAVE: install.texi + rm -f INSTALL +diff -ru octave-2.1.36/doc/liboctave/Makefile octave-2.1.36-fixed/doc/liboctave/Makefile +--- octave-2.1.36/doc/liboctave/Makefile 2002-09-30 20:37:06.000000000 -0500 ++++ octave-2.1.36-fixed/doc/liboctave/Makefile 2002-09-30 21:18:38.000000000 -0500 +@@ -50,8 +50,6 @@ + export TEXINPUTS; \ + $(TEXI2DVI) $(srcdir)/liboctave.texi + +-liboctave.ps: liboctave.dvi +- -dvips -o liboctave.ps liboctave.dvi + + # These option forms are supported by texi2html 1.65 and probably also + # more recent versions. +diff -ru octave-2.1.36/doc/refcard/Makefile octave-2.1.36-fixed/doc/refcard/Makefile +--- octave-2.1.36/doc/refcard/Makefile 2002-09-30 20:37:06.000000000 -0500 ++++ octave-2.1.36-fixed/doc/refcard/Makefile 2002-09-30 21:19:08.000000000 -0500 +@@ -38,22 +38,16 @@ + -TEXINPUTS="$(srcdir):$(TEXINPUTS):"; export TEXINPUTS; \ + tex $(srcdir)/refcard-a4.tex + +-refcard-a4.ps: refcard-a4.dvi +- -dvips -T 297mm,210mm -o refcard-a4.ps refcard-a4.dvi + + refcard-legal.dvi: refcard-legal.tex refcard.tex + -TEXINPUTS="$(srcdir):$(TEXINPUTS):"; export TEXINPUTS; \ + tex $(srcdir)/refcard-legal.tex + +-refcard-legal.ps: refcard-legal.dvi +- -dvips -T 14in,8.5in -o refcard-legal.ps refcard-legal.dvi + + refcard-letter.dvi: refcard-letter.tex refcard.tex + -TEXINPUTS="$(srcdir):$(TEXINPUTS):"; export TEXINPUTS; \ + tex $(srcdir)/refcard-letter.tex + +-refcard-letter.ps: refcard-letter.dvi +- -dvips -T 11in,8.5in -o refcard-letter.ps refcard-letter.dvi + + check install install-strip uninstall: + .PHONY: check install install-strip uninstall diff --git a/app-sci/octave/octave-2.1.36-r1.ebuild b/app-sci/octave/octave-2.1.36-r1.ebuild new file mode 100644 index 000000000000..db0a239f3b57 --- /dev/null +++ b/app-sci/octave/octave-2.1.36-r1.ebuild @@ -0,0 +1,73 @@ +# 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-sci/octave/octave-2.1.36-r1.ebuild,v 1.1 2002/10/01 20:46:26 satai Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations." +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2" +HOMEPAGE="http://www.octave.org/" + +DEPEND="virtual/glibc + >=sys-libs/ncurses-5.2-r3 + >=media-gfx/gnuplot-3.7.1-r3 + >=dev-libs/fftw-2.1.3 + >=dev-util/gperf-2.7.2 + tetex ? ( >=tetex-1.0.7-r10 ) " +RDEPEND="${DEPEND}" +PROVIDE="dev-lang/octave" + +LICENSE="GPL-2" +KEYWORDS="x86 ppc" +SLOT="0" + +# NOTE: octave supports blas/lapack from intel but this is not open +# source nor is it free (as in beer OR speech) Check out... +# http://developer.intel.com/software/products/mkl/mkl52/index.htm for +# more information + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + patch -p0 < ${FILESDIR}/filebuf.diff + +} + +src_compile() { + # NOTE: This version actually works with gcc-3.x + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/state/octave \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --enable-dl \ + --enable-shared \ + --enable-rpath \ + --enable-lite-kernel || die "configure failed" + + patch -p1 < ${FILESDIR}/kill-dvips.diff || die + emake || die "emake failed" + +} + +src_install () { + make \ + prefix=${D}/usr \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die "make install failed" + use tetex && octave-install-doc +} + +octave-install-doc () { + echo "Installing documentation..." + insinto /usr/share/doc/${PF} + doins doc/faq/Octave-FAQ.dvi + doins doc/interpreter/octave.dvi + doins doc/liboctave/liboctave.dvi + doins doc/refcard/refcard-a4.dvi + doins doc/refcard/refcard-legal.dvi + doins doc/refcard/refcard-letter.dvi +} |