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 6FA54138351 for ; Mon, 30 Mar 2020 08:10:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9D53E0907; Mon, 30 Mar 2020 08:10:29 +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 7F41AE0907 for ; Mon, 30 Mar 2020 08:10:29 +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 E31EF34F413 for ; Mon, 30 Mar 2020 08:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E19CD150 for ; Mon, 30 Mar 2020 08:10:09 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585493945.088d3102851d1ea6a5954ab5e4dedb52239bf5b7.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/jdqz/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-libs/jdqz/Manifest sci-libs/jdqz/jdqz-1997.11.07.ebuild sci-libs/jdqz/metadata.xml X-VCS-Directories: sci-libs/jdqz/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 088d3102851d1ea6a5954ab5e4dedb52239bf5b7 X-VCS-Branch: master Date: Mon, 30 Mar 2020 08:10: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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26afcd00-eb20-43cb-9046-51f3f0a22915 X-Archives-Hash: 83a5cabaf3b569e6d0b1f4b5b1bad5b2 commit: 088d3102851d1ea6a5954ab5e4dedb52239bf5b7 Author: Alessandro Barbieri gmail com> AuthorDate: Sun Mar 29 14:58:11 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Sun Mar 29 14:59:05 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=088d3102 sci-libs/jdqz: mew package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> sci-libs/jdqz/Manifest | 1 + sci-libs/jdqz/jdqz-1997.11.07.ebuild | 66 ++++++++++++++++++++++++++++++++++++ sci-libs/jdqz/metadata.xml | 9 +++++ 3 files changed, 76 insertions(+) diff --git a/sci-libs/jdqz/Manifest b/sci-libs/jdqz/Manifest new file mode 100644 index 0000000..b59a985 --- /dev/null +++ b/sci-libs/jdqz/Manifest @@ -0,0 +1 @@ +DIST jdqz-1997.11.07.tar.gz 15428 BLAKE2B 7d6fcc29a3ed8d055a49b580823e27286135bd1df59382240b742eb60be07953b9a7c64f11091eea2ad5f04a7ba79a726a7f12897798dd5136c6331aa81bac4d SHA512 9eaf1213c46090fcd133b33bc8e859d32078ade86c9a20eda1c0fb21547aa2f851014cff44d8ada0406cd771892b661e4c03ff7eb4cd3a492997f32f7eb328c3 diff --git a/sci-libs/jdqz/jdqz-1997.11.07.ebuild b/sci-libs/jdqz/jdqz-1997.11.07.ebuild new file mode 100644 index 0000000..08e7ab7 --- /dev/null +++ b/sci-libs/jdqz/jdqz-1997.11.07.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic fortran-2 + +DESCRIPTION="Jacobi-Davidson type method for the generalized standard eigenvalue problem." +HOMEPAGE="https://www.win.tue.nl/casa/research/scientificcomputing/topics/jd/software.html" +SRC_URI="https://www.win.tue.nl/casa/research/scientificcomputing/topics/jd/${PN}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" +RESTRICT="!test? ( test )" + +DEPEND=" + virtual/blas + virtual/lapack +" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( dev-texlive/texlive-latex )" + +S="${WORKDIR}/${PN}" + +src_prepare() { + libs="$($(tc-getPKG_CONFIG) --libs blas)" + libs+=" $($(tc-getPKG_CONFIG) --libs lapack)" + + export libs + + sed -i 's/f77/${F77}/g' jdtest/Makefile || die + sed -i '/FFLAGS/d' jdtest/Makefile || die + sed -i 's/-u -O/-u ${FFLAGS}/g' jdtest/Makefile || die + + sed -i "s/-llapack -lblas/${libs}/" jdtest/Makefile || die + + default +} + +src_compile() { + use doc && pdflatex manual.tex || die + + cd jdlib + + echo '#!/bin/sh' > make.sh || die + echo "${FC}" *.f "${FFLAGS} -shared -fPIC -Wl,-soname,libjdqz.so.0 -lm ${libs} ${LDFLAGS} -o libjdqz.so.0" >> make.sh || die + chmod +x make.sh || die + + ./make.sh || die + ln -s libjdqz.so.0 libjdqz.so || die + + cd ../jdtest + use test && emake +} + +src_test() { + LD_LIBRARY_PATH="./jdlib" ./jdtest/example || die +} + +src_install() { + dolib.so jdlib/libjdqz.so + dolib.so jdlib/libjdqz.so.0 + + use doc && dodoc manual.pdf +} diff --git a/sci-libs/jdqz/metadata.xml b/sci-libs/jdqz/metadata.xml new file mode 100644 index 0000000..a6bd263 --- /dev/null +++ b/sci-libs/jdqz/metadata.xml @@ -0,0 +1,9 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + Jacobi-Davidson type method for the generalized standard eigenvalue problem. Choice of standard or harmonic Rayleigh-Ritz for the extraction. Choice of GMRES or BiCGstab(l) for solving the correction equation. +