Files
homebrew-tap-local/Formula/libxfixes.rb
T

46 lines
1.3 KiB
Ruby

class Libxfixes < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "20bde00fb1c5b48ad54118acc702fd226efd28585e058c7ecdbff8ce8b6fb34a"
sha256 cellar: :any, arm64_tahoe: "18951c8c4a266fc614d3d17798983f314230614d42184a5169d053a5d228c85c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6f33e8a88f01a7afb5a784155e4c81051fea75570635b89ddb4b3b48d2825acf"
end
desc "X.Org: Header files for the XFIXES extension"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/lib/libXfixes-6.0.2.tar.xz"
sha256 "39f115d72d9c5f8111e4684164d3d68cc1fd21f9b27ff2401b08fddfc0f409ba"
license "MIT"
compatibility_version 1
depends_on "pkgconf" => :build
depends_on "libx11"
depends_on "xorgproto"
def install
args = %W[
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-silent-rules
]
system "./configure", *args, *std_configure_args
system "make"
system "make", "install"
end
test do
(testpath/"test.c").write <<~C
#include "X11/extensions/Xfixes.h"
int main(int argc, char* argv[]) {
XFixesSelectionNotifyEvent event;
return 0;
}
C
system ENV.cc, "test.c"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end