homebrew-core/Formula/orc.rb

34 lines
1004 B
Ruby

class Orc < Formula
desc "Oil Runtime Compiler (ORC)"
homepage "https://cgit.freedesktop.org/gstreamer/orc/"
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 "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