aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2011-08-19 02:29:20 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2011-08-19 02:29:20 +0200
commit5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0 (patch)
treef7b6bb3e867188b6c6ee721f43b511fa51de0947 /dev-cpp/eigen
parentAdded eigen-9999. (diff)
downloadsci-5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0.tar.gz
sci-5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0.tar.bz2
sci-5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0.zip
Added eigen-3.0.1-r2.
Diffstat (limited to 'dev-cpp/eigen')
-rw-r--r--dev-cpp/eigen/ChangeLog3
-rw-r--r--dev-cpp/eigen/Manifest4
-rw-r--r--dev-cpp/eigen/eigen-3.0.1-r2.ebuild81
3 files changed, 87 insertions, 1 deletions
diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog
index fadff3642..a3a9de039 100644
--- a/dev-cpp/eigen/ChangeLog
+++ b/dev-cpp/eigen/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v 1.44 2011/03/25 16:01:28 jlec Exp $
+ 18 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> +eigen-3.0.1-r2.ebuild:
+ Imported from bicatali overlay. Updated Manifest.
+
*eigen-9999 (18 Aug 2011)
18 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> +eigen-9999.ebuild,
diff --git a/dev-cpp/eigen/Manifest b/dev-cpp/eigen/Manifest
index 4fc711f90..f3599da10 100644
--- a/dev-cpp/eigen/Manifest
+++ b/dev-cpp/eigen/Manifest
@@ -1,3 +1,5 @@
+DIST eigen-3.0.1.tar.bz2 903484 RMD160 ac3343dddc208cada82d316b78b1b34d7031eafe SHA1 6fe629cd1eaef1a44430a068ff7202fc27209ee4 SHA256 d4d10aabe3fb92b2eadf71a0f15f0129864c6f80def31bdbd2a8d8ead132e5a6
+EBUILD eigen-3.0.1-r2.ebuild 2034 RMD160 588c2a9b2028a2726cbaa5bd4e38703e2134d676 SHA1 bbf2cadbae809f103b48deae840014778c99c316 SHA256 1ab396b9bfb426aca8094ac1c192b1caf284e5147af1c810d7560495c374c923
EBUILD eigen-9999.ebuild 1972 RMD160 3e7281079cb86c089f7f7a8ec041124da6e5870e SHA1 81e3d759332a76068ed45ef627562721b6758d5b SHA256 ae3279c96da02f7f64f3ca310e64eb21473c8fd452daf0e3ef211973f72fc679
-MISC ChangeLog 6440 RMD160 3d28729decc0194ac9aea7ade1ebd9641c2e6453 SHA1 fc1f50623179428545235b6631a04ddc4c7ef897 SHA256 cad5000b4b8f633edcd040cd9c24aacfe7e9649202b74f56dc643b56b195ea49
+MISC ChangeLog 6570 RMD160 a02d1a62875ba48ad4317cadd899f1ebf7f62ed7 SHA1 0c77081eadf75cb16699412765bdf60f93f7b20c SHA256 a47ec4abcaec0b65fdf59b58084bd98bc4db031c3b5247076879c21e9e816cbd
MISC metadata.xml 862 RMD160 c350c291df4c6b432a8c4d3094d9bd9f23fcbf15 SHA1 e05bd963b1e7eee9889ce01bed367dfaba71bedd SHA256 77d97c43534f73b933fa724698acae16705bf86ad32d9faf47bf020f5d8277fb
diff --git a/dev-cpp/eigen/eigen-3.0.1-r2.ebuild b/dev-cpp/eigen/eigen-3.0.1-r2.ebuild
new file mode 100644
index 000000000..62dca954b
--- /dev/null
+++ b/dev-cpp/eigen/eigen-3.0.1-r2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cmake-utils alternatives-2
+
+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"
+
+LICENSE="|| ( LGPL-3 GPL-2 )"
+KEYWORDS="~amd64 ~x86"
+SLOT="3"
+IUSE="adolc fortran fftw doc gmp sparse static-libs test"
+
+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
+ sci-libs/superlu
+ sci-libs/umfpack )"
+
+DEPEND="doc? ( app-doc/doxygen )
+ test? ( ${CDEPEND} )"
+
+RDEPEND="!dev-cpp/eigen:0
+ ${CDEPEND}"
+
+src_unpack() {
+ unpack ${A} && mv ${PN}* ${P}
+}
+
+src_configure() {
+ #TOFIX: static-libs for blas are always built with PIC
+ #TOFIX: BTL benchmarks
+ #TOFIX: is it worth fixing all the automagic given no library is built?
+ mycmakeargs=(
+ -DEIGEN_BUILD_BTL=OFF
+ )
+ CMAKE_BUILD_TYPE="release" cmake-utils_src_configure
+ use fortran && FORTRAN_LIBS="blas" # lapack not ready yet
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ pushd "${S}_build" > /dev/null
+ use doc && emake doc
+ use fortran && emake ${FORTRAN_LIBS}
+ use test && emake buildtests
+ popd > /dev/null
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dohtml -r "${CMAKE_BUILD_DIR}"/html/*
+ local x
+ for x in ${FORTRAN_LIBS}; do
+ local libname="eigen_${x}"
+ cd "${CMAKE_BUILD_DIR}"/${x}
+ dolib.so lib${libname}.so
+ use static-libs && newlib.a lib${libname}_static.a lib${libname}.a
+ cat <<-EOF > ${libname}.pc
+ prefix="${EPREFIX}"/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${PN}
+ Description: ${DESCRIPTION}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname}
+ Libs.private: -lm
+ EOF
+ alternatives_for ${x} eigen 0 \
+ /usr/$(get_libdir)/pkgconfig/${x}.pc ${libname}.pc
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${libname}.pc
+ done
+}