From 6b4c681b37cbc1859a727ee99b3c5bfd12ec2401 Mon Sep 17 00:00:00 2001 From: Brighid McDonnell Date: Tue, 10 Feb 2015 13:02:32 -0800 Subject: notmuch: add option to install non-broken python bindings Closes #36723. Signed-off-by: Tim D. Smith --- Library/Formula/notmuch.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/notmuch.rb b/Library/Formula/notmuch.rb index ea4c5694b..5443ded1a 100644 --- a/Library/Formula/notmuch.rb +++ b/Library/Formula/notmuch.rb @@ -14,6 +14,8 @@ class Notmuch < Formula depends_on "pkg-config" => :build depends_on "emacs" => :optional + depends_on :python => :optional + depends_on :python3 => :optional depends_on "xapian" depends_on "talloc" depends_on "gmime" @@ -38,8 +40,15 @@ class Notmuch < Formula else args << "--without-emacs" end - system "./configure", *args + system "./configure", *args system "make", "V=1", "install" + + Language::Python.each_python(build) do |python, version| + cd "bindings/python" do + system python, *Language::Python.setup_install_args(prefix) + end + end + end end -- cgit v1.2.3