Skip to content

Commit

Permalink
Merge pull request Homebrew#198849 from Homebrew/pkgconf-migrations-s-6
Browse files Browse the repository at this point in the history
s*: migrate to `pkgconf` (part 6)
  • Loading branch information
BrewTestBot authored Nov 25, 2024
2 parents b1ba9bb + 3968adc commit f95cd48
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 38 deletions.
3 changes: 2 additions & 1 deletion Formula/s/squashfuse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ class Squashfuse < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "libfuse"
depends_on :linux # on macOS, requires closed-source macFUSE
depends_on "lz4"
depends_on "lzo"
depends_on "squashfs"
depends_on "xz"
depends_on "zlib"
depends_on "zstd"

def install
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/sratom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Sratom < Formula

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]
depends_on "lv2"
depends_on "serd"
depends_on "sord"
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/srt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Srt < Formula
end

depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "openssl@3"

def install
Expand Down
4 changes: 2 additions & 2 deletions Formula/s/srtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class Srtp < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "eae0dbd9de36ab4ca28ded9160425af7fa9ab1928b5de1d94049866627b514b1"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "openssl@3"

def install
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--enable-openssl"
system "./configure", "--enable-openssl", *std_configure_args
system "make", "test"
system "make", "shared_library"
system "make", "install" # Can't go in parallel of building the dylib
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/ssh-vault.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SshVault < Formula
depends_on "rust" => :build

on_linux do
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "openssl@3"
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/s/sshfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Sshfs < Formula

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "glib"
depends_on "libfuse"
depends_on :linux # on macOS, requires closed-source macFUSE
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/ssocr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Ssocr < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "7c612e5d1a5b67047699009bd3193889a7bdcdefb7c0b5541b642a4cde7aa49d"
end

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

resource "homebrew-test-image" do
Expand Down
9 changes: 4 additions & 5 deletions Formula/s/sstp-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class SstpClient < Formula
sha256 x86_64_linux: "30078ed4805a4e3b52753c60ad87590d21a8a5289b31fde3d27be0116f179b2b"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "libevent"
depends_on "openssl@3"

def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
system "./configure", "--disable-silent-rules",
"--disable-ppp-plugin",
"--prefix=#{prefix}",
"--with-runtime-dir=#{var}/run/sstpc"
"--with-runtime-dir=#{var}/run/sstpc",
*std_configure_args
system "make", "install"

# Create a directory needed by sstpc for privilege separation
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/starship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Starship < Formula
uses_from_macos "zlib"

on_linux do
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "dbus"
end

Expand Down
7 changes: 3 additions & 4 deletions Formula/s/startup-notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ class StartupNotification < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "45873a4a273a11b66436459b7130de94bcb32470a3a4376ef74b2803e2494462"
end

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

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "./configure", *std_configure_args
system "make", "install"
end

test do
assert_match "-I#{include}", shell_output("pkg-config --cflags libstartup-notification-1.0").chomp
assert_match "-I#{include}", shell_output("pkgconf --cflags libstartup-notification-1.0").chomp
end
end
6 changes: 2 additions & 4 deletions Formula/s/stella.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ class Stella < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "7689d9dae573a6288fe3be94adabad8791c2075d210faa27c82e624c4c6c6689"
end

depends_on "pkg-config" => :build
depends_on xcode: :build
depends_on "pkgconf" => :build
depends_on xcode: :build # for xcodebuild
depends_on "libpng"
depends_on "sdl2"

uses_from_macos "sqlite"
uses_from_macos "zlib"

fails_with gcc: "5"

def install
sdl2 = Formula["sdl2"]
libpng = Formula["libpng"]
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/stellar-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class StellarCli < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "bd594e5e89b8c29f2bcb1f486a16beb62c410878f76fd820f0825a9ffab02059"
end

depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "openssl@3"

Expand Down
2 changes: 1 addition & 1 deletion Formula/s/stgit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Stgit < Formula
end

depends_on "asciidoc" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "xmlto" => :build
depends_on "git"
Expand Down
14 changes: 6 additions & 8 deletions Formula/s/stlink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Stlink < Formula
end

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

# upstream PR ref, https://github.com/stlink-org/stlink/pull/1373
Expand All @@ -32,19 +32,17 @@ class Stlink < Formula
end

def install
args = []

libusb = Formula["libusb"]
args << "-DLIBUSB_INCLUDE_DIR=#{libusb.opt_include}/libusb-#{libusb.version.major_minor}"
args << "-DLIBUSB_LIBRARY=#{libusb.opt_lib/shared_library("libusb-#{libusb.version.major_minor}")}"

args = %W[
-DCMAKE_INSTALL_RPATH=#{rpath}
-DLIBUSB_INCLUDE_DIR=#{libusb.opt_include}/libusb-#{libusb.version.major_minor}
-DLIBUSB_LIBRARY=#{libusb.opt_lib/shared_library("libusb-#{libusb.version.major_minor}")}
]
if OS.linux?
args << "-DSTLINK_MODPROBED_DIR=#{lib}/modprobe.d"
args << "-DSTLINK_UDEV_RULES_DIR=#{lib}/udev/rules.d"
end

args << "-DCMAKE_INSTALL_RPATH=#{rpath}"

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
Expand Down
5 changes: 2 additions & 3 deletions Formula/s/stoken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ class Stoken < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "gmp"
depends_on "nettle"

uses_from_macos "libxml2"

def install
system "./autogen.sh"
system "./configure", *std_configure_args,
"--disable-silent-rules"
system "./configure", "--disable-silent-rules", *std_configure_args
system "make", "check"
system "make", "install"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/streamlink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Streamlink < Formula
uses_from_macos "libxslt"

on_linux do
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
end

resource "attrs" do
Expand Down
2 changes: 1 addition & 1 deletion Formula/s/streamripper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Streamripper < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "ebe33322f4bca7c998f76446b9c10988c7c058ba02bf0aedbbec87b0a9861a38"
end

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

Expand Down
2 changes: 1 addition & 1 deletion Formula/s/strongswan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Strongswan < Formula
depends_on "bison" => :build
depends_on "gettext" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
end

depends_on "openssl@3"
Expand Down

0 comments on commit f95cd48

Please sign in to comment.