Skip to content

Commit 1c97570

Browse files
authored
Merge pull request #255834 from Homebrew/gstreamer-postinstall
gstreamer: move postinstall into bottle, add no_linkage
2 parents da75cb6 + 3eb1f33 commit 1c97570

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Formula/g/gstreamer.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ class Gstreamer < Formula
2424
end
2525

2626
bottle do
27-
sha256 arm64_tahoe: "7bcc2a04eb2366c990eae866f0b4465655fcf3303199b83e094e773baf70de92"
28-
sha256 arm64_sequoia: "7b58bf5616e95f847b51a5f3b61d4be360b3a3f5abfee7353278e7ccd2486ab9"
29-
sha256 arm64_sonoma: "02d0829c7550efac098c55e88c5d8226acd73556d312e12ac790e16032edc4ac"
30-
sha256 sonoma: "451b6d2d7fe233035cbe51fd4c332bdbdce943794316d273f3c3e837f0ea8abc"
31-
sha256 arm64_linux: "960d6cfa21841b46b9621b11016bb3ed39bf295a279f153dc8d21a0aadb6ccd4"
32-
sha256 x86_64_linux: "f4d018e8e6e39b9e260cd013e501808a9d7b26a0a7db85dd913d7c66ee727123"
27+
rebuild 1
28+
sha256 arm64_tahoe: "41af15a46a4fb4ed504ae1916a7bf7e621373dc92127fc74b60190be18304b35"
29+
sha256 arm64_sequoia: "b4b4448116a404f586997fbd7ba9b44183501bfcef929dd5cac020f900b1a890"
30+
sha256 arm64_sonoma: "e0764a7424f70b36fb1854c0f9330a6b11847655bcb9f29282da25117e3116f7"
31+
sha256 sonoma: "5f7fc44f64b388ad55e651fec0411f465697709f98bc87cdddf85c0e5430453e"
32+
sha256 arm64_linux: "1575657d25cec78e2f88768273ddc2918e5145ecd9a32c0438ff7b6e844aa400"
33+
sha256 x86_64_linux: "8582b7883df0fc49ac187659adc52f84a94b365532ac59466bee82e24b1e52b6"
3334
end
3435

3536
head do
@@ -74,7 +75,7 @@ class Gstreamer < Formula
7475
depends_on "libshout"
7576
depends_on "libsndfile"
7677
depends_on "libsodium"
77-
depends_on "libsoup" # no linkage on Linux as dlopen'd
78+
depends_on "libsoup" => :no_linkage # dlopen'd
7879
depends_on "libusrsctp"
7980
depends_on "libvorbis"
8081
depends_on "libvpx"
@@ -94,7 +95,7 @@ class Gstreamer < Formula
9495
depends_on "opus"
9596
depends_on "orc"
9697
depends_on "pango"
97-
depends_on "pygobject3"
98+
depends_on "pygobject3" => :no_linkage
9899
depends_on "[email protected]"
99100
depends_on "rtmpdump"
100101
depends_on "speex"
@@ -138,6 +139,8 @@ def python3
138139
which("python3.14")
139140
end
140141

142+
skip_clean "lib/gstreamer-1.0/libgstnice.dylib", "lib/gstreamer-1.0/libgstnice.so"
143+
141144
# These paths used to live in various `gst-*` formulae.
142145
link_overwrite "bin/gst-*", "lib/ligst*", "lib/libges*", "lib/girepository-1.0/Gst*-1.0.typelib"
143146
link_overwrite "lib/girepository-1.0/GES-1.0.typelib", "lib/gst-validate-launcher/*", "lib/gstreamer-1.0/*"
@@ -222,11 +225,8 @@ def install
222225
system "meson", "setup", "build", *args, *std_meson_args
223226
system "meson", "compile", "-C", "build", "--verbose"
224227
system "meson", "install", "-C", "build"
225-
end
226228

227-
def post_install
228229
# Support finding the `libnice` plugin, which is in a separate formula.
229-
# Needs to be done in `post_install`, since bottling prunes this symlink.
230230
libnice_gst_plugin = Formula["libnice-gstreamer"].opt_libexec/"gstreamer-1.0"/shared_library("libgstnice")
231231
gst_plugin_dir = lib/"gstreamer-1.0"
232232
ln_sf libnice_gst_plugin.relative_path_from(gst_plugin_dir), gst_plugin_dir

0 commit comments

Comments
 (0)