37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
class WaylandProtocols < Formula
|
|
desc "Additional Wayland protocols"
|
|
homepage "https://wayland.freedesktop.org"
|
|
url "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.31/downloads/wayland-protocols-1.31.tar.xz"
|
|
sha256 "a07fa722ed87676ec020d867714bc9a2f24c464da73912f39706eeef5219e238"
|
|
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: "1d30825fae12dbe4a0db88898c303d7758b9bc81c5e81cbf1529794ec37eb96b"
|
|
end
|
|
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => [:build, :test]
|
|
depends_on "python@3.11" => :build
|
|
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
|