From 09682e2410716a7d8f7ea2c5e6a7f3537291c7ce Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Tue, 31 Mar 2026 23:33:51 -0700 Subject: [PATCH 1/2] xmag: new formula --- Formula/x/xmag.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/x/xmag.rb diff --git a/Formula/x/xmag.rb b/Formula/x/xmag.rb new file mode 100644 index 00000000..0304f38c --- /dev/null +++ b/Formula/x/xmag.rb @@ -0,0 +1,33 @@ +class Xmag < Formula + desc "X.Org Applications: xmag" + homepage "https://www.x.org/" + ### http://www.linuxfromscratch.org/blfs/view/svn/x/x7app.html + url "https://www.x.org/pub/individual/app/xmag-1.0.8.tar.xz" + sha256 "326d3c583d795bb53ac609d144e7f7fb1499baba7eaec14b8e6cd232ea069532" + license "MIT" + + depends_on "pkg-config" => :build + depends_on "util-macros" => :build + depends_on "xorgproto" => :build + depends_on "libxaw" + depends_on "libxmu" + depends_on "libxt" + + 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 + assert_predicate bin/"xmag", :executable? + end +end From c6933e0dea9b44ce93f24436f9ef425c5c61b133 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Wed, 1 Apr 2026 00:11:52 -0700 Subject: [PATCH 2/2] xmag: add libx11 as direct dep (fixes linkage) --- Formula/x/xmag.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/x/xmag.rb b/Formula/x/xmag.rb index 0304f38c..b13abd87 100644 --- a/Formula/x/xmag.rb +++ b/Formula/x/xmag.rb @@ -9,6 +9,7 @@ class Xmag < Formula depends_on "pkg-config" => :build depends_on "util-macros" => :build depends_on "xorgproto" => :build + depends_on "libx11" depends_on "libxaw" depends_on "libxmu" depends_on "libxt"