From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RvyBa-0007ah-NL for garchives@archives.gentoo.org; Fri, 10 Feb 2012 21:39:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93B40E07CD; Fri, 10 Feb 2012 21:39:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4CFB9E07CD for ; Fri, 10 Feb 2012 21:39:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5670064272 for ; Fri, 10 Feb 2012 21:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 14DB5E53FF for ; Fri, 10 Feb 2012 21:39:09 +0000 (UTC) From: "Andrea Arteaga" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Arteaga" Message-ID: <1fc896166389179cfd0f34a83e6ed06ee8aa499c.spiros@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-cpp/eigen/ X-VCS-Repository: proj/sci X-VCS-Files: dev-cpp/eigen/ChangeLog dev-cpp/eigen/eigen-3.0.5.ebuild X-VCS-Directories: dev-cpp/eigen/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: 1fc896166389179cfd0f34a83e6ed06ee8aa499c Date: Fri, 10 Feb 2012 21:39:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 983c37c8-54ce-4241-ac92-92706e457335 X-Archives-Hash: fcd6f8900f4391b8aade1126931bdd41 commit: 1fc896166389179cfd0f34a83e6ed06ee8aa499c Author: Andrea Arteaga gmail com> AuthorDate: Fri Feb 10 21:38:13 2012 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Fri Feb 10 21:38:13 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D1fc89616 [dev-cpp/eigen] version bump. --- dev-cpp/eigen/ChangeLog | 5 ++ dev-cpp/eigen/eigen-3.0.5.ebuild | 82 ++++++++++++++++++++++++++++++++= ++++++ 2 files changed, 87 insertions(+), 0 deletions(-) diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog index 67289a1..dab4e97 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/0= 3/25 16:01:28 jlec Exp $ =20 +* eigen-3.0.5 (10 Feb 2012) + + 10 Feb 2012; Andrea Arteaga eigen-3.0.5.ebuild + Version bump. + *eigen-3.0.4 (20 Dec 2011) =20 20 Dec 2011; S=C3=A9bastien Fabbro -eigen-3.0.1-= r2.ebuild, diff --git a/dev-cpp/eigen/eigen-3.0.5.ebuild b/dev-cpp/eigen/eigen-3.0.5= .ebuild new file mode 100644 index 0000000..57a9557 --- /dev/null +++ b/dev-cpp/eigen/eigen-3.0.5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D4 + +inherit cmake-utils alternatives-2 + +DESCRIPTION=3D"C++ template library for linear algebra" +HOMEPAGE=3D"http://eigen.tuxfamily.org/" +SRC_URI=3D"http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.ta= r.bz2" + +LICENSE=3D"|| ( LGPL-3 GPL-2 )" +KEYWORDS=3D"~amd64 ~x86" +SLOT=3D"3" +IUSE=3D"adolc fortran fftw doc gmp sparse static-libs test" + +CDEPEND=3D"adolc? ( sci-libs/adolc[sparse?] ) + fftw? ( >=3Dsci-libs/fftw-3 ) + gmp? ( dev-libs/gmp dev-libs/mpfr ) + sparse? ( dev-cpp/sparsehash + sci-libs/cholmod + sci-libs/superlu + sci-libs/umfpack )" + +DEPEND=3D"doc? ( app-doc/doxygen ) + test? ( ${CDEPEND} )" + +RDEPEND=3D"!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=3D( + -DEIGEN_BUILD_BTL=3DOFF + ) + CMAKE_BUILD_TYPE=3D"release" cmake-utils_src_configure + use fortran && FORTRAN_LIBS=3D"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}"/doc/html/* + local x + for x in ${FORTRAN_LIBS}; do + local libname=3D"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=3D"${EPREFIX}"/usr + libdir=3D\${prefix}/$(get_libdir) + includedir=3D\${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 +}