forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph-tool.rb
32 lines (28 loc) · 965 Bytes
/
graph-tool.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
require 'formula'
class GraphTool < Formula
homepage 'http://graph-tool.skewed.de/'
url 'http://downloads.skewed.de/graph-tool/graph-tool-2.2.29.1.tar.bz2'
sha1 '1cf735e3379548b7140ad10f7791ff1e929d40e1'
head 'https://github.com/count0/graph-tool.git'
depends_on 'pkg-config' => :build
depends_on 'boost' => 'c++11'
depends_on 'cgal' => 'c++11'
depends_on 'google-sparsehash' => ['c++11', :optional]
depends_on 'cairomm' => 'c++11'
depends_on 'py2cairo'
depends_on 'matplotlib' => :python
depends_on 'numpy' => :python
depends_on 'scipy' => :python
def install
ENV.cxx11
config_args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--with-python-module-path=#{lib}/python2.7/site-packages
]
config_args << "--disable-sparsehash" if build.without? 'google-sparsehash'
system "./configure", "PYTHON_EXTRA_LDFLAGS= ", *config_args
system "make", "install"
end
end