58 lines
1.9 KiB
Ruby
58 lines
1.9 KiB
Ruby
class Ola < Formula
|
|
desc "Open Lighting Architecture for lighting control information"
|
|
homepage "https://www.openlighting.org/ola/"
|
|
url "https://github.com/OpenLightingProject/ola/releases/download/0.10.8/ola-0.10.8.tar.gz"
|
|
sha256 "102aa3114562a2a71dbf7f77d2a0fb9fc47acc35d6248a70b6e831365ca71b13"
|
|
license "GPL-2.0"
|
|
revision 1
|
|
head "https://github.com/OpenLightingProject/ola.git"
|
|
|
|
bottle do
|
|
sha256 big_sur: "32d103661d8d4e991fdf6218a316e7933f50626634d94c0d81ca8a5109e9b14d"
|
|
sha256 catalina: "7ab0c5c20ff8d8ac86eb67f0fea871d3ad3a074a8e0d7d32ec413980aaf6aa56"
|
|
sha256 mojave: "f15710894fb4012a6175f71a9452e7e1ae3b155b88619856c3d9fe66edfef92c"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "liblo"
|
|
depends_on "libmicrohttpd"
|
|
depends_on "libusb"
|
|
depends_on "numpy"
|
|
depends_on "protobuf"
|
|
depends_on "python@3.9"
|
|
|
|
# remove in version 0.10.9
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/add0354bf13253a4cc89e151438a630314df0efa/ola/protobuf3.diff"
|
|
sha256 "e06ffef1610c3b09807212d113138dae8bdc7fc8400843c25c396fa486594ebf"
|
|
end
|
|
|
|
def install
|
|
xy = Language::Python.major_minor_version Formula["python@3.9"].bin/"python3"
|
|
protobuf_pth = Formula["protobuf@3.6"].opt_lib/"python#{xy}/site-packages/homebrew-protobuf.pth"
|
|
(buildpath/".brew_home/Library/Python/#{xy}/lib/python/site-packages").install_symlink protobuf_pth
|
|
|
|
args = %W[
|
|
--disable-fatal-warnings
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
--prefix=#{prefix}
|
|
--disable-unittests
|
|
--enable-python-libs
|
|
--enable-rdm-tests
|
|
]
|
|
|
|
ENV["PYTHON"] = Formula["python@3.9"].bin/"python3"
|
|
system "autoreconf", "-fvi"
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"ola_plugin_info"
|
|
end
|
|
end
|