enchant: cleanup python usage.

This commit is contained in:
Mike McQuaid 2014-01-04 13:05:21 +00:00
parent 18dd38f697
commit f3e5bf542a

View file

@ -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