-
Notifications
You must be signed in to change notification settings - Fork 4
/
mastsif.rb
36 lines (30 loc) · 1.13 KB
/
mastsif.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Mastsif < Formula
desc "SIF problem collection"
homepage "https://bitbucket.org/optrove/sif"
url "https://bitbucket.org/optrove/sif/get/v0.5.tar.gz"
sha256 "d2a7e0956e5216a4ad2a51a3a8219711e5f4f729cb3f044d4133d8fb19d0172d"
revision 2
head "https://bitbucket.org/optrove/sif.git"
bottle do
root_url "https://github.com/optimizers/homebrew-cutest/releases/download/mastsif-0.5_2"
sha256 cellar: :any_skip_relocation, big_sur: "ef83954ba6ddcd0817c4dcb2755abab5177be52ce86ae264d1a4c4fdcc4f1aac"
sha256 cellar: :any_skip_relocation, catalina: "77681296458be8aa77d320b4ab10b5392b566bbb4933f6591004da21bd136711"
sha256 cellar: :any_skip_relocation, x86_64_linux: "868c58e1e757e0a5e3be1212854dc770a048eaf1a52357d99ac43ecdba38e5b2"
end
keg_only "this formula only installs data files"
def install
pkgshare.install Dir["*"]
Pathname.new("#{prefix}/mastsif.bashrc").write <<~EOF
export MASTSIF=#{opt_share}/mastsif
EOF
end
def caveats
<<~EOS
In your ~/.bashrc, add the line
. #{prefix}/mastsif.bashrc
EOS
end
test do
File.exist? pkgshare/"BRAINPC1.SIF"
end
end