Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gstreamer: use monorepo build #125996

Merged
merged 18 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions Formula/aravis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ class Aravis < Formula
url "https://github.com/AravisProject/aravis/releases/download/0.8.26/aravis-0.8.26.tar.xz"
sha256 "cb866cbcf4de2ab8fedf5d6a1213dd714347adf25d9e1812df2283230f065f80"
license "LGPL-2.1-or-later"
revision 1

bottle do
sha256 arm64_ventura: "7b8539b5c6715fbe5e1c1190729a0cafcd8c7ad2b68f9b2de3a367d2888d96a4"
sha256 arm64_monterey: "f1b8c71965cc30d5a0e67b74cd4e413c08f43524ee3c085947ab6f4e23dbc914"
sha256 arm64_big_sur: "92c03d273363efbeddd1718d304fda597f7a90bec40ddf9841bd5b8e98e9b37b"
sha256 ventura: "7c0ee991c488b3e8b47cbf0931f6da3498af1c4c9b1bc2da7aaf2e05ee2d5a29"
sha256 monterey: "c1cbe8f7c81f5e6129b13939c61318769db6a5bcaa96062daee10ac2abd2e91b"
sha256 big_sur: "058cf7af98f1f5b12398e7783e5fd8e0b5790e6e564af83c7b77b2e1a5a2c3cd"
sha256 x86_64_linux: "191211b85ea19f09472092668492e9ba9b83979c79b2f2bb22e12b197ef63489"
sha256 arm64_ventura: "9f657a5a59e310fda730e6e9f2db6aa0468269f1e3abce5c9c02b2fad655d429"
sha256 arm64_monterey: "ddd783d0729912a53b0e81399f4a51682b77fa6fb33abb13b3c52e930850220d"
sha256 arm64_big_sur: "48e5efa2bbffd8a2fff4af276e664f8d270d73912ee791ab85533ec5a257584f"
sha256 ventura: "6489b5c0799136db0276806841f87b1f4d69508dc5c4accee636a7dbedae28e9"
sha256 monterey: "55818feb3907fbb78f965ba67458b1c2ccfd1653a68d5447ecdb544fd1801878"
sha256 big_sur: "f70efa75be67e6e0149404bce69cc252adc5177b70ce692247f9f04bda4c308b"
sha256 x86_64_linux: "e467f4494ffd91c4a54636f9dfe2be758aa0b724628b88ac47f7d322d122154b"
end

depends_on "gobject-introspection" => :build
Expand All @@ -22,9 +23,6 @@ class Aravis < Formula
depends_on "pkg-config" => :build
depends_on "adwaita-icon-theme"
depends_on "glib"
depends_on "gst-plugins-bad"
depends_on "gst-plugins-base"
depends_on "gst-plugins-good"
depends_on "gstreamer"
depends_on "gtk+3"
depends_on "intltool"
Expand All @@ -34,17 +32,22 @@ class Aravis < Formula
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"

mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
system "ninja", "install"
end
system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

def post_install
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
end

def caveats
<<~EOS
For GStreamer to find the bundled plugin:
export GST_PLUGIN_PATH=#{opt_lib}/gstreamer-1.0
EOS
end

test do
lib_ext = OS.mac? ? "dylib" : "so"
output = shell_output("gst-inspect-1.0 #{lib}/gstreamer-1.0/libgstaravis.#{version.major_minor}.#{lib_ext}")
Expand Down
23 changes: 11 additions & 12 deletions Formula/efl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ class Efl < Formula
url "https://download.enlightenment.org/rel/libs/efl/efl-1.26.3.tar.xz"
sha256 "d9f83aa0fd9334f44deeb4e4952dc0e5144683afac786feebce6030951617d15"
license all_of: ["GPL-2.0-only", "LGPL-2.1-only", "BSD-2-Clause", "FTL", "zlib-acknowledgement"]
revision 2
revision 3

livecheck do
url "https://download.enlightenment.org/rel/libs/efl/"
regex(/href=.*?efl[._-]v?(\d+(?:\.\d+)+)\.t/i)
end

bottle do
sha256 arm64_ventura: "2308441b83185c2d6da3e9cd5347ca912a77a3c147a6e982b1271435c4f0b825"
sha256 arm64_monterey: "d37e865d4c4cdc574c331a9d241e59055b618b868de4f02bf2c642418a605e73"
sha256 arm64_big_sur: "8aedee8079107e06012114a044055139b116091aaeb065ebd2acfae61f172a38"
sha256 ventura: "012848c11f48b1ce716a017628285ef205a4126ac650142d18c41bb1f301a49b"
sha256 monterey: "f8fc215bb8dfc4b810ea51a6347ef44f7cddf51c4ae34b7c52ae6754a1ab6281"
sha256 big_sur: "6d7ca4036bc1741a6c9dd0d32faca21283a06a2621cc27d813049c3cec2a1d04"
sha256 x86_64_linux: "b866ef13beba78bcd5b3f0dfb8817d163ae9f23bd96c729e61e82444938a9dfa"
sha256 arm64_ventura: "4d23735bd74fde88b0a6239ed79d6fbf8aa4f2181d7abf8d2dd0f68c34574db9"
sha256 arm64_monterey: "7e3ebe4d468f8d9f5dfebc0f6f153ed870abd35979a93085a292e75a7e480d80"
sha256 arm64_big_sur: "88184df81156dce04b72680e09379289728be6fac24be90d38dd44c62967c387"
sha256 ventura: "738b6d7d2b0921837b5874cc973b001336e6e1ae3e592ab7ce377b338d7cd2e7"
sha256 monterey: "866e0851a98dc5fb0a05ab5af78c1fd2f3f5cafa4379320b3db2052a5c88d92c"
sha256 big_sur: "521703fa948cd82d6e45e64dd4872ac14779a3eb921627992fb9217fb4920c6f"
sha256 x86_64_linux: "a8b504933f098d3687819f46a8cbc01a183ff5bcfb897267ee721f3b50402b09"
end

depends_on "meson" => :build
Expand All @@ -32,7 +32,6 @@ class Efl < Formula
depends_on "gettext"
depends_on "giflib"
depends_on "glib"
depends_on "gst-plugins-good"
depends_on "gstreamer"
depends_on "jpeg-turbo"
depends_on "libpng"
Expand All @@ -52,7 +51,7 @@ class Efl < Formula
uses_from_macos "zlib"

# Remove LuaJIT 2.0 linker args -pagezero_size and -image_base
# to fix ARM build using LuaJIT 2.1+ via `luajit-openresty`
# to fix ARM build using LuaJIT 2.1+
patch :DATA

def install
Expand All @@ -77,8 +76,8 @@ def install
inreplace "dbus-services/meson.build", "dep.get_pkgconfig_variable('session_bus_services_dir')",
"'#{share}/dbus-1/services'"

system "meson", *std_meson_args, "build", *args
system "meson", "compile", "-C", "build", "-v"
system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

Expand Down
53 changes: 0 additions & 53 deletions Formula/gst-devtools.rb

This file was deleted.

56 changes: 0 additions & 56 deletions Formula/gst-editing-services.rb

This file was deleted.

43 changes: 0 additions & 43 deletions Formula/gst-libav.rb

This file was deleted.

72 changes: 0 additions & 72 deletions Formula/gst-plugins-bad.rb

This file was deleted.

Loading