summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-06-29 08:51:43 +0000
committerAlexis Ballier <aballier@gentoo.org>2015-06-29 08:51:43 +0000
commitb66b9555be4ceca641dafdce7e14509ee5a76171 (patch)
treee3e81a0dc6c0cf8f5734b153ff5c1e4f3225fe1c /dev-cpp
parent>=asm-5 is actually required. Closes bug #553408. (diff)
downloadgentoo-2-b66b9555be4ceca641dafdce7e14509ee5a76171.tar.gz
gentoo-2-b66b9555be4ceca641dafdce7e14509ee5a76171.tar.bz2
gentoo-2-b66b9555be4ceca641dafdce7e14509ee5a76171.zip
Version bump. Install FindEigen3.cmake as some packages started to use it since debian ships it.
Signed-off-by: Alexis Ballier <aballier@gentoo.org> (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/eigen/ChangeLog8
-rw-r--r--dev-cpp/eigen/eigen-3.2.5.ebuild69
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog
index 6dd2158131ca..78ec65390b11 100644
--- a/dev-cpp/eigen/ChangeLog
+++ b/dev-cpp/eigen/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-cpp/eigen
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v 1.88 2015/02/06 18:19:16 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v 1.89 2015/06/29 08:51:43 aballier Exp $
+
+*eigen-3.2.5 (29 Jun 2015)
+
+ 29 Jun 2015; Alexis Ballier <aballier@gentoo.org> +eigen-3.2.5.ebuild:
+ Version bump. Install FindEigen3.cmake as some packages started to use it
+ since debian ships it.
*eigen-3.2.4 (06 Feb 2015)
diff --git a/dev-cpp/eigen/eigen-3.2.5.ebuild b/dev-cpp/eigen/eigen-3.2.5.ebuild
new file mode 100644
index 000000000000..b6949ce4f0f1
--- /dev/null
+++ b/dev-cpp/eigen/eigen-3.2.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/eigen-3.2.5.ebuild,v 1.1 2015/06/29 08:51:43 aballier Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="C++ template library for linear algebra: vectors, matrices, and related algorithms"
+HOMEPAGE="http://eigen.tuxfamily.org/"
+SRC_URI="http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="LGPL-2 GPL-3"
+SLOT="3"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc"
+
+DEPEND="doc? ( app-doc/doxygen[dot,latex] )"
+RDEPEND="!dev-cpp/eigen:0"
+
+src_unpack() {
+ default
+ mv ${PN}* ${P} || die
+}
+
+src_prepare() {
+ sed -i CMakeLists.txt \
+ -e "/add_subdirectory(demos/d" \
+ -e "/add_subdirectory(blas/d" \
+ -e "/add_subdirectory(lapack/d" \
+ || die "sed disable unused bundles failed"
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ CMAKE_BUILD_TYPE="release"
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc; then
+ cmake-utils_src_compile doc
+ fi
+}
+
+src_test() {
+ local mycmakeargs=(
+ -DEIGEN_BUILD_TESTS=ON
+ -DEIGEN_TEST_NO_FORTRAN=ON
+ -DEIGEN_TEST_NO_OPENGL=ON
+ )
+ cmake-utils_src_configure
+ cmake-utils_src_compile buildtests
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc; then
+ cd "${BUILD_DIR}"/doc
+ dohtml -r html/*
+ fi
+
+ # Debian installs it and some projects started using it.
+ insinto /usr/share/cmake/Modules/
+ doins "${S}/cmake/FindEigen3.cmake"
+}