-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathgr-theano.rb
30 lines (25 loc) · 853 Bytes
/
gr-theano.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
require "formula"
class GrTheano < Formula
homepage "https://github.com/osh/gr-theano"
head "https://github.com/osh/gr-theano.git"
depends_on "cmake" => :build
depends_on "swig" => :build
depends_on "doxygen" => :build
depends_on "graphviz" => :build
depends_on "gnuradio"
depends_on "boost"
depends_on "cppunit"
resource "theano" do
url "https://github.com/Theano/Theano/archive/rel-0.8.2.tar.gz"
sha256 "144e67a5bec9748d80381654b06e2b1164d034f8679028c59b7bb384d2e53a04"
end
def install
mkdir "build" do
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
python_args = ["install", "--prefix=#{libexec}"]
resource("theano").stage { system "python", "setup.py", *python_args }
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
end