ola: add rdm-tests option

Closes Homebrew/homebrew#48575.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
master
Peter Newman 2016-01-29 02:33:51 +00:00 committed by Xu Cheng
parent 32d022cb3d
commit 7844cd8688
1 changed files with 11 additions and 3 deletions

View File

@ -20,15 +20,16 @@ class Ola < Formula
option :universal
option "with-ftdi", "Install FTDI USB plugin for OLA."
# RDM tests require protobuf-c --with-python to work
option "with-rdm-tests", "Install RDM Tests for OLA."
depends_on "pkg-config" => :build
depends_on "cppunit"
depends_on "protobuf-c"
depends_on "libmicrohttpd"
depends_on "libusb"
depends_on "liblo"
depends_on "ossp-uuid"
depends_on :python => :optional
depends_on "libusb" => :recommended
depends_on "liblo" => :recommended
depends_on "doxygen" => :optional
if build.with? "ftdi"
@ -36,6 +37,12 @@ class Ola < Formula
depends_on "libftdi0"
end
if build.with? "rdm-tests"
depends_on :python if MacOS.version <= :snow_leopard
else
depends_on :python => :optional
end
def install
ENV.universal_binary if build.universal?
@ -47,6 +54,7 @@ class Ola < Formula
]
args << "--enable-python-libs" if build.with? "python"
args << "--enable-rdm-tests" if build.with? "rdm-tests"
args << "--enable-doxygen-man" if build.with? "doxygen"
system "autoreconf", "-fvi" if build.head?