summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/octave/octave-3.4.3-r1.ebuild')
-rw-r--r--sci-mathematics/octave/octave-3.4.3-r1.ebuild28
1 files changed, 22 insertions, 6 deletions
diff --git a/sci-mathematics/octave/octave-3.4.3-r1.ebuild b/sci-mathematics/octave/octave-3.4.3-r1.ebuild
index 559671233f4b..906d5112fad0 100644
--- a/sci-mathematics/octave/octave-3.4.3-r1.ebuild
+++ b/sci-mathematics/octave/octave-3.4.3-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.3-r1.ebuild,v 1.2 2012/01/17 17:17:12 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.3-r1.ebuild,v 1.3 2012/01/19 15:06:57 bicatali Exp $
EAPI=4
-inherit eutils base autotools
+inherit eutils base autotools toolchain-funcs
DESCRIPTION="High-level interactive language for numerical computations"
LICENSE="GPL-3"
@@ -11,7 +11,8 @@ HOMEPAGE="http://www.octave.org/"
SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
SLOT="0"
-IUSE="curl doc fftw +glpk +imagemagick opengl +qhull +qrupdate readline +sparse X zlib"
+IUSE="curl doc fftw +glpk +imagemagick opengl openmp +qhull +qrupdate
+ readline +sparse static-libs X zlib"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="dev-libs/libpcre
@@ -45,15 +46,30 @@ DEPEND="${RDEPEND}
virtual/latex-base
dev-texlive/texlive-genericrecommended
sys-apps/texinfo )
+ dev-util/gperf
dev-util/pkgconfig"
+pkg_pretend() {
+ use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp && \
+ die "You have openmp enabled but your current gcc does not support it"
+}
+
src_prepare() {
- epatch "${FILESDIR}"/${PN}-3.4.0-{pkgbuilddir,help}.patch
+ epatch "${FILESDIR}"/${P}-{pkgbuilddir,help}.patch
eautoreconf
}
src_configure() {
# hdf5 disabled because not really useful (bug #299876)
+ local myconf="--without-magick"
+ if use imagemagick; then
+ if has_version media-gfx/graphicsmagick[cxx]; then
+ myconf="--with-magick=GraphicsMagick"
+ else
+ myconf="--with-magick=ImageMagick"
+ fi
+ fi
+
econf \
--localstatedir="${EPREFIX}/var/state/octave" \
--enable-shared \
@@ -66,7 +82,6 @@ src_configure() {
$(use_with fftw fftw3) \
$(use_with fftw fftw3f) \
$(use_with glpk) \
- $(use_with imagemagick magick) \
$(use_with opengl) \
$(use_with qhull) \
$(use_with qrupdate) \
@@ -76,7 +91,8 @@ src_configure() {
$(use_with sparse cholmod) \
$(use_with sparse cxsparse) \
$(use_with X x) \
- $(use_with zlib z)
+ $(use_with zlib z) \
+ ${myconf}
}
src_install() {