-
Notifications
You must be signed in to change notification settings - Fork 1
/
gnuradio-osmosdr.rb
47 lines (40 loc) · 1.5 KB
/
gnuradio-osmosdr.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
class GnuradioOsmosdr < Formula
desc "osmocom Gnu Radio Blocks"
homepage "http://sdr.osmocom.org/trac/wiki/GrOsmoSDR"
stable do
url "http://cgit.osmocom.org/gr-osmosdr/snapshot/gr-osmosdr-0.1.4.zip"
sha256 "1c36fdb24b76b4114beeebdab77b463820f434c16a2b622657983e3885f32a4a"
end
head 'git://git.osmocom.org/gr-osmosdr', :branch => 'master'
depends_on "cmake" => :build
depends_on "boost"
depends_on "gnuradio"
depends_on "hackrf"
depends_on "swig"
# cheetah starts here
resource "Markdown" do
url "https://pypi.python.org/packages/source/M/Markdown/Markdown-2.4.tar.gz"
sha256 "b8370fce4fbcd6b68b6b36c0fb0f4ec24d6ba37ea22988740f4701536611f1ae"
end
resource "Cheetah" do
url "https://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz"
sha256 "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"
end
# cheetah ends here
def install
ENV["CHEETAH_INSTALL_WITHOUT_SETUPTOOLS"] = "1"
ENV.prepend_path "PATH", libexec/"vendor/bin" if build.with? "documentation"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
res = %w[Markdown Cheetah]
res.each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
mkdir "build" do
system "cmake", "..", '-DPYTHON_LIBRARY=/usr/local/Frameworks/Python.framework/Versions/2.7/Python ', *std_cmake_args
system "make"
system "make install"
end
end
end