forked from mlubin/homebrew-juliaopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coinmp.rb
28 lines (22 loc) · 1.05 KB
/
coinmp.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
require 'formula'
class Coinmp < Formula
homepage 'http://www.coin-or.org/projects/CoinMP.xml'
url 'http://www.coin-or.org/download/source/CoinMP/CoinMP-1.7.0.tgz'
sha1 '27f58adc404a329f20a96a5218bc8ed332639ada'
depends_on :fortran
#conflicts_with 'coinutils', :because => 'CoinMP includes CoinUtils.'
def patches
{ :p1 => ["https://raw.github.com/mlubin/CoinMP.jl/9fe259e1677a6917cba2f70d78010d2505a3908b/deps/CoinMP-makefile.patch",
"https://raw.github.com/mlubin/CoinMP.jl/9fe259e1677a6917cba2f70d78010d2505a3908b/deps/CoinMP-strcmp.patch",
"https://raw.github.com/mlubin/CoinMP.jl/9fe259e1677a6917cba2f70d78010d2505a3908b/deps/CoinMP-loglevel.patch"],
:p0 => "https://raw.github.com/mlubin/CoinMP.jl/9fe259e1677a6917cba2f70d78010d2505a3908b/deps/Clp-interface.patch"
}
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
ENV.deparallelize # make install fails in parallel.
system "make install"
end
end