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 C4360138331 for ; Mon, 19 Mar 2018 03:40:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9423E08E8; Mon, 19 Mar 2018 03:40:46 +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 7F1F0E08E8 for ; Mon, 19 Mar 2018 03:40:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 BD638335D73 for ; Mon, 19 Mar 2018 03:40:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CAE6261 for ; Mon, 19 Mar 2018 03:40:43 +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: <1521430314.0ada0c5cde6f8b3d69ec41d431a1a64b5b41ed33.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.8.2.ebuild X-VCS-Directories: sci-mathematics/slepc/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 0ada0c5cde6f8b3d69ec41d431a1a64b5b41ed33 X-VCS-Branch: master Date: Mon, 19 Mar 2018 03:40:43 +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: 3cf9594a-bbf5-4248-b4cb-a565919a2e91 X-Archives-Hash: f8f23bedd3bf4615cc57673a47ad9b4e commit: 0ada0c5cde6f8b3d69ec41d431a1a64b5b41ed33 Author: Matthias Maier gentoo org> AuthorDate: Mon Mar 19 03:31:54 2018 +0000 Commit: Matthias Maier gentoo org> CommitDate: Mon Mar 19 03:31:54 2018 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0ada0c5c sci-mathematics/slepc: version bump to 3.8.2 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sci-mathematics/slepc/slepc-3.8.2.ebuild | 74 ++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/sci-mathematics/slepc/slepc-3.8.2.ebuild b/sci-mathematics/slepc/slepc-3.8.2.ebuild new file mode 100644 index 000000000..eb250a909 --- /dev/null +++ b/sci-mathematics/slepc/slepc-3.8.2.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 +}