46 lines
1.3 KiB
Ruby
46 lines
1.3 KiB
Ruby
class Libxdmcp < Formula
|
|
bottle do
|
|
root_url "https://homebrew.mirror.ygg/bottles"
|
|
sha256 cellar: :any, arm64_sequoia: "b09a915dae5b45371a86f20a4ccce13c16c7a8eadc843b665e91bc5b2d2143ce"
|
|
sha256 cellar: :any, arm64_tahoe: "34ca0da1c319eeea93ce31badfb5c29c8876cea644754279e93f6cf032ab5cb1"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "d8b9dc2969e85e26c6d426d8865244e1416d73f7f408c9f5404a2a614a62e7d4"
|
|
end
|
|
desc "X.Org: X Display Manager Control Protocol library"
|
|
homepage "https://www.x.org/"
|
|
url "https://xorg.freedesktop.org/archive/individual/lib/libXdmcp-1.1.5.tar.xz"
|
|
sha256 "d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"
|
|
license "MIT"
|
|
compatibility_version 1
|
|
|
|
|
|
|
|
depends_on "pkgconf" => :build
|
|
depends_on "xorgproto"
|
|
|
|
def install
|
|
args = %W[
|
|
--sysconfdir=#{etc}
|
|
--localstatedir=#{var}
|
|
--disable-silent-rules
|
|
--enable-docs=no
|
|
]
|
|
|
|
system "./configure", *args, *std_configure_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.c").write <<~C
|
|
#include "X11/Xdmcp.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
xdmOpCode code;
|
|
return 0;
|
|
}
|
|
C
|
|
system ENV.cc, "test.c"
|
|
assert_equal 0, $CHILD_STATUS.exitstatus
|
|
end
|
|
end
|