homebrew-core/Formula/xorgproto.rb

37 lines
1.2 KiB
Ruby

class Xorgproto < Formula
desc "X.Org: Protocol Headers"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2020.1.tar.bz2"
sha256 "54a153f139035a376c075845dd058049177212da94d7a9707cf9468367b699d2"
license "MIT"
bottle do
cellar :any_skip_relocation
sha256 "544326e121b491df07548620fd34df91c127b041e5f2f633f12e01738ea349a7" => :big_sur
sha256 "b50060e1137a990a6cb6c873c4f2bf8383af62285fdb229445d2d160f84d0736" => :catalina
sha256 "0809cb3a8941d8e3994a9f940e181b465fb67db49e8dc2e434fbd53d10f04e3c" => :mojave
sha256 "11537fb587e7d0e539a60850f62327ded423b635969e846865dbdded481d24c8" => :high_sierra
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