aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2011-08-29 15:50:50 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2011-08-29 15:50:50 +0200
commitbe045212e8821bee3c21559120d177b4d4556250 (patch)
treea7b7641aee8dd35765c624334d742050aab1b349 /dev-cpp/eigen
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/sci (diff)
downloadsci-be045212e8821bee3c21559120d177b4d4556250.tar.gz
sci-be045212e8821bee3c21559120d177b4d4556250.tar.bz2
sci-be045212e8821bee3c21559120d177b4d4556250.zip
Version bump.
Diffstat (limited to 'dev-cpp/eigen')
-rw-r--r--dev-cpp/eigen/ChangeLog5
-rw-r--r--dev-cpp/eigen/Manifest4
-rw-r--r--dev-cpp/eigen/eigen-3.0.2.ebuild82
3 files changed, 90 insertions, 1 deletions
diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog
index 3132ef4df..1a25afec4 100644
--- a/dev-cpp/eigen/ChangeLog
+++ b/dev-cpp/eigen/ChangeLog
@@ -2,6 +2,11 @@
# 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 $
+* eigen-3.0.2 (29 Aug 2011)
+
+ 29 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> eigen-3.0.2.ebuild
+ Version bump.
+
19 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> eigen-9999.ebuild
Removed ~x86 and ~amd64 keyworkds (mask).
diff --git a/dev-cpp/eigen/Manifest b/dev-cpp/eigen/Manifest
index 38a7e680b..25720848e 100644
--- a/dev-cpp/eigen/Manifest
+++ b/dev-cpp/eigen/Manifest
@@ -1,5 +1,7 @@
DIST eigen-3.0.1.tar.bz2 903484 RMD160 ac3343dddc208cada82d316b78b1b34d7031eafe SHA1 6fe629cd1eaef1a44430a068ff7202fc27209ee4 SHA256 d4d10aabe3fb92b2eadf71a0f15f0129864c6f80def31bdbd2a8d8ead132e5a6
+DIST eigen-3.0.2.tar.bz2 955760 RMD160 7686dc72ac8ee96cb055d4bca8cd6da526d5780c SHA1 2bcc7a6b415f5c75b5e061a399c3f9ab9aadb708 SHA256 cd76169b426f89b667db24beaaaf2d982b48664d9615ad781bdf9e83f0be5e5f
EBUILD eigen-3.0.1-r2.ebuild 2034 RMD160 588c2a9b2028a2726cbaa5bd4e38703e2134d676 SHA1 bbf2cadbae809f103b48deae840014778c99c316 SHA256 1ab396b9bfb426aca8094ac1c192b1caf284e5147af1c810d7560495c374c923
+EBUILD eigen-3.0.2.ebuild 2102 RMD160 f7edaeb63f785a257ec0e7438f18656438012e7e SHA1 dfd7868d9ab03fb7ee0bf81f6d6a045a910dbf2e SHA256 65ceb6486a4ee4c078a406280ad37ebaf2754097861a6bc1b16dcc2d2c98a313
EBUILD eigen-9999.ebuild 1961 RMD160 9ff6058e146b2609c1a66665f23e67cbd62580b2 SHA1 b0f02fed55bc0985c52522384c00708f2265c804 SHA256 a01f58d6df312580591caf43ac9f750165c9ebcbe34fd1f08d5b825f5e83458f
-MISC ChangeLog 6717 RMD160 12684d2e322ab11fa921125db6e4c4bf4a3d8f05 SHA1 204b08252596a51cda84a9604277b913d3ad201b SHA256 539e5fb447ad0c9f4a4f4e30997fa4cded4f483c9285496dbe6d6f629135be38
+MISC ChangeLog 6835 RMD160 a55bcdd43635076b24bca99b9e0dfd32a573e7b7 SHA1 4bedce6dffb05c3a51833d17f31437798d56999a SHA256 411693400be744252cf92e3cafeea59bf64b77eff678a28e3853f3bdb51005cf
MISC metadata.xml 862 RMD160 c350c291df4c6b432a8c4d3094d9bd9f23fcbf15 SHA1 e05bd963b1e7eee9889ce01bed367dfaba71bedd SHA256 77d97c43534f73b933fa724698acae16705bf86ad32d9faf47bf020f5d8277fb
diff --git a/dev-cpp/eigen/eigen-3.0.2.ebuild b/dev-cpp/eigen/eigen-3.0.2.ebuild
new file mode 100644
index 000000000..9b21428f4
--- /dev/null
+++ b/dev-cpp/eigen/eigen-3.0.2.ebuild
@@ -0,0 +1,82 @@
+# 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
+ #TOFIX: lapack implementation needs a Requires: field in pc file.
+ 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
+}