homebrew-core/Formula/xorgproto.rb

38 lines
1.0 KiB
Ruby

class Xorgproto < Formula
desc "X.Org: Protocol Headers"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2021.5.tar.bz2"
sha256 "aa2f663b8dbd632960b24f7477aa07d901210057f6ab1a1db5158732569ca015"
license "MIT"
livecheck do
url :stable
regex(/href=.*?xorgproto[._-]v?(\d+\.\d+(?:\.([0-8]\d*?)?\d(?:\.\d+)*)?)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "97763c1171ba9dc0772b5fa107c8dad9b19c3e73963d84887fb2d8c02a1ab59e"
end
depends_on "pkg-config" => [:build, :test]
depends_on "util-macros" => :build
def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
]
system "./configure", *args
system "make", "install"
end
test do
assert_equal "-I#{include}", shell_output("pkg-config --cflags xproto").chomp
assert_equal "-I#{include}/X11/dri", shell_output("pkg-config --cflags xf86driproto").chomp
end
end