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 1QuCy7-0004a1-QQ for garchives@archives.gentoo.org; Fri, 19 Aug 2011 00:29:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 854AF21C092; Fri, 19 Aug 2011 00:29:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E5DB21C092 for ; Fri, 19 Aug 2011 00:29:43 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8428E1B4039 for ; Fri, 19 Aug 2011 00:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A6C3280040 for ; Fri, 19 Aug 2011 00:29:41 +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: <5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0.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.1-r2.ebuild X-VCS-Directories: dev-cpp/eigen/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: 5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0 Date: Fri, 19 Aug 2011 00:29:41 +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: X-Archives-Hash: 76ec1b2491e95ea53b66acb14fdefb22 commit: 5663e5fa9166d83a5e5e8f5c99ec0ae75a342cf0 Author: Andrea Arteaga gmail com> AuthorDate: Fri Aug 19 00:29:20 2011 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Fri Aug 19 00:29:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D5663e5fa Added eigen-3.0.1-r2. --- dev-cpp/eigen/ChangeLog | 3 + dev-cpp/eigen/eigen-3.0.1-r2.ebuild | 81 +++++++++++++++++++++++++++++= ++++++ 2 files changed, 84 insertions(+), 0 deletions(-) diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog index fadff36..a3a9de0 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/0= 3/25 16:01:28 jlec Exp $ =20 + 18 Aug 2011; Andrea Arteaga +eigen-3.0.1-r2.ebu= ild: + Imported from bicatali overlay. Updated Manifest. + *eigen-9999 (18 Aug 2011) =20 18 Aug 2011; Andrea Arteaga +eigen-9999.ebuild, 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 0000000..62dca95 --- /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=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}"/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 + 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 +}