48 lines
1.5 KiB
Ruby
48 lines
1.5 KiB
Ruby
class Libxrender < Formula
|
|
desc "X.Org: Library for the Render Extension to the X11 protocol"
|
|
homepage "https://www.x.org/"
|
|
url "https://www.x.org/archive/individual/lib/libXrender-0.9.10.tar.bz2"
|
|
sha256 "c06d5979f86e64cabbde57c223938db0b939dff49fdb5a793a1d3d0396650949"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "46243f05a17674c00950dddc105b33aa479af7d605533d1aeada27d4d89d4275"
|
|
sha256 cellar: :any, big_sur: "65fbad7a9da818086574a40880db58c8f2457db77aee1982d141cd09dad7e3a9"
|
|
sha256 cellar: :any, catalina: "cb7f48876d362f919ed1c34ece8ec5abb16f6e414a6119655e3948fffab5dfab"
|
|
sha256 cellar: :any, mojave: "77563596957d673a9f4acb0cb4f1e1d28c3b99e7f4a13f0a1dd1e3e403c454b9"
|
|
sha256 cellar: :any, high_sierra: "b1bf08a6c6c6827af5a3472ac979c9328b780da52c1d234d385ef1fc3b0771b6"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libx11"
|
|
depends_on "xorgproto"
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--sysconfdir=#{etc}
|
|
--localstatedir=#{var}
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.c").write <<~EOS
|
|
#include "X11/Xlib.h"
|
|
#include "X11/extensions/Xrender.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
XRenderColor color;
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cc, "test.c"
|
|
assert_equal 0, $CHILD_STATUS.exitstatus
|
|
end
|
|
end
|