From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 38CDD1388C0 for ; Wed, 24 Feb 2016 18:27:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC59AE084C; Wed, 24 Feb 2016 18:27:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EB86E084C for ; Wed, 24 Feb 2016 18:27:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 264E43404A5 for ; Wed, 24 Feb 2016 18:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BAE4D8DC for ; Wed, 24 Feb 2016 18:27:40 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1456338459.a7f522cb19676c477b48a0c6a51dce9e9f45a3ed.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/eigen/, dev-cpp/eigen/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/eigen/eigen-3.2.8-r1.ebuild dev-cpp/eigen/files/eigen-3.2.7-adaolc-backport.patch dev-cpp/eigen/files/eigen-3.2.7-pastix-5.2-backport.patch dev-cpp/eigen/files/eigen-3.2.8-adaolc-backport.patch dev-cpp/eigen/files/eigen-3.2.8-pastix-5.2-backport.patch X-VCS-Directories: dev-cpp/eigen/files/ dev-cpp/eigen/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: a7f522cb19676c477b48a0c6a51dce9e9f45a3ed X-VCS-Branch: master Date: Wed, 24 Feb 2016 18:27:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 29199f9c-8de8-402b-a743-7972e3acb0d1 X-Archives-Hash: 6ae1bc23586888164d1740d81eaee629 commit: a7f522cb19676c477b48a0c6a51dce9e9f45a3ed Author: Justin Lecher gentoo org> AuthorDate: Wed Feb 24 18:27:26 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Feb 24 18:27:39 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7f522cb dev-cpp/eigen: Forward porting ebuild changes, Backwards the patches Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=575512 Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher gentoo.org> dev-cpp/eigen/eigen-3.2.8-r1.ebuild | 71 +++++++++++++++++++--- ...ort.patch => eigen-3.2.7-adaolc-backport.patch} | 0 ...patch => eigen-3.2.7-pastix-5.2-backport.patch} | 0 3 files changed, 63 insertions(+), 8 deletions(-) diff --git a/dev-cpp/eigen/eigen-3.2.8-r1.ebuild b/dev-cpp/eigen/eigen-3.2.8-r1.ebuild index 447ca29..d79230b 100644 --- a/dev-cpp/eigen/eigen-3.2.8-r1.ebuild +++ b/dev-cpp/eigen/eigen-3.2.8-r1.ebuild @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit cmake-utils +FORTRAN_NEEDED="test" + +inherit cmake-utils fortran-2 DESCRIPTION="C++ template library for linear algebra" HOMEPAGE="http://eigen.tuxfamily.org/" @@ -13,10 +15,43 @@ SRC_URI="https://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" +IUSE="altivec debug doc openmp test" +IUSE+=" cpu_flags_x86_sse2" +IUSE+=" cpu_flags_x86_sse3" +IUSE+=" cpu_flags_x86_sse4_1" +IUSE+=" cpu_flags_x86_sse4_2" +IUSE+=" cpu_flags_x86_ssse3" +#IUSE+=" cpu_flags_x86_x87" -DEPEND="doc? ( app-doc/doxygen[dot,latex] )" RDEPEND="!dev-cpp/eigen:0" +DEPEND=" + doc? ( app-doc/doxygen[dot,latex] ) + test? ( + dev-libs/gmp:0 + dev-libs/mpfr:0 + media-libs/freeglut + media-libs/glew + sci-libs/adolc + sci-libs/cholmod + sci-libs/fftw:3.0 + sci-libs/pastix + sci-libs/umfpack + sci-libs/scotch + sci-libs/spqr + sci-libs/superlu + dev-qt/qtcore:4 + virtual/opengl + virtual/pkgconfig + ) + " +# Missing: +# METIS-5 +# GOOGLEHASH + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.7-pastix-5.2-backport.patch + "${FILESDIR}"/${PN}-3.2.7-adaolc-backport.patch +) src_unpack() { default @@ -24,14 +59,27 @@ src_unpack() { } src_prepare() { + sed \ + -e 's:-g2::g' \ + -i cmake/EigenConfigureTesting.cmake || die + 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" + if ! use test; then + sed -i CMakeLists.txt \ + -e "/add_subdirectory(blas/d" \ + -e "/add_subdirectory(lapack/d" \ + || die "sed disable unused bundles failed" + fi + sed -i -e "/Unknown build type/d" CMakeLists.txt || die + sed \ + -e '/Cflags/s|:.*|: -I${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}|g' \ + -i eigen3.pc.in || die + cmake-utils_src_prepare } @@ -43,10 +91,17 @@ src_compile() { src_test() { local mycmakeargs=( -DEIGEN_BUILD_TESTS=ON - -DEIGEN_TEST_NO_FORTRAN=ON - -DEIGEN_TEST_NO_OPENGL=ON + -DEIGEN_TEST_ALTIVEC="$(usex altivec)" + -DEIGEN_TEST_OPENMP="$(usex openmp)" + -DEIGEN_TEST_SSE2="$(usex cpu_flags_x86_sse2)" + -DEIGEN_TEST_SSE3="$(usex cpu_flags_x86_sse3)" + -DEIGEN_TEST_SSE4_1="$(usex cpu_flags_x86_sse4_1)" + -DEIGEN_TEST_SSE4_2="$(usex cpu_flags_x86_sse4_2)" + -DEIGEN_TEST_SSSE3="$(usex cpu_flags_x86_ssse3)" +# -DEIGEN_TEST_X87="$(usex cpu_flags_x86_x87)" ) cmake-utils_src_configure + cmake-utils_src_compile blas cmake-utils_src_compile buildtests cmake-utils_src_test } diff --git a/dev-cpp/eigen/files/eigen-3.2.8-adaolc-backport.patch b/dev-cpp/eigen/files/eigen-3.2.7-adaolc-backport.patch similarity index 100% rename from dev-cpp/eigen/files/eigen-3.2.8-adaolc-backport.patch rename to dev-cpp/eigen/files/eigen-3.2.7-adaolc-backport.patch diff --git a/dev-cpp/eigen/files/eigen-3.2.8-pastix-5.2-backport.patch b/dev-cpp/eigen/files/eigen-3.2.7-pastix-5.2-backport.patch similarity index 100% rename from dev-cpp/eigen/files/eigen-3.2.8-pastix-5.2-backport.patch rename to dev-cpp/eigen/files/eigen-3.2.7-pastix-5.2-backport.patch