Skip to content

Commit

Permalink
Merge pull request #198319 from Homebrew/pkgconf-migrations-x-3
Browse files Browse the repository at this point in the history
x*: migrate to `pkgconf` (part 3)
  • Loading branch information
BrewTestBot authored Nov 20, 2024
2 parents 74aa01b + 3d994f4 commit 5792d5b
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 48 deletions.
6 changes: 2 additions & 4 deletions Formula/x/xauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Xauth < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "79c33da732dc8f9d89082193869d83fcd79d695ea8cc8f26f1f5e2c743da6633"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "util-macros" => :build
depends_on "libx11"
depends_on "libxau"
Expand All @@ -30,18 +30,16 @@ class Xauth < Formula

def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
--enable-unix-transport
--enable-tcp-transport
--enable-ipv6
--enable-local-transport
]

system "./configure", *args
system "./configure", *args, *std_configure_args
system "make"
system "make", "install"
end
Expand Down
6 changes: 3 additions & 3 deletions Formula/x/xcb-proto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class XcbProto < Formula
sha256 cellar: :any_skip_relocation, all: "e85c8d57ca43017674ecd1dadce614289e8790768087a73ceef981e65310003e"
end

depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "[email protected]" => [:build, :test]

def python3
Expand All @@ -32,10 +32,10 @@ def install

test do
assert_match "#{share}/xcb", shell_output("pkg-config --variable=xcbincludedir xcb-proto").chomp
system python3, "-c", <<~EOS
system python3, "-c", <<~PYTHON
import collections
output = collections.defaultdict(int)
from xcbgen import xtypes
EOS
PYTHON
end
end
9 changes: 4 additions & 5 deletions Formula/x/xcb-util-cursor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class XcbUtilCursor < Formula
depends_on "util-macros" => :build
end

depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "libxcb"
depends_on "xcb-util"
depends_on "xcb-util-image"
Expand All @@ -32,11 +32,10 @@ class XcbUtilCursor < Formula

def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
system "./configure", "--disable-silent-rules",
"--localstatedir=#{var}",
"--disable-dependency-tracking",
"--disable-silent-rules"
"--sysconfdir=#{etc}",
*std_configure_args
system "make"
system "make", "install"
end
Expand Down
9 changes: 4 additions & 5 deletions Formula/x/xcb-util-image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@ class XcbUtilImage < Formula
depends_on "libtool" => :build
end

depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "libxcb"
depends_on "xcb-util"

def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
system "./configure", "--disable-silent-rules",
"--localstatedir=#{var}",
"--disable-dependency-tracking",
"--disable-silent-rules"
"--sysconfdir=#{etc}",
*std_configure_args
system "make"
system "make", "install"
end
Expand Down
9 changes: 4 additions & 5 deletions Formula/x/xcb-util-keysyms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@ class XcbUtilKeysyms < Formula
depends_on "libtool" => :build
end

depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "libxcb"

def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
system "./configure", "--disable-silent-rules",
"--localstatedir=#{var}",
"--disable-dependency-tracking",
"--disable-silent-rules"
"--sysconfdir=#{etc}",
*std_configure_args
system "make"
system "make", "install"
end
Expand Down
9 changes: 4 additions & 5 deletions Formula/x/xcb-util-wm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ class XcbUtilWm < Formula
depends_on "libtool" => :build
end

depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "libxcb"

uses_from_macos "m4" => :build

def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
system "./configure", "--disable-silent-rules",
"--localstatedir=#{var}",
"--disable-dependency-tracking",
"--disable-silent-rules"
"--sysconfdir=#{etc}",
*std_configure_args
system "make"
system "make", "install"
end
Expand Down
4 changes: 2 additions & 2 deletions Formula/x/xdpyinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Xdpyinfo < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "5f37e0dbf3c6c0741151f53befb6a5bc82b2fab008b3d28ce4cedf63e6a8bbbf"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build

depends_on "libx11"
depends_on "libxcb"
Expand All @@ -32,7 +32,7 @@ def install
--localstatedir=#{var}
--disable-silent-rules
]
system "./configure", *args, *std_configure_args.reject { |s| s["--disable-debug"] }
system "./configure", *args, *std_configure_args
system "make", "install"
end

Expand Down
6 changes: 3 additions & 3 deletions Formula/x/xinit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Xinit < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "540015cba432ff1f7e719b37f9c2c3af6d8f40784840eeb8e8774cf8575b82a0"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "tradcpp" => :build
depends_on "xorg-server" => :test

Expand Down Expand Up @@ -80,15 +80,15 @@ def install_xquartz_resource
def install
install_xquartz_resource if OS.mac?

configure_args = std_configure_args + %W[
configure_args = %W[
--bindir=#{HOMEBREW_PREFIX}/bin
--sysconfdir=#{etc}
--with-bundle-id-prefix=#{plist_name.chomp ".startx"}
--with-launchagents-dir=#{prefix}
--with-launchdaemons-dir=#{prefix}
]

system "./configure", *configure_args
system "./configure", *configure_args, *std_configure_args
system "make", "RAWCPP=tradcpp"
system "make", "XINITDIR=#{prefix}/etc/X11/xinit",
"sysconfdir=#{prefix}/etc",
Expand Down
15 changes: 8 additions & 7 deletions Formula/x/xnvme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ class Xnvme < Formula

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]

def install
# We do not have SPDK nor libvfn on macOS, thus disabling these
# The examples and tests are also a bit superfluous, so disable those as well
system "meson", "setup", "build",
*std_meson_args,
"-Dwith-spdk=disabled",
"-Dwith-libvfn=disabled",
"-Dtests=false",
"-Dexamples=false"
args = %w[
-Dwith-spdk=disabled
-Dwith-libvfn=disabled
-Dtests=false
-Dexamples=false
]
system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build"
system "meson", "install", "-C", "build"
end
Expand Down
6 changes: 2 additions & 4 deletions Formula/x/xorgrgb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,18 @@ class Xorgrgb < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "e6c3eca82aa9624b8b521d9d0e5cec68b9391538717c36c4d438edc75bb0085f"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "util-macros" => :build
depends_on "xorgproto" => :build

def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
]

system "./configure", *args
system "./configure", *args, *std_configure_args
system "make", "install"
end

Expand Down
4 changes: 2 additions & 2 deletions Formula/x/xplanet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Xplanet < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "ff1ddc436b45234444d121e117b299ec702da829391200dfae26547114834d02"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "freetype"
depends_on "giflib"
depends_on "jpeg-turbo"
Expand Down Expand Up @@ -75,7 +75,7 @@ def install
]
args << "--with-aqua" if OS.mac?

system "./configure", *std_configure_args, *args
system "./configure", *args, *std_configure_args
system "make", "install"
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/x/xplr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Xplr < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "a2e5fd49885a71195c2c9e6087e3b8d2f1b6b9c4a866be343db5fd1e067d5915"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "luajit"

Expand Down
3 changes: 1 addition & 2 deletions Formula/x/xsel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ class Xsel < Formula
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "libxt" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "libx11"

def install
system "./autogen.sh", *std_configure_args
system "./configure", *std_configure_args
system "make", "install"
end

Expand Down

0 comments on commit 5792d5b

Please sign in to comment.