aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:05:21 +0000
committerMike McQuaid2014-01-04 13:19:22 +0000
commit0b51d186cd88b40c2976a9cf4c055b49bb4b837b (patch)
treeb066beaa326e467ff836aadaf4b7a2f9ed8d5a91 /Library/Formula
parent42865745855df6ff9d3ba4396a964209cd48f111 (diff)
downloadhomebrew-0b51d186cd88b40c2976a9cf4c055b49bb4b837b.tar.bz2
enchant: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/enchant.rb22
1 files changed, 7 insertions, 15 deletions
diff --git a/Library/Formula/enchant.rb b/Library/Formula/enchant.rb
index a9c0d25d7..25def0c06 100644
--- a/Library/Formula/enchant.rb
+++ b/Library/Formula/enchant.rb
@@ -24,22 +24,14 @@ class Enchant < Formula
system "make", "install"
if build.with? 'python'
- python do
- resource('pyenchant').stage do
- # Don't download and install distribute now
- inreplace 'setup.py', "distribute_setup.use_setuptools()", ""
- ENV['PYENCHANT_LIBRARY_PATH'] = lib/'libenchant.dylib'
- system python, 'setup.py', 'install', "--prefix=#{prefix}",
- '--single-version-externally-managed',
- '--record=installed.txt'
- end
+ resource('pyenchant').stage do
+ # Don't download and install distribute now
+ inreplace 'setup.py', "distribute_setup.use_setuptools()", ""
+ ENV['PYENCHANT_LIBRARY_PATH'] = lib/'libenchant.dylib'
+ system 'python', 'setup.py', 'install', "--prefix=#{prefix}",
+ '--single-version-externally-managed',
+ '--record=installed.txt'
end
end
end
-
- test do
- python do
- system python, "-c", "import enchant; d=enchant.Dict('en_US'); print(d.suggest('homebrew'))"
- end
- end
end