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 32F5A1384B4 for ; Fri, 4 Dec 2015 07:01:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9407B21C0D6; Fri, 4 Dec 2015 07:01:15 +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 D6D1D21C0D4 for ; Fri, 4 Dec 2015 07:01:14 +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 A5619340A1B for ; Fri, 4 Dec 2015 07:01:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 53A0FA1B for ; Fri, 4 Dec 2015 07:01:11 +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: <1449178103.04bf3cc14a5cf162b7f361e6fcbb4c9f01068ce8.jlec@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.2.7.ebuild X-VCS-Directories: dev-cpp/eigen/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 04bf3cc14a5cf162b7f361e6fcbb4c9f01068ce8 X-VCS-Branch: master Date: Fri, 4 Dec 2015 07:01:11 +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: e417a29a-bcec-4c3d-84e7-95f96818397f X-Archives-Hash: b0e1e81120fd73d240b21be5e2d44d1a commit: 04bf3cc14a5cf162b7f361e6fcbb4c9f01068ce8 Author: Ted Tanberry gmail com> AuthorDate: Thu Dec 3 21:28:23 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu Dec 3 21:28:23 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=04bf3cc1 dev-cpp/eigen: version bump to 3.2.7 Package-Manager: portage-2.2.26 dev-cpp/eigen/ChangeLog | 5 ++ dev-cpp/eigen/eigen-3.2.7.ebuild | 116 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/dev-cpp/eigen/ChangeLog b/dev-cpp/eigen/ChangeLog index bfb9224..cd01f65 100644 --- a/dev-cpp/eigen/ChangeLog +++ b/dev-cpp/eigen/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ +*eigen-3.2.7 (03 Dec 2015) + + 03 Dec 2015; Ted Tanberry +eigen-3.2.7.ebuild: + dev-cpp/eigen: version bump to 3.2.7 + *eigen-3.2.4 (16 Apr 2015) 16 Apr 2015; Justin Lecher +eigen-3.2.4.ebuild, diff --git a/dev-cpp/eigen/eigen-3.2.7.ebuild b/dev-cpp/eigen/eigen-3.2.7.ebuild new file mode 100644 index 0000000..cf14779 --- /dev/null +++ b/dev-cpp/eigen/eigen-3.2.7.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +FORTRAN_NEEDED=fortran + +if [[ ${PV} == "9999" ]] ; then + inherit mercurial + EHG_REPO_URI="https://bitbucket.org/eigen/eigen" + SRC_URI="" + KEYWORDS="" +else + inherit vcs-snapshot + SRC_URI=" + https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2 + https://bitbucket.org/eigen/eigen/commits/1d71b1341c03a7c485289be2c8bd906a259c0487/raw/ -> ${P}-cmake.patch + " + PATCHES=( "${DISTDIR}"/${P}-cmake.patch ) + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +inherit alternatives-2 cmake-utils fortran-2 multilib numeric + +DESCRIPTION="C++ template library for linear algebra" +HOMEPAGE="http://eigen.tuxfamily.org/" + +SLOT="3" +LICENSE="MPL-2.0" +IUSE="adolc doc fortran fftw gmp metis mkl pastix sparse static-libs test" + +CDEPEND=" + adolc? ( sci-libs/adolc[sparse?] ) + fftw? ( sci-libs/fftw:3.0 ) + gmp? ( dev-libs/gmp:0 dev-libs/mpfr:0 ) + metis? ( sci-libs/metis ) + mkl? ( sci-libs/mkl ) + pastix? ( sci-libs/pastix ) + sparse? ( + dev-cpp/sparsehash + sci-libs/cholmod[metis?] + sci-libs/spqr + sci-libs/superlu + sci-libs/umfpack )" +DEPEND=" + doc? ( app-doc/doxygen[dot,latex] ) + test? ( ${CDEPEND} )" + +RDEPEND=" + !dev-cpp/eigen:0 + ${CDEPEND}" + +src_prepare() { + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + -e "s:/bin/bash:${EPREFIX}/bin/bash:g" \ + cmake/*.cmake || die + sed -i \ + -e "/DESTINATION/s:lib:$(get_libdir):g" \ + {blas,lapack}/CMakeLists.txt || die + + # TOFIX: static-libs for blas are always built with PIC + use static-libs || sed -i \ + -e "/add_dependencies/s/eigen_[a-z]*_static//g" \ + -e "/TARGETS/s/eigen_[a-z]*_static//g" \ + -e "/add_library(eigen_[a-z]*_static/d" \ + -e "/target_link_libraries(eigen_[a-z]*_static/d" \ + {blas,lapack}/CMakeLists.txt || die + + sed -i -e "/Unknown build type/d" CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + # TOFIX: is it worth fixing all the automagic given no library is built? + # cmake has buggy disable_testing feature, so leave it for now + local mycmakeargs=( + -DDART_TESTING_TIMEOUT=300 + -DEIGEN_BUILD_BTL=OFF + ) + export VARTEXFONTS="${T}/fonts" + cmake-utils_src_configure + # use fortran && FORTRAN_LIBS="blas lapack" not ready + use fortran && FORTRAN_LIBS="blas" +} + +src_compile() { + local targets="${FORTRAN_LIBS}" + use doc && targets+=" doc" + use test && targets+=" check" + cmake-utils_src_compile ${targets} +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r "${BUILD_DIR}"/doc/html/* + local x + for x in ${FORTRAN_LIBS}; do + local libname="eigen_${x}" + emake DESTDIR="${D}" -C "${BUILD_DIR}/${x}" install ${libname} + create_pkgconfig \ + --description "${DESCRIPTION} ${x^^} implementation" \ + --libs "-L\${libdir} -l${libname}" \ + --libs-private "-lm" \ + $([[ ${x} == lapack ]] && echo "--requires 'blas'") \ + ${libname} + alternatives_for ${x} eigen 0 \ + /usr/$(get_libdir)/pkgconfig/${x}.pc ${libname}.pc + done + + # Debian installs it and some projects started using it. + insinto /usr/share/cmake/Modules/ + doins "${S}/cmake/FindEigen3.cmake" +}