diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2005-11-13 05:38:39 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2005-11-13 05:38:39 +0000 |
commit | c569296f1b4be1aceaacce771b3aca5fc0eb933b (patch) | |
tree | dd75bdd14067f1239e5af0b1eea52eccab332b42 /sci-mathematics/octave | |
parent | >=app-arch/lzop-1.02_rc1-r1 for lzo upgrade (diff) | |
download | gentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.tar.gz gentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.tar.bz2 gentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.zip |
Migrated to fortran.eclass (bug #65950)
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'sci-mathematics/octave')
-rw-r--r-- | sci-mathematics/octave/ChangeLog | 8 | ||||
-rw-r--r-- | sci-mathematics/octave/Manifest | 20 | ||||
-rw-r--r-- | sci-mathematics/octave/files/digest-octave-2.1.71-r1 | 1 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-2.1.71-r1.ebuild | 106 |
4 files changed, 120 insertions, 15 deletions
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog index 9d30e0c53908..b6c70b197d3e 100644 --- a/sci-mathematics/octave/ChangeLog +++ b/sci-mathematics/octave/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-mathematics/octave # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.15 2005/10/22 23:39:18 cryos Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.16 2005/11/13 05:34:47 ribosome Exp $ + +*octave-2.1.71-r1 (13 Nov 2005) + + 13 Nov 2005; Olivier Fisette <ribosome@gentoo.org> + +octave-2.1.71-r1.ebuild: + Migrated to fortran.eclass (bug #65950). 22 Oct 2005; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.71.ebuild: Allow the use of gfortran too for gcc4, closes bug 108781. diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest index 33b5634ff19e..4b725b268909 100644 --- a/sci-mathematics/octave/Manifest +++ b/sci-mathematics/octave/Manifest @@ -1,18 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 e7a66fad5a451fe4a902ee91bc6cd6a2 octave-2.1.71.ebuild 3546 +MD5 bd2ed4dec06725b62ae2a8d1f97c196e octave-2.1.69.ebuild 3633 +MD5 a5c02c7b4515b17aabf5485f4e12e11f octave-2.1.71-r1.ebuild 3420 +MD5 62c4dfb1220dccc6624875121b80bbeb octave-2.1.57-r1.ebuild 3668 MD5 2232e441020ce9244f94361292546063 ChangeLog 8858 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 MD5 32c6cee1f5b42b8b20369c3722fb4db2 files/digest-octave-2.1.57-r1 67 +MD5 6582a298022b4c4301eca44791cb6da2 files/digest-octave-2.1.71-r1 67 MD5 67d13a7bca35d1d0210394b7735fd073 files/digest-octave-2.1.69 67 MD5 6582a298022b4c4301eca44791cb6da2 files/digest-octave-2.1.71 67 -MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 -MD5 62c4dfb1220dccc6624875121b80bbeb octave-2.1.57-r1.ebuild 3668 -MD5 bd2ed4dec06725b62ae2a8d1f97c196e octave-2.1.69.ebuild 3633 -MD5 e7a66fad5a451fe4a902ee91bc6cd6a2 octave-2.1.71.ebuild 3546 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFDWs2zntT9W3vfTuoRAkYLAJ0aeLBu1GIIgbOhY9h599U9qAdPUwCfReNY -D+uAUjecAU5t9ftz8RRH3sc= -=moQ0 ------END PGP SIGNATURE----- diff --git a/sci-mathematics/octave/files/digest-octave-2.1.71-r1 b/sci-mathematics/octave/files/digest-octave-2.1.71-r1 new file mode 100644 index 000000000000..c5707c297b65 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.1.71-r1 @@ -0,0 +1 @@ +MD5 2ab06912017c833549035111f0ab592f octave-2.1.71.tar.bz2 5784751 diff --git a/sci-mathematics/octave/octave-2.1.71-r1.ebuild b/sci-mathematics/octave/octave-2.1.71-r1.ebuild new file mode 100644 index 000000000000..4acbf5d20281 --- /dev/null +++ b/sci-mathematics/octave/octave-2.1.71-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.71-r1.ebuild,v 1.1 2005/11/13 05:34:47 ribosome Exp $ + +inherit flag-o-matic fortran + +DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations" +LICENSE="GPL-2" +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" + +SLOT="0" +IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +DEPEND="virtual/libc + >=sys-libs/ncurses-5.2-r3 + >=media-gfx/gnuplot-3.7.1-r3 + >=sci-libs/fftw-2.1.3 + >=dev-util/gperf-2.7.2 + zlib? ( sys-libs/zlib ) + hdf5? ( sci-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 + +src_compile() { + filter-flags -ffast-math + + local myconf="--localstatedir=/var/state/octave --enable-rpath" + myconf="${myconf} --enable-lite-kernel" + use static || myconf="${myconf} --disable-static --enable-shared --enable-dl" + # Only add -lz to LDFLAGS if we have zlib in USE ! + # BUG #52604 + # Danny van Dyk 2004/08/26 + use zlib && LDFLAGS="${LDFLAGS} -lz" + + econf \ + $(use_with hdf5) \ + $(use_with mpi) \ + $(use_enable readline) \ + ${myconf} \ + LDFLAGS="${LDFLAGS}" || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "make install failed" + if use tetex; then + octave-install-doc || die "Octave doc install failed" + fi + if use emacs; then + cd emacs + exeinto /usr/bin + doexe otags || die + doman otags.1 || die + for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do + insinto ${emacsdir} + doins *.el || die + done + cd .. + fi + dodir /etc/env.d || die + echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave || die + + # Fixes ls-R files to remove /var/tmp/portage references. + sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R || die + sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || die +} + +pkg_postinst() { + echo + einfo "Some users have reported failures at running simple tests if" + einfo "octave was built with agressive optimisations. You can check if" + einfo "your setup is affected by this bug by running the following test" + einfo "(inside the octave interpreter):" + einfo + einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];" + einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];" + einfo "octave:3> anova(y, g)" + einfo + einfo "If these commands complete successfully with no error message," + einfo "your installation should be ok. Otherwise, try recompiling" + einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and" + einfo "\"-march=pentium4\" is known to cause problems)." + echo +} + +octave-install-doc() { + echo "Installing documentation..." + insinto /usr/share/doc/${PF} + doins doc/faq/Octave-FAQ.dvi || die + doins doc/interpreter/octave.dvi || die + doins doc/liboctave/liboctave.dvi || die + doins doc/refcard/refcard-a4.dvi || die + doins doc/refcard/refcard-legal.dvi || die + doins doc/refcard/refcard-letter.dvi || die +} |