Migrate dotwrp, qrupdate, slicot to homebrew-science
Closes Homebrew/homebrew#27743.
This commit is contained in:
parent
448fc3cfda
commit
d423ce5f96
3 changed files with 0 additions and 87 deletions
|
@ -1,20 +0,0 @@
|
|||
require 'formula'
|
||||
|
||||
class Dotwrp < Formula
|
||||
homepage 'https://github.com/tenomoto/dotwrp'
|
||||
url 'https://github.com/tenomoto/dotwrp/archive/v1.1.tar.gz'
|
||||
sha1 'd328705ec424898382956bb8a0be16a680372f05'
|
||||
|
||||
head 'https://github.com/tenomoto/dotwrp.git'
|
||||
|
||||
depends_on :fortran
|
||||
|
||||
def install
|
||||
# note: fno-underscoring is vital to override the symbols in Accelerate
|
||||
system "#{ENV.fc} #{ENV.fflags} -fno-underscoring -c dotwrp.f90"
|
||||
system "ar -cru libdotwrp.a dotwrp.o"
|
||||
system "ranlib libdotwrp.a"
|
||||
|
||||
lib.install 'libdotwrp.a'
|
||||
end
|
||||
end
|
|
@ -1,37 +0,0 @@
|
|||
require 'formula'
|
||||
|
||||
class Qrupdate < Formula
|
||||
homepage 'http://sourceforge.net/projects/qrupdate/'
|
||||
url 'https://downloads.sourceforge.net/qrupdate/qrupdate-1.1.2.tar.gz'
|
||||
sha1 'f7403b646ace20f4a2b080b4933a1e9152fac526'
|
||||
|
||||
depends_on :fortran
|
||||
depends_on "homebrew/science/openblas" => :optional
|
||||
|
||||
def install
|
||||
ENV.j1
|
||||
ENV['PREFIX'] = prefix
|
||||
if build.with? 'openblas'
|
||||
fflags = ENV.fcflags
|
||||
lflags = "#{ENV.ldflags} -L#{Formula["openblas"].lib} -lopenblas"
|
||||
else
|
||||
# We're using the -ff2c flag here to avoid having to depend on dotwrp.
|
||||
# Because qrupdate exports only subroutines, the resulting library is
|
||||
# compatible with packages compiled with or without the -ff2c flag.
|
||||
fflags = "#{ENV.fcflags} -ff2c"
|
||||
lflags = "#{ENV.ldflags} -framework Accelerate"
|
||||
end
|
||||
inreplace 'Makeconf' do |s|
|
||||
s.change_make_var! 'FC', ENV.fc
|
||||
s.change_make_var! 'FFLAGS', fflags
|
||||
s.change_make_var! 'BLAS', lflags
|
||||
s.change_make_var! 'LAPACK', ""
|
||||
end
|
||||
cd "./src"
|
||||
inreplace 'Makefile' do |s|
|
||||
s.gsub! 'install -D', 'install'
|
||||
end
|
||||
lib.mkpath
|
||||
system 'make install'
|
||||
end
|
||||
end
|
|
@ -1,30 +0,0 @@
|
|||
require 'formula'
|
||||
|
||||
class Slicot < Formula
|
||||
homepage 'http://www.slicot.org'
|
||||
url 'http://ftp.de.debian.org/debian/pool/main/s/slicot/slicot_5.0+20101122.orig.tar.gz'
|
||||
version '5.0+20101122'
|
||||
sha1 'ec240abbf6d3d60da3a7dc21d22104abdfd86bd8'
|
||||
|
||||
option 'with-default-integer-8', 'Build with 8-byte-wide integer type'
|
||||
|
||||
depends_on :fortran
|
||||
|
||||
def install
|
||||
args = [
|
||||
"FORTRAN=#{ENV.fc}",
|
||||
"LOADER=#{ENV.fc}",
|
||||
]
|
||||
|
||||
slicotlibname = "libslicot_pic.a"
|
||||
system "make", "lib", "OPTS=-fPIC", "SLICOTLIB=../#{slicotlibname}", *args
|
||||
lib.install "#{slicotlibname}"
|
||||
|
||||
if build.with? "default-integer-8"
|
||||
system "make", "clean"
|
||||
slicotlibname = "libslicot64_pic.a"
|
||||
system "make", "lib", "OPTS=-fPIC -fdefault-integer-8", "SLICOTLIB=../#{slicotlibname}", *args
|
||||
lib.install "#{slicotlibname}"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue