35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
class Orc < Formula
|
|
desc "Oil Runtime Compiler (ORC)"
|
|
homepage "https://gstreamer.freedesktop.org/projects/orc.html"
|
|
url "https://gstreamer.freedesktop.org/src/orc/orc-0.4.32.tar.xz"
|
|
sha256 "a66e3d8f2b7e65178d786a01ef61f2a0a0b4d0b8370de7ce134ba73da4af18f0"
|
|
|
|
livecheck do
|
|
url "https://gstreamer.freedesktop.org/src/orc/"
|
|
regex(/href=.*?orc[._-]v?([\d.]+\.[\d.]+\.[\d.]+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "7c5d9d6caf789828006ff7d604eb81a247c8d9ff6004c524978452a252dd8162" => :big_sur
|
|
sha256 "df8ed6c8e2d13c9425174f38a6ff60d291cc3febababa670ebe74b21fe56ceab" => :catalina
|
|
sha256 "8b11d82f1c1e51fe41d4b7cf1a905f72bdb977ce2acc0eafcf2ba6b89f06d58c" => :mojave
|
|
sha256 "d347537787016fa19c7653a9912e0c11d134f10e96a75bc0f5bb28e221e012d8" => :high_sierra
|
|
end
|
|
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "meson", *std_meson_args, "-Dgtk_doc=disabled", ".."
|
|
system "ninja", "-v"
|
|
system "ninja", "install", "-v"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/orcc", "--version"
|
|
end
|
|
end
|