diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/enchant.rb | 6 | ||||
| -rw-r--r-- | Library/Formula/fontforge.rb | 6 | ||||
| -rw-r--r-- | Library/Formula/libvirt.rb | 10 | ||||
| -rw-r--r-- | Library/Formula/shiboken.rb | 6 |
4 files changed, 23 insertions, 5 deletions
diff --git a/Library/Formula/enchant.rb b/Library/Formula/enchant.rb index daeed7c41..56353ad19 100644 --- a/Library/Formula/enchant.rb +++ b/Library/Formula/enchant.rb @@ -37,8 +37,10 @@ class Enchant < Formula end def test - python do - system python, "-c", "import enchant; d=enchant.Dict('en_US'); print(d.suggest('homebrew'))" + if build.with? 'python' + python do + system python, "-c", "import enchant; d=enchant.Dict('en_US'); print(d.suggest('homebrew'))" + end end end end 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 diff --git a/Library/Formula/libvirt.rb b/Library/Formula/libvirt.rb index 1c4ba97b4..6b88d28a2 100644 --- a/Library/Formula/libvirt.rb +++ b/Library/Formula/libvirt.rb @@ -61,4 +61,14 @@ class Libvirt < Formula end end end + + test do + if build.with? 'python' + python do + # Testing to import the mod because that is a .so file where linking + # can break. + system python, '-c', "import libvirtmod" + end + end + end end diff --git a/Library/Formula/shiboken.rb b/Library/Formula/shiboken.rb index 171a666a2..fe01e19b9 100644 --- a/Library/Formula/shiboken.rb +++ b/Library/Formula/shiboken.rb @@ -49,8 +49,10 @@ class Shiboken < Formula end test do - python do - system python, "-c", "import shiboken" + if build.with? 'python' + python do + system python, "-c", "import shiboken" + end end end end |
