homebrew-core/Formula/wayland-protocols.rb

36 lines
1014 B
Ruby

class WaylandProtocols < Formula
desc "Additional Wayland protocols"
homepage "https://wayland.freedesktop.org"
url "https://wayland.freedesktop.org/releases/wayland-protocols-1.25.tar.xz"
sha256 "f1ff0f7199d0a0da337217dd8c99979967808dc37731a1e759e822b75b571460"
license "MIT"
livecheck do
url "https://wayland.freedesktop.org/releases.html"
regex(/href=.*?wayland-protocols[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "c7bcb5453798a2f48c986fd5787dd85dc11fb733452c766848ee382ab1cab748"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "wayland" => :build
depends_on :linux
def install
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja", "-v"
system "ninja", "install", "-v"
end
end
test do
system "pkg-config", "--exists", "wayland-protocols"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end