2017-03-14 20:55:25 +00:00
|
|
|
class GnomeRecipes < Formula
|
2016-12-29 21:32:32 +00:00
|
|
|
desc "Formula for GNOME recipes"
|
|
|
|
homepage "https://wiki.gnome.org/Apps/Recipes"
|
2017-03-17 14:17:41 +00:00
|
|
|
url "https://download.gnome.org/sources/gnome-recipes/1.0/gnome-recipes-1.0.0.tar.xz"
|
|
|
|
sha256 "d291a597c9d5882b03ba21297d6b4b04cd1748cabebe8f4c97b97f9ece3df5c8"
|
2016-12-29 21:32:32 +00:00
|
|
|
|
2016-12-31 23:06:31 +00:00
|
|
|
bottle do
|
2017-03-17 14:29:01 +00:00
|
|
|
sha256 "6f783969775cd0ebbfee608bf170fc1252749e476d5c5da9e5359f963945b15f" => :sierra
|
|
|
|
sha256 "9b18aa73043e900777cc2104d2c9dfc3078a9756be7464c1c38396438d4841b5" => :el_capitan
|
|
|
|
sha256 "dec400d3b3e7decc6830504daf67d785b4cebd5b8feceb1e2b2dcadae0ddd033" => :yosemite
|
2016-12-31 23:06:31 +00:00
|
|
|
end
|
|
|
|
|
2017-03-13 09:47:18 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2016-12-29 21:32:32 +00:00
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "gnome-icon-theme"
|
2017-03-13 09:47:18 +00:00
|
|
|
depends_on "libcanberra"
|
2017-03-17 14:17:41 +00:00
|
|
|
depends_on "gnome-autoar"
|
|
|
|
depends_on "gspell"
|
2016-12-29 21:32:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# orces use of gtk3-update-icon-cache instead of gtk-update-icon-cache. No bugreport should
|
|
|
|
# be filed for this since it only occurs because Homebrew renames gtk+3's gtk-update-icon-cache
|
|
|
|
# to gtk3-update-icon-cache in order to avoid a collision between gtk+ and gtk+3.
|
|
|
|
inreplace "data/Makefile.in", "gtk-update-icon-cache", "gtk3-update-icon-cache"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
2017-03-17 14:17:41 +00:00
|
|
|
"--enable-autoar",
|
|
|
|
"--enable-gspell",
|
2017-03-13 09:47:18 +00:00
|
|
|
"--disable-schemas-compile"
|
2016-12-29 21:32:32 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
2017-03-13 09:47:18 +00:00
|
|
|
def post_install
|
|
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
|
|
end
|
|
|
|
|
2016-12-29 21:32:32 +00:00
|
|
|
test do
|
2017-03-13 09:47:18 +00:00
|
|
|
system "#{bin}/gnome-recipes", "--help"
|
2016-12-29 21:32:32 +00:00
|
|
|
end
|
|
|
|
end
|