Skip to content

Instantly share code, notes, and snippets.

@ford-prefect
Created November 28, 2014 05:04
Show Gist options
  • Save ford-prefect/cd1c252730d3b00bc1fd to your computer and use it in GitHub Desktop.
Save ford-prefect/cd1c252730d3b00bc1fd to your computer and use it in GitHub Desktop.
seed brew formula
require "formula"
class Seed < Formula
homepage "https://wiki.gnome.org/action/show/Projects/Seed"
url "https://github.com/GNOME/seed.git", :revision => "0b2df4d5b17f1034a058cd8d0069807a3cefeba1"
version "3.8.1-git0b2df4"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
depends_on "intltool" => :build
depends_on "pkg-config" => :build
depends_on "gtk-doc" => :build
depends_on "gnome-common" => :build
depends_on "libffi"
depends_on "gobject-introspection"
def install
# We don't depend on an external webkit implementation
inreplace "seed.pc.in", "@WEBKIT_PC@", ""
inreplace "seed.pc.in", "Libs:", "Libs: -framework JavaScriptCore"
system "./autogen.sh", "--prefix=#{prefix}",
"--disable-canvas-module",
"--disable-readline-module",
"--disable-multiprocessing-module",
"--disable-sqlite-module",
"--disable-xorg-module",
"--disable-example-module",
"--disable-dbus-module",
"--disable-os-module",
"--disable-ffi-module",
"--disable-libxml-module",
"--disable-dynamicobject-module",
"--disable-gtkbuilder-module",
"--disable-cairo-module",
"--disable-gettext-module",
"--disable-mpfr-module",
"WEBKIT_CFLAGS=''",
"WEBKIT_LIBS='-framework JavaScriptCore'",
"GNOME_JS_CFLAGS='-I.'",
"GNOME_JS_LIBS='-L.'"
# Disable building docs - doesn't work at the moment
inreplace "doc/Makefile", "all: all-recursive", "all:"
inreplace "doc/Makefile", "install: install-recursive", "install:"
system "make", "install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment