From 3ef01ce19a4d2cf0588b52c4ab9dec1d155e31ca Mon Sep 17 00:00:00 2001 From: Olivier Fisette Date: Tue, 28 Dec 2004 14:48:35 +0000 Subject: [PATCH] Moved from app-sci/octave to sci-mathematics/octave. --- sci-mathematics/koctave/Manifest | 4 +- sci-mathematics/octave/ChangeLog | 176 ++++++++++++++++++ sci-mathematics/octave/Manifest | 24 +++ .../octave/files/digest-octave-2.1.36-r1 | 1 + .../octave/files/digest-octave-2.1.50 | 1 + .../octave/files/digest-octave-2.1.57 | 1 + .../octave/files/digest-octave-2.1.57-r1 | 1 + .../octave/files/digest-octave-2.1.64 | 1 + sci-mathematics/octave/files/filebuf.diff | 41 ++++ sci-mathematics/octave/files/kill-dvips.diff | 62 ++++++ sci-mathematics/octave/metadata.xml | 5 + .../octave/octave-2.1.36-r1.ebuild | 76 ++++++++ sci-mathematics/octave/octave-2.1.50.ebuild | 83 +++++++++ .../octave/octave-2.1.57-r1.ebuild | 102 ++++++++++ sci-mathematics/octave/octave-2.1.57.ebuild | 75 ++++++++ sci-mathematics/octave/octave-2.1.64.ebuild | 103 ++++++++++ 16 files changed, 754 insertions(+), 2 deletions(-) create mode 100644 sci-mathematics/octave/ChangeLog create mode 100644 sci-mathematics/octave/Manifest create mode 100644 sci-mathematics/octave/files/digest-octave-2.1.36-r1 create mode 100644 sci-mathematics/octave/files/digest-octave-2.1.50 create mode 100644 sci-mathematics/octave/files/digest-octave-2.1.57 create mode 100644 sci-mathematics/octave/files/digest-octave-2.1.57-r1 create mode 100644 sci-mathematics/octave/files/digest-octave-2.1.64 create mode 100644 sci-mathematics/octave/files/filebuf.diff create mode 100644 sci-mathematics/octave/files/kill-dvips.diff create mode 100644 sci-mathematics/octave/metadata.xml create mode 100644 sci-mathematics/octave/octave-2.1.36-r1.ebuild create mode 100644 sci-mathematics/octave/octave-2.1.50.ebuild create mode 100644 sci-mathematics/octave/octave-2.1.57-r1.ebuild create mode 100644 sci-mathematics/octave/octave-2.1.57.ebuild create mode 100644 sci-mathematics/octave/octave-2.1.64.ebuild diff --git a/sci-mathematics/koctave/Manifest b/sci-mathematics/koctave/Manifest index ae3349400d9b..084133f1038e 100644 --- a/sci-mathematics/koctave/Manifest +++ b/sci-mathematics/koctave/Manifest @@ -1,4 +1,4 @@ -MD5 1af58ecccbcfbd332347dc446e138bd1 koctave-0.65.ebuild 574 -MD5 569ab55e22b33ec338a8e7ed3639f9b1 ChangeLog 681 +MD5 e8ba51ffb8fc821c147098a38125f086 koctave-0.65.ebuild 594 +MD5 1e0ab8eda80d3083d5eb1a9436417b97 ChangeLog 871 MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 MD5 c118f6e51940e1810fd2907f9edde38f files/digest-koctave-0.65 66 diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog new file mode 100644 index 000000000000..79dd7f2d046e --- /dev/null +++ b/sci-mathematics/octave/ChangeLog @@ -0,0 +1,176 @@ +# ChangeLog for app-sci/octave +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +*octave-2.1.64 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette +metadata.xml, + +files/filebuf.diff, +files/kill-dvips.diff, +octave-2.1.36-r1.ebuild, + +octave-2.1.50.ebuild, +octave-2.1.57-r1.ebuild, +octave-2.1.57.ebuild, + +octave-2.1.64.ebuild: + Moved from app-sci/octave to sci-mathematics/octave. + + 19 Dec 2004; Bryan Østergaard + octave-2.1.57-r1.ebuild: + Stable on alpha. + + 15 Dec 2004; Patrick Kursawe octave-2.1.64.ebuild: + Latest version does not like texi2html-1.70 (bug #74307) + +*octave-2.1.64 (07 Dec 2004) + + 07 Dec 2004; Patrick Kursawe +octave-2.1.64.ebuild: + Version bump + + 30 Nov 2004; Patrick Kursawe octave-2.1.50.ebuild: + Adding fortran compiler check from newest version to .50 because of bug #66193. + + 04 Oct 2004; Patrick Kursawe octave-2.1.57-r1.ebuild: + Adding proper quotes to LDFLAGS, fixing bug #66111 + + 01 Oct 2004; Danny van Dyk octave-2.1.57-r1.ebuild: + Switched on blas use-flag as all arches have at least blas-atlas in testing + now. + + 01 Jul 2004; Jeremy Huddleston + octave-2.1.36-r1.ebuild, octave-2.1.50.ebuild, octave-2.1.57-r1.ebuild, + octave-2.1.57.ebuild: + virtual/glibc -> virtual/libc + + 15 Jun 2004; Michael Sterrett + octave-2.1.36-r1.ebuild, octave-2.1.50.ebuild, octave-2.1.57.ebuild: + PROVIDE is for virtuals + + 06 Jun 2004; Danny van Dyk octave-2.1.57-r1.ebuild: + Marked stable on amd64. + + 27 May 2004; Patrick Kursawe octave-2.1.57-r1.ebuild: + Fixed typo about g77/f77 USE flag, bug #51858 + + 15 May 2004; Danny van Dyk octave-2.1.57-r1.ebuild: + Now checking on both g77 and ifc Fortran compilers. Moved check routine to + pkg_setup. + + 12 May 2004; Danny van Dyk octave-2.1.57-r1.ebuild: + The ebuild checks now if g77 has been compiled. If not, a warning is shown. + However, the compilation process proceeds, in case that a different compiler + than g77 shall be used. Fixes BUG #50777. + +*octave-2.1.57-r1 (10 May 2004) + + 10 May 2004; Patrick Kursawe octave-2.1.57-r1.ebuild: + Installs emacs related files if emacs is in USE now + + 09 May 2004; Danny van Dyk octave-2.1.57.ebuild: + Added local useflag "blas" to make ebuild depend on virtual/blas. + + 05 May 2004; Bryan Østergaard octave-2.1.57.ebuild: + Stable on alpha. + + 21 Apr 2004; Patrick Kursawe octave-2.1.36-r1.ebuild: + replaced another patch by epatch + + 19 Apr 2004; Patrick Kursawe octave-2.0.17-r2.ebuild, + octave-2.1.49.ebuild, octave-2.1.50.ebuild: + Cleanup, added IUSE. + + 30 Mar 2004; Patrick Kursawe octave-2.1.57.ebuild: + Adding one of the mirrors to SRC_URI + +*octave-2.1.57 (23 Mar 2004) + + 23 Mar 2004; Patrick Kursawe octave-2.1.57.ebuild: + Version bump. + +*octave-2.1.50 (07 Jan 2003) + + 07 Jan 2003; George Shapovalov octave-2.1.50.ebuild : + new version + now supports hdf5 for real. Also added mpi use flag. + + 31 Dec 2003; Mamoru KOMACHI octave-2.0.17-r2.ebuild, + octave-2.1.36-r1.ebuild, octave-2.1.49.ebuild: + Changed app-text/tetex to virtual/tetex + + 16 Sep 2003; Seemant Kulleen octave-2.0.17-r2.ebuild, + octave-2.1.36-r1.ebuild, octave-2.1.49.ebuild: + filter out -ffast-math, as it causes segfaults. Thanks to: Jani Kotakoski + in bug #28809 + + 28 Aug 2003; Jason Wever octave-2.1.49.ebuild: + Added ~sparc to keywords to fix bug 27486. + +*octave-2.1.49 (09 Jun 2003) + 09 Jun 2003; George Shapovalov octave-2.1.49.ebuild : + new version, + ebuild now uses additional "static readline hdf5 zlib" use flags, hdf5 is local for now. + Also the patch and PROVIDE are no longer necessary. + Thanks to Shaun Cloherty for submission + + 29 Mar 2003; George Shapovalov octave-2.0.17-r2.ebuild : + some clean-ups: + removed virtual/glibc from DEPEND, as it is quite populated anyway, + removed PROVIDE, as nothing depends on octave and its been quite some time since it was moved from dev-lang + Also corrected default-1.0/packages profile entry, to pick up latest release in 2.0* series. + + 23 Feb 2003; George Shapovalov octave-2.0.17-r2.ebuild : + looks like tetex is not an optional but required dependency for 2.0.17, + added app-text/tetex to DEPEND (#7277) + + 02 Feb 2003; George Shapovalov octave-2.1.40.ebuild, octave-2.1.36-r1.ebuild : + + fixed tetex optional dependency typo. Thanks to Daniel Karlsson (#14685) for reporting this. + +*octave-2.1.40 (13 Dec 2002) + + 10 Feb 2003; Peter Johanson octave-2.1.40.ebuild : + Added ~alpha to KEYWORDS. + + 13 Dec 2002; George Shapovalov octave-2.1.40.ebuild, files/digest-octave-2.1.40 : + new version + +*octave-2.0.17-r2 (09 Apr 2003) + + 02 Jul 2003; Daniel Ahlberg : + Added missing changelog entry. + +*octave-2.0.17-r1 (13 Jul 2002) + + 25 Oct 2002; George Shapovalov octave-2.0.17-r1.ebuild, files/digest-octave-2.0.17-r1 : + fix for sandbox violation + +*octave-2.1.36-r1 (01 Oct 02) + + 01 Oct 2002; Matthew Turk : + 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) + + 19 Sep 2002; Owen Stampflee : + Added PPC to KEYWORDS. + + 15 Jul 2002; Nick Hadaway + octave-2.1.36.ebuild, files/digest-octave-2.1.36, files/filebuf.diff : + Updated to latest "unstable" version. Included a patch to compile + properly with gcc-3.x. After fixing the problem I found RedHat's + patch posted to the bug report. And theirs was cleaner than mine. + Closes bug #4933 + +*octave-2.0.17 (13 Jul 2002) + + 03 Sep 2002; Nick Hadaway octave-2.0.17.ebuild : + Changed to econf. Changed from emake to make to alleviate build + problems. + + 13 Jul 2002; Nick Hadaway octave-2.0.17.ebuild : + Updated to latest stable version. The "unstable" version is on it's way. + +*octave-2.0.16 (19 Feb 2002) + + 19 Feb 2002; T.Neidt ChangeLog, octave-2.0.16.ebuild : + Initial commit. GNU Octave is a high-level language, primarily intended + for numerical computations. It is mostly compatible with Matlab. + diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest new file mode 100644 index 000000000000..d4d71e235cfa --- /dev/null +++ b/sci-mathematics/octave/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 9dcbed94ef4a87f6a80e9f0c5cdca609 octave-2.1.64.ebuild 2880 +MD5 11a8df55d6973d265e7507e68a01eb3a ChangeLog 6665 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 da68a6e1ee5ed6f35f9a2e328d809a49 octave-2.1.50.ebuild 2361 +MD5 3b91b6ca6d7146d7d1973f1642d083c7 octave-2.1.57.ebuild 2195 +MD5 2cf28a7957f83f2a88c48510c78b3870 octave-2.1.57-r1.ebuild 2852 +MD5 2a52ead20f5e9a16b481e43fe9415104 octave-2.1.36-r1.ebuild 1934 +MD5 c93a44a52d46ca6e8fed8c3c23877c0d files/digest-octave-2.1.36-r1 67 +MD5 32c6cee1f5b42b8b20369c3722fb4db2 files/digest-octave-2.1.57-r1 67 +MD5 74d376b9c7367fe7b333cbc7e8ca37b3 files/kill-dvips.diff 2448 +MD5 32c6cee1f5b42b8b20369c3722fb4db2 files/digest-octave-2.1.57 67 +MD5 806a54605ad877d62105b2f58819c92d files/digest-octave-2.1.50 67 +MD5 045463e5ebb1615d834a8145b27a765d files/filebuf.diff 1275 +MD5 157e958a946705cefe2968c7f46d5263 files/digest-octave-2.1.64 67 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFBxVw9ugEuf3OQ0akRAuTpAKCkFyOZJ/BNX5SDqptNcK9ZXxwP0wCfS2vv +0P+5cjE5Gyer3Je/AO4iU7c= +=3ZrB +-----END PGP SIGNATURE----- diff --git a/sci-mathematics/octave/files/digest-octave-2.1.36-r1 b/sci-mathematics/octave/files/digest-octave-2.1.36-r1 new file mode 100644 index 000000000000..869e2d30fa34 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.36-r1 @@ -0,0 +1 @@ +MD5 2ae3b8e954b319a6e37a41c3c5c97583 octave-2.1.36.tar.bz2 3627899 diff --git a/sci-mathematics/octave/files/digest-octave-2.1.50 b/sci-mathematics/octave/files/digest-octave-2.1.50 new file mode 100644 index 000000000000..28007c673ad8 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.50 @@ -0,0 +1 @@ +MD5 480d48cd99828fb403ceee53dd1cad2f octave-2.1.50.tar.bz2 3715690 diff --git a/sci-mathematics/octave/files/digest-octave-2.1.57 b/sci-mathematics/octave/files/digest-octave-2.1.57 new file mode 100644 index 000000000000..083d5364fe75 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.57 @@ -0,0 +1 @@ +MD5 b781f5d0cd750cb9bb3ef23523f5f339 octave-2.1.57.tar.bz2 4202080 diff --git a/sci-mathematics/octave/files/digest-octave-2.1.57-r1 b/sci-mathematics/octave/files/digest-octave-2.1.57-r1 new file mode 100644 index 000000000000..083d5364fe75 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.57-r1 @@ -0,0 +1 @@ +MD5 b781f5d0cd750cb9bb3ef23523f5f339 octave-2.1.57.tar.bz2 4202080 diff --git a/sci-mathematics/octave/files/digest-octave-2.1.64 b/sci-mathematics/octave/files/digest-octave-2.1.64 new file mode 100644 index 000000000000..bf66a94cf4d9 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.64 @@ -0,0 +1 @@ +MD5 01ec8b13bd850123b190129be93adc1f octave-2.1.64.tar.bz2 4341798 diff --git a/sci-mathematics/octave/files/filebuf.diff b/sci-mathematics/octave/files/filebuf.diff new file mode 100644 index 000000000000..23a12464b348 --- /dev/null +++ b/sci-mathematics/octave/files/filebuf.diff @@ -0,0 +1,41 @@ +diff -urN octave-2.1.36/src/c-file-ptr-stream.h octave-2.1.36-modified/src/c-file-ptr-stream.h +--- octave-2.1.36/src/c-file-ptr-stream.h Thu Nov 1 23:12:00 2001 ++++ octave-2.1.36-modified/src/c-file-ptr-stream.h Mon Jul 15 11:28:29 2002 +@@ -31,13 +31,23 @@ + #include + #include + ++#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) ++# include ++#endif ++ + class +-c_file_ptr_buf : public std::filebuf ++#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) ++ c_file_ptr_buf : public __gnu_cxx::stdio_filebuf ++#else ++ c_file_ptr_buf : public std::filebuf ++#endif + { + public: + + #if !defined (CXX_ISO_COMPLIANT_LIBRARY) + typedef int int_type; ++#else ++ typedef std::filebuf::int_type int_type; + #endif + + typedef int (*close_fcn) (FILE *); +@@ -47,7 +57,11 @@ + c_file_ptr_buf (FILE *f_arg, close_fcn cf_arg = ::fclose) + : + #if defined __GNUC__ && __GNUC__ >= 3 +- std::filebuf (f_arg, std::ios::in | std::ios::out), ++# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) ++ __gnu_cxx::stdio_filebuf (f_arg, std::ios::in | std::ios::out), ++# else ++ std::filebuf (f_arg, std::ios::in | std::ios::out), ++#endif + #else + std::filebuf (f_arg ? fileno (f_arg) : -1), + #endif diff --git a/sci-mathematics/octave/files/kill-dvips.diff b/sci-mathematics/octave/files/kill-dvips.diff new file mode 100644 index 000000000000..9d6ff5dead13 --- /dev/null +++ b/sci-mathematics/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/sci-mathematics/octave/metadata.xml b/sci-mathematics/octave/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-mathematics/octave/metadata.xml @@ -0,0 +1,5 @@ + + + +sci + diff --git a/sci-mathematics/octave/octave-2.1.36-r1.ebuild b/sci-mathematics/octave/octave-2.1.36-r1.ebuild new file mode 100644 index 000000000000..4afd20690bbf --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.36-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.36-r1.ebuild,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +inherit flag-o-matic eutils + +IUSE="tetex" + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +HOMEPAGE="http://www.octave.org/" +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc" + +DEPEND="virtual/libc + >=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? ( virtual/tetex ) " + +# 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} + epatch ${FILESDIR}/filebuf.diff + +} + +src_compile() { + + filter-flags -ffast-math + + # 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" + + epatch ${FILESDIR}/kill-dvips.diff + 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 +} diff --git a/sci-mathematics/octave/octave-2.1.50.ebuild b/sci-mathematics/octave/octave-2.1.50.ebuild new file mode 100644 index 000000000000..5f8f45e5dde5 --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.50.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.50.ebuild,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +inherit flag-o-matic + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +HOMEPAGE="http://www.octave.org/" +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~ppc ~alpha ~sparc amd64" +IUSE="static readline zlib tetex hdf5 mpi" + +DEPEND="virtual/libc + >=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 + zlib? ( sys-libs/zlib ) + hdf5? ( dev-libs/hdf5 ) + tetex? ( virtual/tetex )" + +# 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 + +pkg_setup() { + use ifc || if [ -z `which g77` ]; then + #if ifc is defined then the dep was already checked + eerror "No fortran compiler found on the system!" + eerror "Please add f77 to your USE flags and reemerge gcc!" + die + fi +} + +src_compile() { + filter-flags -ffast-math + + local myconf + + use static || myconf="--disable-static --enable-shared --enable-dl" + use readline || myconf="${myconf} --disable-readline" + use hdf5 || myconf="${myconf} --without-hdf5" + use mpi || myconf="${myconf} --without-mpi" + + # NOTE: This version actually works with gcc-3.x + ./configure ${myconf} --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/state/octave \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --enable-rpath \ + --enable-lite-kernel \ + LDFLAGS=-lz || die "configure failed" + + 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 +} diff --git a/sci-mathematics/octave/octave-2.1.57-r1.ebuild b/sci-mathematics/octave/octave-2.1.57-r1.ebuild new file mode 100644 index 000000000000..9060d83e8d4e --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.57-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.57-r1.ebuild,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +inherit flag-o-matic + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +HOMEPAGE="http://www.octave.org/" +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2 + ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~ppc alpha ~sparc amd64" +IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas" + +DEPEND="virtual/libc + >=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 + zlib? ( sys-libs/zlib ) + hdf5? ( dev-libs/hdf5 ) + tetex? ( virtual/tetex ) + x86? ( ifc? ( dev-lang/ifc ) ) + blas? ( virtual/blas )" + +# 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 + +pkg_setup() { + use ifc || if [ -z `which g77` ]; then + #if ifc is defined then the dep was already checked + eerror "No fortran compiler found on the system!" + eerror "Please add f77 to your USE flags and reemerge gcc!" + die + fi +} + +src_compile() { + filter-flags -ffast-math + + local myconf + + use static || myconf="--disable-static --enable-shared --enable-dl" + use readline || myconf="${myconf} --disable-readline" + use hdf5 || myconf="${myconf} --without-hdf5" + use mpi || myconf="${myconf} --without-mpi" + + # Only add -lz to LDFLAGS if we have zlib in USE ! + # BUG #52604 + # Danny van Dyk 2004/08/26 + use zlib && LDFLAGS="${LDFLAGS} -lz" + + # NOTE: This version actually works with gcc-3.x + ./configure ${myconf} --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/state/octave \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --enable-rpath \ + --enable-lite-kernel \ + LDFLAGS="${LDFLAGS}" || die "configure failed" + + 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 + if use emacs; then + cd emacs + exeinto /usr/bin + doexe otags + doman otags.1 + for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do + insinto ${emacsdir} + doins *.el + done + cd .. + fi +} + +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 +} diff --git a/sci-mathematics/octave/octave-2.1.57.ebuild b/sci-mathematics/octave/octave-2.1.57.ebuild new file mode 100644 index 000000000000..a087544b7bc5 --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.57.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.57.ebuild,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +inherit flag-o-matic + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +HOMEPAGE="http://www.octave.org/" +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2 + ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc alpha ~sparc ~amd64" +IUSE="static readline zlib tetex hdf5 mpi" + +DEPEND="virtual/libc + >=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 + zlib? ( sys-libs/zlib ) + hdf5? ( dev-libs/hdf5 ) + tetex? ( virtual/tetex )" + +# 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_compile() { + filter-flags -ffast-math + + local myconf + + use static || myconf="--disable-static --enable-shared --enable-dl" + use readline || myconf="${myconf} --disable-readline" + use hdf5 || myconf="${myconf} --without-hdf5" + use mpi || myconf="${myconf} --without-mpi" + + # NOTE: This version actually works with gcc-3.x + ./configure ${myconf} --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/state/octave \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --enable-rpath \ + --enable-lite-kernel \ + LDFLAGS=-lz || die "configure failed" + + 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 +} diff --git a/sci-mathematics/octave/octave-2.1.64.ebuild b/sci-mathematics/octave/octave-2.1.64.ebuild new file mode 100644 index 000000000000..62481013a8ef --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.64.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.64.ebuild,v 1.1 2004/12/28 14:48:35 ribosome Exp $ + +inherit flag-o-matic + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +HOMEPAGE="http://www.octave.org/" +SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2 + ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~alpha ~sparc ~amd64" +IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas" + +DEPEND="virtual/libc + >=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 + zlib? ( sys-libs/zlib ) + hdf5? ( dev-libs/hdf5 ) + tetex? ( virtual/tetex ) + x86? ( ifc? ( dev-lang/ifc ) ) + blas? ( virtual/blas ) + !=app-text/texi2html-1.70" + +# 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 + +pkg_setup() { + use ifc || if [ -z `which g77` ]; then + #if ifc is defined then the dep was already checked + eerror "No fortran compiler found on the system!" + eerror "Please add f77 to your USE flags and reemerge gcc!" + die + fi +} + +src_compile() { + filter-flags -ffast-math + + local myconf + + use static || myconf="--disable-static --enable-shared --enable-dl" + use readline || myconf="${myconf} --disable-readline" + use hdf5 || myconf="${myconf} --without-hdf5" + use mpi || myconf="${myconf} --without-mpi" + + # Only add -lz to LDFLAGS if we have zlib in USE ! + # BUG #52604 + # Danny van Dyk 2004/08/26 + use zlib && LDFLAGS="${LDFLAGS} -lz" + + # NOTE: This version actually works with gcc-3.x + ./configure ${myconf} --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/state/octave \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --enable-rpath \ + --enable-lite-kernel \ + LDFLAGS="${LDFLAGS}" || die "configure failed" + + 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 + if use emacs; then + cd emacs + exeinto /usr/bin + doexe otags + doman otags.1 + for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do + insinto ${emacsdir} + doins *.el + done + cd .. + fi +} + +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 +} -- 2.26.2