class Efl < Formula desc "Enlightenment Foundation Libraries" homepage "https://www.enlightenment.org" url "https://download.enlightenment.org/rel/libs/efl/efl-1.24.3.tar.xz" sha256 "de95c6e673c170c1e21382918b122417c091c643e7dcaced89aa785529625c2a" license all_of: ["GPL-2.0-only", "LGPL-2.1-only", "BSD-2-Clause", "FTL", "zlib-acknowledgement"] revision 1 livecheck do url "https://download.enlightenment.org/rel/libs/efl/" regex(/href=.*?efl[._-]v?(\d+(?:\.\d+)+)\.t/i) end bottle do sha256 "c6c382171fc3f184ff172d2c096cdddd24fdf13fe4edc92312638d19ee53228e" => :catalina sha256 "85df6d2e5fe9d36c84e21a07686bb000c874e84be4ccf312be619d4ab3d633d8" => :mojave sha256 "f9ac6c958f98719faa96c62c29c52442da90ed80209c1e3ec2ef657e5ec02544" => :high_sierra end depends_on "meson" => :build depends_on "ninja" => :build depends_on "pkg-config" => :build depends_on "bullet" depends_on "dbus" depends_on "fontconfig" depends_on "freetype" depends_on "fribidi" depends_on "gettext" depends_on "giflib" depends_on "glib" depends_on "gst-plugins-good" depends_on "gstreamer" depends_on "jpeg" depends_on "libpng" depends_on "libraw" depends_on "librsvg" depends_on "libsndfile" depends_on "libspectre" depends_on "libtiff" depends_on "luajit" depends_on "lz4" depends_on "openssl@1.1" depends_on "poppler" depends_on "pulseaudio" depends_on "shared-mime-info" uses_from_macos "zlib" def install args = std_meson_args + %w[ -Davahi=false -Dbuild-examples=false -Dbuild-tests=false -Dcocoa=true -Dembedded-lz4=false -Deeze=false -Dglib=true -Dlibmount=false -Dopengl=full -Dphysics=true -Dsystemd=false -Dv4l2=false -Dx11=false ] # Install in our Cellar - not dbus's inreplace "dbus-services/meson.build", "dep.get_pkgconfig_variable('session_bus_services_dir')", "'#{share}/dbus-1/services'" mkdir "build" do system "meson", *args, ".." system "ninja", "-v" system "ninja", "install", "-v" end end def post_install system Formula["shared-mime-info"].opt_bin/"update-mime-database", "#{HOMEBREW_PREFIX}/share/mime" end test do system bin/"edje_cc", "-V" system bin/"eet", "-V" end end