homebrew-core/Formula/gnumeric.rb

45 lines
1.5 KiB
Ruby
Raw Normal View History

2016-01-12 06:08:06 +00:00
class Gnumeric < Formula
desc "GNOME Spreadsheet Application"
homepage "https://projects.gnome.org/gnumeric/"
url "https://download.gnome.org/sources/gnumeric/1.12/gnumeric-1.12.31.tar.xz"
sha256 "c8ace78e75c280dced3f15b27c44c7a98e8d21cd8361c6b2599cce191f6d6ae7"
2016-01-12 06:08:06 +00:00
bottle do
2016-06-30 10:12:29 +00:00
sha256 "f34a50977ece768bc1dc36f1575b1d707144a6f74a1d9309213b3fc2812059d4" => :el_capitan
sha256 "e6ae60e9466949b26bf195c15d261c4fb0cf99fad028f521b5c1e9c966a365ea" => :yosemite
sha256 "b0bcddec6232e8ca9c5e24be6e36436b47b8e0a8c6d9c78307464439d09db46e" => :mavericks
2016-01-12 06:08:06 +00:00
end
option "with-python-scripting", "Enable Python scripting."
2016-06-22 20:11:12 +00:00
deprecated_option "python-scripting" => "with-python-scripting"
2016-01-12 06:08:06 +00:00
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
depends_on "goffice"
depends_on "rarian"
depends_on "gnome-icon-theme"
2016-06-22 20:11:12 +00:00
depends_on "pygobject" if build.with? "python-scripting"
2016-01-12 06:08:06 +00:00
def install
# ensures that the files remain within the keg
2016-06-22 20:11:12 +00:00
inreplace "component/Makefile.in",
"GOFFICE_PLUGINS_DIR = @GOFFICE_PLUGINS_DIR@",
"GOFFICE_PLUGINS_DIR = @libdir@/goffice/@GOFFICE_API_VER@/plugins/gnumeric"
2016-01-12 06:08:06 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-schemas-compile"
system "make", "install"
end
def post_install
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
end
test do
2016-06-22 20:11:12 +00:00
system bin/"gnumeric", "--version"
2016-01-12 06:08:06 +00:00
end
end