diff options
| author | Eugene San (eugenesan) | 2013-10-27 07:11:21 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-27 08:10:23 -0700 |
| commit | 84d0adc7420019ddb8ccfe9fefd9c53375982b47 (patch) | |
| tree | 2384cda5e5e247f54347b73cf1006944262bca24 /Library/Formula | |
| parent | c01e63612c15a74fcb0c7e352e7658f3914f9376 (diff) | |
| download | homebrew-84d0adc7420019ddb8ccfe9fefd9c53375982b47.tar.bz2 | |
meld: 1.8.2
* New upstream version
* Add missing python dependency
* Add GTK source view for code styling
* Wrapper to block console output and usage of system python
Closes #23652.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/meld.rb | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Library/Formula/meld.rb b/Library/Formula/meld.rb index 3fa550d54..4ab662374 100644 --- a/Library/Formula/meld.rb +++ b/Library/Formula/meld.rb @@ -2,17 +2,35 @@ require 'formula' class Meld < Formula homepage 'http://meldmerge.org' - url 'http://ftp.gnome.org/pub/GNOME/sources/meld/1.8/meld-1.8.1.tar.xz' - sha1 '58c14ee018fb7d21b1ad00a366b50c884de6b38f' + url 'http://ftp.gnome.org/pub/GNOME/sources/meld/1.8/meld-1.8.2.tar.xz' + sha1 'da6e4430ea3e56ec649b53f96c485de13a52627f' depends_on 'intltool' => :build depends_on 'xz' => :build depends_on :x11 + depends_on :python depends_on 'pygtk' + depends_on 'pygtksourceview' depends_on 'pygobject' depends_on 'rarian' + # TODO: Move this into Library/Homebrew somewhere (see also mitmproxy.rb and ansible.rb). + def wrap bin_file, pythonpath + bin_file = Pathname.new bin_file + libexec_bin = Pathname.new libexec/'bin' + libexec_bin.mkpath + mv bin_file, libexec_bin + bin_file.write <<-EOS.undent + #!/bin/sh + PYTHONPATH="#{pythonpath}:$PYTHONPATH" "#{libexec_bin}/#{bin_file.basename}" "$@" > /dev/null 2>&1 + EOS + end + def install system "make", "prefix=#{prefix}", "install" + + Dir["#{bin}/*"].each do |bin_file| + wrap bin_file, python.global_site_packages + end end end |
