gegl 0.3.0
Closes Homebrew/homebrew#41183. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
8c9d4fe9e2
commit
7050fcba4d
1 changed files with 27 additions and 13 deletions
|
@ -1,15 +1,9 @@
|
|||
require "formula"
|
||||
|
||||
class Gegl < Formula
|
||||
desc "Graph based image processing framework"
|
||||
homepage "http://www.gegl.org/"
|
||||
|
||||
stable do
|
||||
# Use Debian because the official URL is unreliable.
|
||||
url "https://mirrors.kernel.org/debian/pool/main/g/gegl/gegl_0.2.0.orig.tar.bz2"
|
||||
mirror "ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2"
|
||||
sha1 "764cc66cb3c7b261b8fc18a6268a0e264a91d573"
|
||||
end
|
||||
url "http://download.gimp.org/pub/gegl/0.3/gegl-0.3.0.tar.bz2"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/g/gegl/gegl_0.3.0.orig.tar.bz2"
|
||||
sha256 "f0fec8f2e7b8835979d3cf4e38b05d41bb79f68dc80cf899a846484da693bbf7"
|
||||
|
||||
bottle do
|
||||
sha1 "df1f74de4563aa8c1de86cf03cf265c42e923c41" => :yosemite
|
||||
|
@ -31,14 +25,15 @@ class Gegl < Formula
|
|||
depends_on "intltool" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "babl"
|
||||
depends_on "glib"
|
||||
depends_on "gettext"
|
||||
depends_on "glib"
|
||||
depends_on "json-glib"
|
||||
depends_on "libpng"
|
||||
depends_on "jpeg" => :optional
|
||||
depends_on "lua" => :optional
|
||||
depends_on "cairo" => :optional
|
||||
depends_on "pango" => :optional
|
||||
depends_on "jpeg" => :optional
|
||||
depends_on "librsvg" => :optional
|
||||
depends_on "lua" => :optional
|
||||
depends_on "pango" => :optional
|
||||
depends_on "sdl" => :optional
|
||||
|
||||
def install
|
||||
|
@ -64,4 +59,23 @@ class Gegl < Formula
|
|||
system "./configure", *argv
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <gegl.h>
|
||||
gint main(gint argc, gchar **argv) {
|
||||
gegl_init(&argc, &argv);
|
||||
GeglNode *gegl = gegl_node_new ();
|
||||
gegl_exit();
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "-I#{include}/gegl-0.3", "-L#{lib}", "-lgegl-0.3",
|
||||
"-I#{Formula["babl"].opt_include}/babl-0.1",
|
||||
"-I#{Formula["glib"].opt_include}/glib-2.0",
|
||||
"-I#{Formula["glib"].opt_lib}/glib-2.0/include",
|
||||
"-L#{Formula["glib"].opt_lib}", "-lgobject-2.0", "-lglib-2.0",
|
||||
testpath/"test.c", "-o", testpath/"test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue