aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:13:49 +0000
committerMike McQuaid2014-01-04 13:35:45 +0000
commit6674ab4064efb1410c2a523e26a96aa4145bc243 (patch)
treeae61dd06d47f42d2f02c0d212a3760d2f347e285 /Library/Formula
parent65094f1e4d77f622e25211e14afdf1003773f24b (diff)
downloadhomebrew-6674ab4064efb1410c2a523e26a96aa4145bc243.tar.bz2
pygobject3: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pygobject3.rb22
1 files changed, 10 insertions, 12 deletions
diff --git a/Library/Formula/pygobject3.rb b/Library/Formula/pygobject3.rb
index d931743ea..580543b32 100644
--- a/Library/Formula/pygobject3.rb
+++ b/Library/Formula/pygobject3.rb
@@ -19,7 +19,7 @@ class Pygobject3 < Formula
depends_on 'libffi' => :optional
depends_on 'glib'
- depends_on :python => %w{2.7}
+ depends_on :python
depends_on :python3 => :optional
depends_on 'py2cairo'
depends_on 'py3cairo' if build.with? 'python3'
@@ -34,17 +34,15 @@ class Pygobject3 < Formula
def install
ENV.universal_binary if build.universal?
- python do
- if build.with? 'tests'
- # autogen.sh is necessary to update the build system after the above
- # patch and XDG_DATA_DIRS needs to be fixed for some tests to run
- inreplace 'tests/Makefile.am', '/usr/share', HOMEBREW_PREFIX/'share'
- system "./autogen.sh"
- end
-
- system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
- system "make", "install"
- system "make", "check" if build.with? 'tests'
+ if build.with? 'tests'
+ # autogen.sh is necessary to update the build system after the above
+ # patch and XDG_DATA_DIRS needs to be fixed for some tests to run
+ inreplace 'tests/Makefile.am', '/usr/share', HOMEBREW_PREFIX/'share'
+ system "./autogen.sh"
end
+
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "make", "install"
+ system "make", "check" if build.with? 'tests'
end
end