-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcgl.rb
48 lines (40 loc) · 1.65 KB
/
cgl.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
37
38
39
40
41
42
43
44
45
46
47
48
class Cgl < Formula
desc "Cut-generation library"
homepage "https://github.com/coin-or/Cgl"
url "https://github.com/coin-or/Cgl/archive/refs/tags/releases/0.60.9.tar.gz"
sha256 "558421ccd6aa91d6922dd1baa04e37aa4c75ba0472118dc11779e5d6a19bfb38"
head "https://github.com/coin-or/Cgl.git"
bottle do
root_url "https://github.com/coin-or-tools/homebrew-coinor/releases/download/cgl-0.60.9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a1b1789904d58aa065bb669e8daecfae9ba94e7b2499d7f4e97cec68bbf383ee"
end
keg_only "conflicts with formula in core"
depends_on "pkg-config" => :build
depends_on "[email protected]"
depends_on "bzip2"
depends_on "coin-or-tools/coinor/clp"
depends_on "coin-or-tools/coinor/coinutils"
depends_on "coin-or-tools/coinor/glpk@448"
depends_on "coin-or-tools/coinor/mumps-seq"
depends_on "coin-or-tools/coinor/osi"
depends_on "openblas"
depends_on "zlib"
def install
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--datadir=#{pkgshare}",
"--includedir=#{include}/cgl",
"--with-sample-datadir=#{Formula["coin-or-tools/coinor/coin_data_sample"].opt_pkgshare}/coin/Data/Sample",
"--with-clp-lib=-L#{Formula["coin-or-tools/coinor/clp"].opt_lib} -lClp",
"--with-clp-incdir=#{Formula["coin-or-tools/coinor/clp"].opt_include}/clp/coin",
"--with-dot",
"--without-osidylp",
"--without-osivol"]
system "./configure", *args
system "make"
system "make", "test"
ENV.deparallelize # make install fails in parallel.
system "make", "install"
end
end