qrupdate: migrate from homebrew/science
Closes #15836. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
37352cf9de
commit
56ddb73cf2
2 changed files with 36 additions and 1 deletions
36
Formula/qrupdate.rb
Normal file
36
Formula/qrupdate.rb
Normal file
|
@ -0,0 +1,36 @@
|
|||
class Qrupdate < Formula
|
||||
desc "Fast updates of QR and Cholesky decompositions"
|
||||
homepage "https://sourceforge.net/projects/qrupdate/"
|
||||
url "https://downloads.sourceforge.net/qrupdate/qrupdate-1.1.2.tar.gz"
|
||||
sha256 "e2a1c711dc8ebc418e21195833814cb2f84b878b90a2774365f0166402308e08"
|
||||
|
||||
depends_on :fortran
|
||||
depends_on "veclibfort"
|
||||
|
||||
def install
|
||||
# Parallel compilation not supported. Reported on 2017-07-21 at
|
||||
# https://sourceforge.net/p/qrupdate/discussion/905477/thread/d8f9c7e5/
|
||||
ENV.deparallelize
|
||||
|
||||
system "make", "lib", "solib", "FC=#{ENV.fc}",
|
||||
"BLAS=-L#{Formula["veclibfort"].opt_lib} -lvecLibFort"
|
||||
|
||||
# Confuses "make install" on case-insensitive filesystems
|
||||
rm "INSTALL"
|
||||
|
||||
# BSD "install" does not understand GNU -D flag.
|
||||
# Create the parent directory ourselves.
|
||||
inreplace "src/Makefile", "install -D", "install"
|
||||
lib.mkpath
|
||||
|
||||
system "make", "install", "PREFIX=#{prefix}"
|
||||
pkgshare.install "test/tch1dn.f", "test/utils.f"
|
||||
end
|
||||
|
||||
test do
|
||||
ENV.fortran
|
||||
system ENV.fc, "-o", "test", pkgshare/"tch1dn.f", pkgshare/"utils.f",
|
||||
"-L#{lib}", "-lqrupdate", "-lvecLibFort"
|
||||
assert_match "PASSED 4 FAILED 0", shell_output("./test")
|
||||
end
|
||||
end
|
|
@ -50,7 +50,6 @@
|
|||
"pdf-tools": "dunn/emacs",
|
||||
"pebble-sdk": "pebble/pebble-sdk",
|
||||
"pocl": "homebrew/science",
|
||||
"qrupdate": "homebrew/science",
|
||||
"quassel": "caskroom/cask",
|
||||
"salt": "homebrew/science",
|
||||
"shark": "homebrew/science",
|
||||
|
|
Loading…
Reference in a new issue