diff options
author | grozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-09-25 09:10:56 +0000 |
---|---|---|
committer | grozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-09-25 09:10:56 +0000 |
commit | 8efebcb8734489e3712324b33df30436158b8401 (patch) | |
tree | fc82bedc3094ffdf1a2d9e4b450ff991575a15f0 /sci-mathematics | |
parent | metis: fixed autotools patch and license (diff) | |
download | sci-8efebcb8734489e3712324b33df30436158b8401.tar.gz sci-8efebcb8734489e3712324b33df30436158b8401.tar.bz2 sci-8efebcb8734489e3712324b33df30436158b8401.zip |
octave-2.9.14 (seems to work fine on my x86 without any patches)
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@747 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/octave/Manifest | 8 | ||||
-rw-r--r-- | sci-mathematics/octave/files/digest-octave-2.9.14 | 3 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-2.9.14.ebuild | 119 |
3 files changed, 130 insertions, 0 deletions
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest index 7a0a07b76..32b2aa4df 100644 --- a/sci-mathematics/octave/Manifest +++ b/sci-mathematics/octave/Manifest @@ -7,10 +7,18 @@ MD5 a56e9a3f878a4e3c00121c64a84e7d2f files/octave-2.9.12-test-fix.patch 1991 RMD160 bc2978cc2f68dfb91bf2d62ef9894af1a201cd4d files/octave-2.9.12-test-fix.patch 1991 SHA256 059d52c5f36beb7ce496a57edde87e61788f617051329b0936783f6cc85a4379 files/octave-2.9.12-test-fix.patch 1991 DIST octave-2.9.12.tar.bz2 7699564 RMD160 dcb34351791fe3c00b93a6f173c59a534502f561 SHA1 3b2435d24e4ae8d34d8ef1c5d82c02a0419c5af9 SHA256 82a7c2b380d67e9c65eb5a5c8d6d39590e9caa72015967e68636ba0a94281fc1 +DIST octave-2.9.14.tar.bz2 9405249 RMD160 d5b9904501cabdea63329d116c4c8e6d3716327b SHA1 f97ae13c931276a359312ceb5f957df23d723c6a SHA256 8a6a793b8a088f8a59965faf2198c5d5b3a62ad988cc6b93ad485ca39b686674 EBUILD octave-2.9.12.ebuild 3887 RMD160 b826ae4fb82c57ae64013e026d3f89b071e132e0 SHA1 7462c77744b5ba5da410bb244c7c1f3ca238d42e SHA256 a2303a49e94559a20a60fba70b3661b0340d3a787ffefaf502ef8f69b454f245 MD5 3aaf04ec99323a0bb4c8f7d286ba03cf octave-2.9.12.ebuild 3887 RMD160 b826ae4fb82c57ae64013e026d3f89b071e132e0 octave-2.9.12.ebuild 3887 SHA256 a2303a49e94559a20a60fba70b3661b0340d3a787ffefaf502ef8f69b454f245 octave-2.9.12.ebuild 3887 +EBUILD octave-2.9.14.ebuild 3753 RMD160 2291086e746a37edd722036a08fd329abd53af6f SHA1 cf27ae14a46caaba98e19c1866d30e4fac4c7a71 SHA256 fe9e23958ca881e51e814bd29f409a52b5928aa57d276a28f220248602f7c1ea +MD5 77ec2999d7dd7623cab9736dac6f572b octave-2.9.14.ebuild 3753 +RMD160 2291086e746a37edd722036a08fd329abd53af6f octave-2.9.14.ebuild 3753 +SHA256 fe9e23958ca881e51e814bd29f409a52b5928aa57d276a28f220248602f7c1ea octave-2.9.14.ebuild 3753 MD5 f9baf04ed82d6e7a5b0b3bbaa5b8b4a9 files/digest-octave-2.9.12 247 RMD160 f18d9e753f361e909d10d00459a9eec6e51b8914 files/digest-octave-2.9.12 247 SHA256 9b5bda860bf0f80d04c3dd4fd9f84a3ed89939c1871832757a490f2b1d0ed266 files/digest-octave-2.9.12 247 +MD5 2511ea5129d26d3ee8695142d649124a files/digest-octave-2.9.14 247 +RMD160 161278f1878ad217f0c5d36c18cca5658caaa7aa files/digest-octave-2.9.14 247 +SHA256 2ae31d46476b69d024885cef85cb1bc5ffc1db0da2c0c493a0f8d8a997e5f023 files/digest-octave-2.9.14 247 diff --git a/sci-mathematics/octave/files/digest-octave-2.9.14 b/sci-mathematics/octave/files/digest-octave-2.9.14 new file mode 100644 index 000000000..c097b2a45 --- /dev/null +++ b/sci-mathematics/octave/files/digest-octave-2.9.14 @@ -0,0 +1,3 @@ +MD5 9c258c9320709c9ea78d24bd3d45e45f octave-2.9.14.tar.bz2 9405249 +RMD160 d5b9904501cabdea63329d116c4c8e6d3716327b octave-2.9.14.tar.bz2 9405249 +SHA256 8a6a793b8a088f8a59965faf2198c5d5b3a62ad988cc6b93ad485ca39b686674 octave-2.9.14.tar.bz2 9405249 diff --git a/sci-mathematics/octave/octave-2.9.14.ebuild b/sci-mathematics/octave/octave-2.9.14.ebuild new file mode 100644 index 000000000..f852bf07b --- /dev/null +++ b/sci-mathematics/octave/octave-2.9.14.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2006 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 + +# Copied shamelessly from markusle's devspace at http://dev.gentoo.org/~markusle/octave-overlay/ + +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/${PN}/${P}.tar.bz2" + +SLOT="0" +IUSE="emacs readline zlib doc hdf5 curl" +# KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-util/dejagnu + virtual/blas + virtual/lapack + dev-libs/libpcre + virtual/tetex + >=sys-libs/ncurses-5.2-r3 + >=sci-visualization/gnuplot-3.7.1-r3 + >=sci-libs/fftw-3.1.2 + >=sci-mathematics/glpk-4.15 + >=dev-util/gperf-2.7.2 + zlib? ( sys-libs/zlib ) + hdf5? ( sci-libs/hdf5 ) + curl? ( net-misc/curl ) + !=app-text/texi2html-1.70" + +FORTRAN="gfortran g77 f2c" + +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} --with-fftw" + 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_enable readline) \ + ${myconf} \ + || die "econf failed" + + emake -j1 || 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 +} |