aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-10-25 17:54:01 +0200
committerJustin Lecher <jlec@gentoo.org>2012-10-25 17:54:01 +0200
commit523e75bce6f5acc7354ae8a4e09d270d6570137e (patch)
tree6fcc781c4704223ec2f97c2bc0251e444c05bb73 /dev-cpp/eigen/eigen-3.0.6-r1.ebuild
parentUpdate M2 live ebuild (diff)
downloadsci-523e75bce6f5acc7354ae8a4e09d270d6570137e.tar.gz
sci-523e75bce6f5acc7354ae8a4e09d270d6570137e.tar.bz2
sci-523e75bce6f5acc7354ae8a4e09d270d6570137e.zip
dev-cpp/eigen: Use vcs-snapshot.eclass, correct usage of fortran-2.eclass, some layout improvements
Package-Manager: portage-2.2.0_alpha141
Diffstat (limited to 'dev-cpp/eigen/eigen-3.0.6-r1.ebuild')
-rw-r--r--dev-cpp/eigen/eigen-3.0.6-r1.ebuild37
1 files changed, 18 insertions, 19 deletions
diff --git a/dev-cpp/eigen/eigen-3.0.6-r1.ebuild b/dev-cpp/eigen/eigen-3.0.6-r1.ebuild
index c98fb2ec1..1ad9b1556 100644
--- a/dev-cpp/eigen/eigen-3.0.6-r1.ebuild
+++ b/dev-cpp/eigen/eigen-3.0.6-r1.ebuild
@@ -4,39 +4,37 @@
EAPI=4
-inherit cmake-utils alternatives-2 fortran-2 multilib
+FORTRAN_NEEDED=fortran
+
+inherit alternatives-2 cmake-utils fortran-2 multilib vcs-snapshot
DESCRIPTION="C++ template library for linear algebra"
HOMEPAGE="http://eigen.tuxfamily.org/"
SRC_URI="http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
+SLOT="3"
LICENSE="|| ( LGPL-3 GPL-2 )"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-SLOT="3"
IUSE="adolc fortran fftw doc gmp sparse static-libs test"
-CDEPEND="adolc? ( sci-libs/adolc[sparse?] )
+CDEPEND="
+ adolc? ( sci-libs/adolc[sparse?] )
fftw? ( >=sci-libs/fftw-3 )
gmp? ( dev-libs/gmp dev-libs/mpfr )
- sparse? ( dev-cpp/sparsehash
- sci-libs/cholmod[metis]
- sci-libs/superlu
- sci-libs/umfpack )"
+ sparse? (
+ dev-cpp/sparsehash
+ sci-libs/cholmod[metis]
+ sci-libs/superlu
+ sci-libs/umfpack
+ )"
-DEPEND="doc? ( app-doc/doxygen[dot,latex] )
+DEPEND="
+ doc? ( app-doc/doxygen[dot,latex] )
test? ( ${CDEPEND} )"
-
-RDEPEND="!dev-cpp/eigen:0
+RDEPEND="
+ !dev-cpp/eigen:0
${CDEPEND}"
-pkg_setup() {
- use fortran && fortran-2_pkg_setup
-}
-
-src_unpack() {
- unpack ${A} && mv ${PN}* ${P}
-}
-
src_configure() {
# TOFIX: static-libs for blas are always built with PIC
# TOFIX: is it worth fixing all the automagic given no library is built?
@@ -46,7 +44,8 @@ src_configure() {
$(cmake-utils_use !fortran EIGEN_TEST_NO_FORTRAN)
)
CMAKE_BUILD_TYPE="release" cmake-utils_src_configure
- use fortran && FORTRAN_LIBS="blas" # lapack not ready yet
+ # lapack not ready yet?
+ use fortran && FORTRAN_LIBS="blas"
}
src_compile() {