Skip to content

Commit 4ff3def

Browse files
committed
gstreamer: move postinstall into bottle, add no_linkage
1 parent 5e463ca commit 4ff3def

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Formula/g/gstreamer.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Gstreamer < Formula
7474
depends_on "libshout"
7575
depends_on "libsndfile"
7676
depends_on "libsodium"
77-
depends_on "libsoup" # no linkage on Linux as dlopen'd
77+
depends_on "libsoup" => :no_linkage # dlopen'd
7878
depends_on "libusrsctp"
7979
depends_on "libvorbis"
8080
depends_on "libvpx"
@@ -94,7 +94,7 @@ class Gstreamer < Formula
9494
depends_on "opus"
9595
depends_on "orc"
9696
depends_on "pango"
97-
depends_on "pygobject3"
97+
depends_on "pygobject3" => :no_linkage
9898
depends_on "[email protected]"
9999
depends_on "rtmpdump"
100100
depends_on "speex"
@@ -138,6 +138,8 @@ def python3
138138
which("python3.14")
139139
end
140140

141+
skip_clean "lib/gstreamer-1.0/libgstnice.dylib", "lib/gstreamer-1.0/libgstnice.so"
142+
141143
# These paths used to live in various `gst-*` formulae.
142144
link_overwrite "bin/gst-*", "lib/ligst*", "lib/libges*", "lib/girepository-1.0/Gst*-1.0.typelib"
143145
link_overwrite "lib/girepository-1.0/GES-1.0.typelib", "lib/gst-validate-launcher/*", "lib/gstreamer-1.0/*"
@@ -222,11 +224,8 @@ def install
222224
system "meson", "setup", "build", *args, *std_meson_args
223225
system "meson", "compile", "-C", "build", "--verbose"
224226
system "meson", "install", "-C", "build"
225-
end
226227

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

0 commit comments

Comments
 (0)