aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBrighid McDonnell2015-02-10 13:02:32 -0800
committerTim D. Smith2015-02-12 00:02:28 -0800
commit6b4c681b37cbc1859a727ee99b3c5bfd12ec2401 (patch)
tree3307f41391d97f89f13e889badd82142819e3290 /Library/Formula
parent15b1541a0afeef26002a5ee0c4b0c8b1255efbf8 (diff)
downloadhomebrew-6b4c681b37cbc1859a727ee99b3c5bfd12ec2401.tar.bz2
notmuch: add option to install non-broken python bindings
Closes #36723. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/notmuch.rb11
1 files changed, 10 insertions, 1 deletions
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