Skip to content

Commit

Permalink
uhd 003.009.000
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#43469.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
jiegec authored and DomT4 committed Sep 2, 2015
1 parent 62be49d commit ca5624c
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions Formula/uhd.rb
@@ -1,8 +1,8 @@
class Uhd < Formula
desc "Hardware driver for all USRP devices."
homepage "http://files.ettus.com/manual/"
url "https://github.com/EttusResearch/uhd/archive/release_003_008_005.tar.gz"
sha256 "e0a36e64bffa7d06ac948fd8fc07ff3ce321e1efc3f7e8604b53e0c3ce842989"
url "https://github.com/EttusResearch/uhd/archive/release_003_009_000.tar.gz"
sha256 "36acbad244270972446383c64577aa9c6171cfee7e9e94a300c287454c736a05"
head "https://github.com/EttusResearch/uhd.git"

bottle do
Expand All @@ -18,15 +18,11 @@ class Uhd < Formula
depends_on "libusb"
depends_on :python if MacOS.version <= :snow_leopard
depends_on "doxygen" => [:build, :optional]
depends_on "gpsd" => :optional

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"
resource "Mako" do
url "https://pypi.python.org/packages/source/M/Mako/Mako-1.0.2.tar.gz"
sha256 "2550c2e4528820db68cbcbe668add5c71ab7fa332b7eada7919044bf8697679e"
end

def install
Expand All @@ -37,14 +33,10 @@ def install
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
end

ENV["CHEETAH_INSTALL_WITHOUT_SETUPTOOLS"] = "1"
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
resource("Mako").stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end

mkdir "host/build" do
Expand Down

0 comments on commit ca5624c

Please sign in to comment.