1require "formula" 2 3class Libbtbb < Formula 4 homepage "https://github.com/greatscottgadgets/libbtbb" 5 url "https://github.com/greatscottgadgets/libbtbb/archive/2014-02-R2.tar.gz" 6 sha1 "aa94b7d92465704aa647123f11e906491a26d090" 7 version "2014-02-R2" 8 9 head "https://github.com/greatscottgadgets/libbtbb.git" 10 11 option :universal 12 13 depends_on "cmake" => :build 14 depends_on :python 15 16 def install 17 if build.universal? 18 ENV.universal_binary 19 ENV["CMAKE_OSX_ARCHITECTURES"] = Hardware::CPU.universal_archs.as_cmake_arch_flags 20 end 21 mkdir "build" do 22 system "cmake", "..", *std_cmake_args 23 system "make", "install" 24 end 25 end 26end 27