64 lines
1.7 KiB
Ruby
64 lines
1.7 KiB
Ruby
class Efl < Formula
|
|
desc "Enlightenment Foundation Libraries"
|
|
homepage "https://www.enlightenment.org"
|
|
url "https://download.enlightenment.org/rel/libs/efl/efl-1.20.7.tar.xz"
|
|
sha256 "b0a9b765bcd7b012f1072da1d491fc8671aa089473f746901d93f5807a2c76fe"
|
|
|
|
bottle do
|
|
sha256 "d6452fb1c7217436a28fee09ad2dd42adf83de640f4e5f0b2d232d3645014f95" => :high_sierra
|
|
sha256 "a727c22be08c4d6874b68cdb36737537d0d901797367a2365757eda5a62ca15f" => :sierra
|
|
sha256 "1a8b785b7ba3a5a553e9522ef23b9aafb215dd099f61a760ab77459a9e1ac0e4" => :el_capitan
|
|
end
|
|
|
|
option "with-docs", "Install development libraries/headers and HTML docs"
|
|
|
|
depends_on "doxygen" => :build if build.with? "docs"
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext" => :build
|
|
depends_on "openssl"
|
|
depends_on "freetype"
|
|
depends_on "fontconfig"
|
|
depends_on "jpeg"
|
|
depends_on "libpng"
|
|
depends_on "luajit"
|
|
depends_on "fribidi"
|
|
depends_on "giflib"
|
|
depends_on "libtiff"
|
|
depends_on "gstreamer"
|
|
depends_on "gst-plugins-good"
|
|
depends_on "dbus"
|
|
depends_on "pulseaudio"
|
|
depends_on "bullet"
|
|
depends_on "libsndfile"
|
|
depends_on "libspectre"
|
|
depends_on "libraw"
|
|
depends_on "librsvg"
|
|
depends_on "poppler"
|
|
depends_on "shared-mime-info"
|
|
depends_on "webp" => :optional
|
|
depends_on "glib" => :optional
|
|
|
|
needs :cxx11
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
system "make", "install-doc" if build.with? "docs"
|
|
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
|