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

52 lines
1.4 KiB
Ruby

class Libxtst < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "28d4af1505473aed939328ace91056e111623d0c60b817d0b98dc3e00472dc4d"
sha256 cellar: :any, arm64_tahoe: "3695416abec8f1da23fddcc232bdc5e9522f822f67c7a0c69f522f54c8653617"
sha256 cellar: :any_skip_relocation, x86_64_linux: "51cacd4573d0d4e1cc33c83574cf4838d93de28276a9cd3c69496da8a4466771"
end
desc "X.Org: Client API for the XTEST & RECORD extensions"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/lib/libXtst-1.2.5.tar.gz"
sha256 "244ba6e1c5ffa44f1ba251affdfa984d55d99c94bb925a342657e5e7aaf6d39c"
license "MIT"
compatibility_version 1
depends_on "pkgconf" => :build
depends_on "util-macros" => :build
depends_on "libx11"
depends_on "libxext"
depends_on "libxi"
depends_on "xorgproto"
def install
args = %W[
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-silent-rules
--enable-specs=no
]
system "./configure", *args, *std_configure_args
system "make"
system "make", "install"
end
test do
(testpath/"test.c").write <<~C
#include "X11/Xlib.h"
#include "X11/extensions/record.h"
int main(int argc, char* argv[]) {
XRecordRange8 *range;
return 0;
}
C
system ENV.cc, "test.c"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end