diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-17 16:21:32 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-17 16:21:32 +0000 |
commit | 76ffb781ed7a917f23b67454e9f950e5e3b83527 (patch) | |
tree | 94fa8e1ddc7cb9ef80b78ea7896a5845f074f95b /sci-mathematics/octave | |
parent | move stuff to root (diff) | |
download | sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.gz sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.bz2 sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.zip |
moved overlay to new directory
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@979 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics/octave')
-rw-r--r-- | sci-mathematics/octave/ChangeLog | 22 | ||||
-rw-r--r-- | sci-mathematics/octave/Manifest | 6 | ||||
-rw-r--r-- | sci-mathematics/octave/files/octave-2.9.18-test-fix.patch | 28 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-2.9.19.ebuild | 124 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-3.0.0.ebuild | 141 |
5 files changed, 321 insertions, 0 deletions
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog new file mode 100644 index 000000000..3fe1b9a60 --- /dev/null +++ b/sci-mathematics/octave/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for sci-mathematics/octave-forge-parallel +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 30 Dec 2007; Markus Dittrich <markusle@gentoo.org> +octave-3.0.0.ebuild: + Version bump. + + 14 Dec 2007; Markus Dittrich <markusle@gentoo.org> +octave-2.9.19.ebuild: + Version bump. + + 14 Dec 2007; Markus Dittrich <markusle@gentoo.org> octave-2.9.18.ebuild: + Switched SRC_URI to main gnu mirror. + + 07 Dec 2007; Markus Dittrich <markusle@gentoo.org> + -files/octave-2.9.12-test-fix.patch, -files/octave-2.9.14-test-fix.patch, + +files/octave-2.9.18-test-fix.patch, -octave-2.9.14.ebuild, + -octave-2.9.15.ebuild, +octave-2.9.18.ebuild: + Version bump. + + 20 Oct 2007; Markus Dittrich <markusle@gentoo.org> ChangeLog: + Initial import. + diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest new file mode 100644 index 000000000..b211464e8 --- /dev/null +++ b/sci-mathematics/octave/Manifest @@ -0,0 +1,6 @@ +AUX octave-2.9.18-test-fix.patch 1241 RMD160 1cac3e4cd2cce480a184a8319ce0cb2d34503b2c SHA1 87905a77f3b9f63b56bd8c4ee8ae12e3a3c2ee4a SHA256 f72d643e3b9e143005dd450bb25a15ae87a41a0dcbbc34f3cced6da0f9980a3b +DIST octave-2.9.19.tar.bz2 9807420 RMD160 c0f7d7b384f3e2f51cdb7ee0360d4ddf52e4493a SHA1 1cee64ccbcce0aca2b771175fcfbca817c9ba705 SHA256 684165a4b7f45e02761dded6ecf50d57652d55beb2295cdac3b7518ec6dc02d8 +DIST octave-3.0.0.tar.bz2 9821575 RMD160 02fc58b63210ec99cfcad9dc2cee2ad1b6d11326 SHA1 874b3d40db5d882e37614ffa6cdb9fdd71e173f8 SHA256 f2351eed4f6505993275947802a35ecbc9b7e587ebbb5ee7ba72d54280de4418 +EBUILD octave-2.9.19.ebuild 3730 RMD160 83bede43b38adeeb947a73eab8b1a72dfd2b423c SHA1 91e0f8ca90ce245fe008f0fe1b4c19f31c6c731b SHA256 b9ed09502561add7639a7b0494b3f101583ad4cfe49f1d818d3342c39be4d42b +EBUILD octave-3.0.0.ebuild 4106 RMD160 650326ed81123a3feb1ad4fb1ff6355650e5aa55 SHA1 6fd0586593804c6f1610ea86e9e3e8e5a63c90b5 SHA256 b48d5c15c9a6518abc7861d1353210f783974fe5a2fca79eab408c6b607068a1 +MISC ChangeLog 777 RMD160 056cd970774fa495ed02dceaef76466083f4da8c SHA1 092325e7257dfd667be8477a9184f26959287ed4 SHA256 e421e73a1d2c0f399523afb40df25ac9f72c8c526041e91a2e5c73cde6cd545f diff --git a/sci-mathematics/octave/files/octave-2.9.18-test-fix.patch b/sci-mathematics/octave/files/octave-2.9.18-test-fix.patch new file mode 100644 index 000000000..a575de886 --- /dev/null +++ b/sci-mathematics/octave/files/octave-2.9.18-test-fix.patch @@ -0,0 +1,28 @@ +diff -Naur octave-2.9.18/scripts/general/interpft.m octave-2.9.18.new/scripts/general/interpft.m +--- octave-2.9.18/scripts/general/interpft.m 2007-10-12 17:27:21.000000000 -0400 ++++ octave-2.9.18.new/scripts/general/interpft.m 2007-12-07 17:19:57.000000000 -0500 +@@ -108,7 +108,6 @@ + %! x = [0:10]'; y = sin(x); n = length (x); + %!assert (interpft(y, n), y, eps); + %!assert (interpft(y', n), y', eps); +-%!assert (interpft([y,y],n), [y,y], eps); + + %!error (interpft(y,n,0)) + %!error (interpft(y,[n,n])) +diff -Naur octave-2.9.18/test/test_system.m octave-2.9.18.new/test/test_system.m +--- octave-2.9.18/test/test_system.m 2007-10-12 17:27:37.000000000 -0400 ++++ octave-2.9.18.new/test/test_system.m 2007-12-07 17:25:15.000000000 -0500 +@@ -376,13 +376,6 @@ + %% test/octave.test/system/file_in_path-4.m + %!error <Invalid call to file_in_path.*> file_in_path ("foo", "bar", "baz", "ooka"); + +-%% test/octave.test/system/tilde_expand-1.m +-%!test +-%! x = getpwuid (getuid ()); +-%! assert((strcmp (x.dir, tilde_expand ("~")) +-%! && strcmp (x.dir, tilde_expand (sprintf ("~%s", x.name))) +-%! && strcmp ("foobar", tilde_expand ("foobar")))); +- + %% test/octave.test/system/tilde_expand-2.m + %!error <Invalid call to tilde_expand.*> tilde_expand (); + diff --git a/sci-mathematics/octave/octave-2.9.19.ebuild b/sci-mathematics/octave/octave-2.9.19.ebuild new file mode 100644 index 000000000..ab3a153f5 --- /dev/null +++ b/sci-mathematics/octave/octave-2.9.19.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.73-r1.ebuild,v 1.2 2006/11/03 15:44:39 markusle Exp $ + +inherit flag-o-matic fortran autotools + +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.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" + +SLOT="0" +IUSE="emacs readline zlib doc hdf5 curl fftw" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-util/dejagnu + virtual/blas + virtual/lapack + dev-libs/libpcre + >=sys-libs/ncurses-5.2-r3 + >=sci-visualization/gnuplot-3.7.1-r3 + >=sci-mathematics/glpk-4.15 + >=dev-util/gperf-2.7.2 + >=media-libs/qhull-3.1-r1 + virtual/latex-base + fftw? ( >=sci-libs/fftw-3.1.2 ) + zlib? ( sys-libs/zlib ) + hdf5? ( sci-libs/hdf5 ) + curl? ( net-misc/curl ) + !=app-text/texi2html-1.70" + +FORTRAN="gfortran g77 f2c" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-2.9.18-test-fix.patch +} + +src_compile() { + local myconf="--localstatedir=/var/state/octave --enable-rpath" + + # force use of external blas, lapack, fftw + myconf="${myconf} --with-blas=blas --with-lapack=lapack" + myconf="${myconf} --enable-static --enable-shared --enable-dl" + + # disable sparse matrix stuff for now + myconf="${myconf} --without-umfpack --without-colamd" + myconf="${myconf} --without-ccolamd --without-cholmod --without-cxsparse" + + if [[ "${FORTRANC}" == "g77" ]]; then + myconf="${myconf} --with-f77" + elif [[ "${FORTRANC}" == "f2c" ]]; then + myconf="${myconf} --with-f2c" + fi + + econf \ + $(use_with hdf5) \ + $(use_with curl) \ + $(use_with zlib) \ + $(use_with fftw) \ + $(use_enable readline) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + cd "${S}" + make install DESTDIR="${D}" || die "make install failed" + if use doc; then + octave-install-doc || die "Octave doc install failed" + fi + if use emacs; then + cd emacs + exeinto /usr/bin + doexe octave-tags || die "Failed to install octave-tags" + doman octave-tags.1 || die "Failed to install octave-tags.1" + for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do + insinto ${emacsdir} + doins *.el || die "Failed to install emacs files" + done + cd .. + fi + dodir /etc/env.d || die + echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave \ + || die "Failed to set up env.d files" + + # Fixes ls-R files to remove /var/tmp/portage references. + sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R && \ + sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || \ + die "Failed to fix ls-R files." +} + +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.pdf || die + doins doc/interpreter/octave.pdf || die + doins doc/liboctave/liboctave.pdf || die + doins doc/refcard/refcard-a4.pdf || die + doins doc/refcard/refcard-legal.pdf || die + doins doc/refcard/refcard-letter.pdf || die +} diff --git a/sci-mathematics/octave/octave-3.0.0.ebuild b/sci-mathematics/octave/octave-3.0.0.ebuild new file mode 100644 index 000000000..16bc4d7dd --- /dev/null +++ b/sci-mathematics/octave/octave-3.0.0.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.73-r1.ebuild,v 1.2 2006/11/03 15:44:39 markusle Exp $ + +inherit flag-o-matic fortran autotools xemacs-elisp-common + +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.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" + +SLOT="0" +IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-util/dejagnu + virtual/blas + virtual/lapack + dev-libs/libpcre + >=sys-libs/ncurses-5.2-r3 + >=sci-visualization/gnuplot-3.7.1-r3 + >=sci-mathematics/glpk-4.15 + >=dev-util/gperf-2.7.2 + >=media-libs/qhull-3.1-r1 + virtual/latex-base + fftw? ( >=sci-libs/fftw-3.1.2 ) + zlib? ( sys-libs/zlib ) + hdf5? ( sci-libs/hdf5 ) + curl? ( net-misc/curl ) + xemacs? ( virtual/xemacs ) + sparse? ( sci-libs/umfpack + sci-libs/colamd + sci-libs/ccolamd + sci-libs/cholmod + sci-libs/cxsparse ) + !=app-text/texi2html-1.70" + +FORTRAN="gfortran g77 f2c" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-2.9.18-test-fix.patch +} + +src_compile() { + local myconf="--localstatedir=/var/state/octave --enable-rpath" + + # force use of external blas, lapack, fftw + myconf="${myconf} --with-blas=blas --with-lapack=lapack" + myconf="${myconf} --enable-static --enable-shared --enable-dl" + + # disable sparse matrix stuff for now + local sparse_conf; + if use sparse; then + sparse_conf="--with-umfpack --with-colamd --with-ccolamd" + sparse_conf="${sparse_conf} --with-cholmod --with-cxsparse" + else + sparse_conf="--without-umfpack --without-colamd --without-ccolamd" + sparse_conf="${sparse_conf} --without-cholmod --without-cxsparse" + fi + myconf="${myconf} ${sparse_conf}" + + if [[ "${FORTRANC}" == "g77" ]]; then + myconf="${myconf} --with-f77" + elif [[ "${FORTRANC}" == "f2c" ]]; then + myconf="${myconf} --with-f2c" + fi + + econf \ + $(use_with hdf5) \ + $(use_with curl) \ + $(use_with zlib) \ + $(use_with fftw) \ + $(use_enable readline) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" + + if use xemacs; then + cd "${S}/emacs" + xemacs-elisp-comp *.el + fi +} + +src_install() { + cd "${S}" + make install DESTDIR="${D}" || die "make install failed" + if use doc; then + octave-install-doc || die "Octave doc install failed" + fi + if use emacs || use xemacs; then + cd emacs + exeinto /usr/bin + doexe octave-tags || die "Failed to install octave-tags" + doman octave-tags.1 || die "Failed to install octave-tags.1" + if use xemacs; then + xemacs-elisp-install ${PN} *.el *.elc + fi + cd .. + fi + dodir /etc/env.d || die + echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave \ + || die "Failed to set up env.d files" + + # Fixes ls-R files to remove /var/tmp/portage references. + sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R && \ + sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || \ + die "Failed to fix ls-R files." +} + +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.pdf || die + doins doc/interpreter/octave.pdf || die + doins doc/liboctave/liboctave.pdf || die + doins doc/refcard/refcard-a4.pdf || die + doins doc/refcard/refcard-legal.pdf || die + doins doc/refcard/refcard-letter.pdf || die +} |