aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fontforge.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-09-02 22:32:02 +0100
committerMike McQuaid2013-09-02 22:32:02 +0100
commitec36776d60d3c4c92e8958df42e44d6c6e689e60 (patch)
treef47c4efaff7cce162b3fd75ab3d927d306a01034 /Library/Formula/fontforge.rb
parenta19f31ad275ab46a37e19ea780fefbef55ef9841 (diff)
downloadhomebrew-ec36776d60d3c4c92e8958df42e44d6c6e689e60.tar.bz2
Fix various Python import tests.
Diffstat (limited to 'Library/Formula/fontforge.rb')
-rw-r--r--Library/Formula/fontforge.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb
index 3c2ad8a11..bb8d9b7fe 100644
--- a/Library/Formula/fontforge.rb
+++ b/Library/Formula/fontforge.rb
@@ -87,7 +87,11 @@ class Fontforge < Formula
def test
system "#{bin}/fontforge", "-version"
- system python, "-c", "import fontforge"
+ if build.with? 'python'
+ python do
+ system python, "-c", "import fontforge"
+ end
+ end
end
def caveats