aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2014-12-08 14:44:15 -0800
committerMisty De Meo2014-12-08 14:45:37 -0800
commit3b556b8cd496974f4a4c51ef61012ebc8dfd347a (patch)
treed8bfa632db2783abd81ff2d8e1c89876f5283984 /Library
parent129b284933e21d4165b607c8e23408c10f0bb7f3 (diff)
downloadhomebrew-3b556b8cd496974f4a4c51ef61012ebc8dfd347a.tar.bz2
itsol, salt: move to homebrew/science
Closes #34777.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/itsol.rb15
-rw-r--r--Library/Formula/salt.rb50
-rw-r--r--Library/Homebrew/tap_migrations.rb2
3 files changed, 2 insertions, 65 deletions
diff --git a/Library/Formula/itsol.rb b/Library/Formula/itsol.rb
deleted file mode 100644
index 3c328a9cf..000000000
--- a/Library/Formula/itsol.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require "formula"
-
-class Itsol < Formula
- homepage "http://www-users.cs.umn.edu/~saad/software/ITSOL"
- url "http://www-users.cs.umn.edu/~saad/software/ITSOL/ITSOL_2.tar.gz"
- sha1 "c7af215aaa6ab377521ba317eccf6859165ebefb"
-
- depends_on :fortran
-
- def install
- system "make"
- lib.install("LIB/libitsol.a")
- (include/"itsol").install Dir["INC/*.h"]
- end
-end
diff --git a/Library/Formula/salt.rb b/Library/Formula/salt.rb
deleted file mode 100644
index 6f52f95d9..000000000
--- a/Library/Formula/salt.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-require 'formula'
-
-class Salt < Formula
- homepage 'http://supernovae.in2p3.fr/salt/doku.php?id=start'
- url 'http://supernovae.in2p3.fr/salt/lib/exe/fetch.php?media=snfit-2.4.0.tar.gz'
- sha1 '7f6e36e78199d8dec0458b464643e1e90fc51282'
- version '2.4'
-
- depends_on :fortran
-
- conflicts_with 'fastbit', :because => 'both install `include/filter.h`'
-
- resource 'data' do
- url 'http://supernovae.in2p3.fr/salt/lib/exe/fetch.php?media=salt2-4_data.tgz'
- sha1 '92c34fe3363fe6a88c8cda75c543503a9b3196f7'
- end
-
- resource '03d4ag' do
- url 'http://supernovae.in2p3.fr/salt/lib/exe/fetch.php?media=jla-03d4ag.tar.gz'
- sha1 'b227f5e50ea227375720f3c00dd849f964cfa2ba'
- end
-
- def install
- ENV.deparallelize
- # the libgfortran.a path needs to be set explicitly
- libgfortran = `$FC --print-file-name libgfortran.a`.chomp
- ENV.append 'LDFLAGS', "-L#{File.dirname(libgfortran)} -lgfortran"
- system "./configure", "--prefix=#{prefix}", "--disable-static"
- system "make install"
- # install all the model data
- (prefix/'data').install resource('data')
- # for testing
- (prefix/'03d4ag').install resource('03d4ag')
- end
-
- test do
- ENV['SALTPATH'] = "#{prefix}/data"
- cp_r Dir["#{prefix}/03d4ag/*"], '.'
- system bin/"snfit", testpath/"lc-03D4ag.list"
- assert File.exist?("result_salt2.dat")
- end
-
- def caveats
- <<-EOS.undent
- You should add the following to your .bashrc or equivalent:
- export SALTPATH=#{prefix}/data
- EOS
- end
-
-end
diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb
index 3189204a9..1a8e43b32 100644
--- a/Library/Homebrew/tap_migrations.rb
+++ b/Library/Homebrew/tap_migrations.rb
@@ -32,6 +32,7 @@ TAP_MIGRATIONS = {
"hugs98" => "homebrew/boneyard",
"hwloc" => "homebrew/science",
"ipopt" => "homebrew/science",
+ "itsol" => "homebrew/science",
"iulib" => "homebrew/boneyard",
"jscoverage" => "homebrew/boneyard",
"jsl" => "homebrew/binary",
@@ -61,6 +62,7 @@ TAP_MIGRATIONS = {
"qfits" => "homebrew/boneyard",
"qrupdate" => "homebrew/science",
"shark" => "homebrew/boneyard",
+ "salt" => "homebrew/science",
"slicot" => "homebrew/science",
"solfege" => "homebrew/boneyard",
"sundials" => "homebrew/science",