diff options
| author | Michael Nahas | 2014-05-19 17:34:05 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-22 12:40:34 -0700 |
| commit | 2ed8b16a083f670f891e549509bde66a85e77103 (patch) | |
| tree | 60c359e6a7d5fa794fc2f8579b6f58fb887a1ae7 /Library/Formula | |
| parent | 15a4bd2615676958cd2820df93bca4e69823f3c0 (diff) | |
| download | homebrew-2ed8b16a083f670f891e549509bde66a85e77103.tar.bz2 | |
gnumeric: optional flag to gnumeric to allow python scripting
Gnumeric allows users to write macros/scripts in python.
That was unavailable in the previous version. Gnumeric's configure
script would see pygobject missing and disable it. With this
commit, users can do --with-pygobject and enable it.
(I'd prefer that the option was named "--with-python" but I didn't
know how to do that.)
Closes #29433.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnumeric.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/gnumeric.rb b/Library/Formula/gnumeric.rb index a9fba3e8c..f450854ef 100644 --- a/Library/Formula/gnumeric.rb +++ b/Library/Formula/gnumeric.rb @@ -1,15 +1,18 @@ -require 'formula' +require "formula" class Gnumeric < Formula - homepage 'http://projects.gnome.org/gnumeric/' - url 'http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.10/gnumeric-1.10.17.tar.bz2' - sha256 'bb2a13424811d132fe1be7a6e82d61157a18c630fc91b7409503dbd7ef600ea5' + homepage "http://projects.gnome.org/gnumeric/" + url "http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.10/gnumeric-1.10.17.tar.bz2" + sha256 "bb2a13424811d132fe1be7a6e82d61157a18c630fc91b7409503dbd7ef600ea5" - depends_on 'pkg-config' => :build - depends_on 'intltool' => :build - depends_on 'gettext' - depends_on 'goffice' - depends_on 'rarian' + option "python-scripting", "Enable Python scripting." + + depends_on "pkg-config" => :build + depends_on "intltool" => :build + depends_on "gettext" + depends_on "goffice" + depends_on "pygobject" => if build.include? "python-scripting" + depends_on "rarian" depends_on :x11 def install |
