From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3A2F1382C5 for ; Mon, 23 Apr 2018 01:22:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5CBFE0ACB; Mon, 23 Apr 2018 01:22:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C138DE0ACB for ; Mon, 23 Apr 2018 01:22:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7DD14335C36 for ; Mon, 23 Apr 2018 01:22:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03937292 for ; Mon, 23 Apr 2018 01:22:00 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1524443499.782d0502b55a578a251c98f9221a86e3a37e614a.tamiko@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/slepc/ X-VCS-Repository: proj/sci X-VCS-Files: sci-mathematics/slepc/slepc-3.9.0.ebuild X-VCS-Directories: sci-mathematics/slepc/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 782d0502b55a578a251c98f9221a86e3a37e614a X-VCS-Branch: master Date: Mon, 23 Apr 2018 01:22:00 +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: f40236c1-136d-4462-946e-f4e56f44c1e8 X-Archives-Hash: 8582a5c21ef5feb53d67a3f60f54b609 commit: 782d0502b55a578a251c98f9221a86e3a37e614a Author: Matthias Maier gentoo org> AuthorDate: Mon Apr 23 00:31:39 2018 +0000 Commit: Matthias Maier gentoo org> CommitDate: Mon Apr 23 00:31:39 2018 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=782d0502 sci-mathematics/slepc: version bump to 3.9.0 Package-Manager: Portage-2.3.31, Repoman-2.3.9 sci-mathematics/slepc/slepc-3.9.0.ebuild | 74 ++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/sci-mathematics/slepc/slepc-3.9.0.ebuild b/sci-mathematics/slepc/slepc-3.9.0.ebuild new file mode 100644 index 000000000..eb250a909 --- /dev/null +++ b/sci-mathematics/slepc/slepc-3.9.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic python-any-r1 toolchain-funcs versionator + +DESCRIPTION="Scalable Library for Eigenvalue Problem Computations" +HOMEPAGE="http://slepc.upv.es/" +SRC_URI="http://slepc.upv.es/download/distrib/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="complex-scalars doc mpi" + +PETSC_PV="$(get_version_component_range 1-2 ${PV})" +RDEPEND=" + =sci-mathematics/petsc-${PETSC_PV}*:=[mpi=,complex-scalars=] + sci-libs/arpack[mpi=] + mpi? ( virtual/mpi ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" + +MAKEOPTS="${MAKEOPTS} -j1 V=1" + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # *sigh* + addpredict "${PETSC_DIR}"/.nagged + + # Make sure that the environment is set up correctly: + unset PETSC_DIR + unset PETSC_ARCH + unset SLEPC_DIR + source "${EPREFIX}"/etc/env.d/99petsc + export PETSC_DIR + + # configure is a custom python script and doesn't want to have default + # configure arguments that we set with econf + ./configure \ + --prefix="${EPREFIX}/usr/$(get_libdir)/slepc" \ + --with-arpack=1 \ + --with-arpack-dir="${EPREFIX}/usr/$(get_libdir)" \ + --with-arpack-flags="$(usex mpi "-lparpack,-larpack" "-larpack")" + +} + +src_install() { + emake SLEPC_DESTDIR="${D}/usr/$(get_libdir)/slepc" install + + # add PETSC_DIR to environmental variables + cat >> 99slepc <<- EOF + SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepc + EOF + doenvd 99slepc + + if use doc ; then + dodoc docs/slepc.pdf + dohtml -r docs/*.html docs/manualpages + fi +}