public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/jdqz/
Date: Mon, 30 Mar 2020 08:10:09 +0000 (UTC)	[thread overview]
Message-ID: <1585493945.088d3102851d1ea6a5954ab5e4dedb52239bf5b7.andrewammerlaan@gentoo> (raw)

commit:     088d3102851d1ea6a5954ab5e4dedb52239bf5b7
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Mar 29 14:58:11 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> 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 <lssndrbarbieri <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>lssndrbarbieri@gmail.com</email>
+		<name>Alessandro Barbieri</name>
+	</maintainer>
+	<longdescription>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.</longdescription>
+</pkgmetadata>


             reply	other threads:[~2020-03-30  8:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  8:10 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-30  8:10 [gentoo-commits] repo/proj/guru:master commit in: sci-libs/jdqz/ Andrew Ammerlaan
2020-03-30 19:22 Andrew Ammerlaan
2020-04-08 17:43 Andrew Ammerlaan
2021-02-05 12:19 Andrew Ammerlaan
2021-05-02 10:51 Theo Anderson
2021-05-02 10:51 Theo Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1585493945.088d3102851d1ea6a5954ab5e4dedb52239bf5b7.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox