From f141158add42cc46611a2785ad391b67c06d75fe Mon Sep 17 00:00:00 2001 From: Saul Shanabrook Date: Sat, 29 Mar 2014 13:02:27 -0400 Subject: [PATCH] ola: add Python support and change homepage. Closes Homebrew/homebrew#27977. Signed-off-by: Mike McQuaid --- Formula/ola.rb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Formula/ola.rb b/Formula/ola.rb index 25d6f843b9..f43cf59223 100644 --- a/Formula/ola.rb +++ b/Formula/ola.rb @@ -1,7 +1,7 @@ require "formula" class Ola < Formula - homepage "http://www.openlighting.org" + homepage "http://www.openlighting.org/ola/" url "https://github.com/OpenLightingProject/ola/releases/download/0.9.0/ola-0.9.0.tar.gz" sha1 "aff9bf0802d4e6fcbdc5a2ffcdb7ba25d67fd209" @@ -19,15 +19,21 @@ class Ola < Formula depends_on "libmicrohttpd" depends_on "libusb" depends_on "liblo" + depends_on :python => :optional def install ENV.universal_binary if build.universal? - system "./configure", "--disable-debug", - "--disable-fatal-warnings", - "--disable-dependency-tracking", - "--disable-silent-rules", - "--prefix=#{prefix}" + args = %W[ + --disable-debug + --disable-fatal-warnings + --disable-dependency-tracking + --disable-silent-rules + --prefix=#{prefix} + ] + args << "--enable-python-libs" if build.with? "python" + + system "./configure", *args system "make", "install" end