2014-02-19 10:33:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class TranslateToolkit < Formula
|
|
|
|
homepage 'http://toolkit.translatehouse.org/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/translate/Translate%20Toolkit/1.11.0/translate-toolkit-1.11.0.tar.bz2'
|
2014-02-19 10:33:14 +00:00
|
|
|
sha1 'c67d17f9c0a3a04e1d18e8e0eb4c2440a11ec5ab'
|
|
|
|
|
|
|
|
def install
|
2014-03-13 17:01:12 +00:00
|
|
|
minor = `python -c 'import sys; print(sys.version_info[1])'`.chomp
|
|
|
|
|
|
|
|
ENV.prepend_create_path 'PYTHONPATH', lib/"python2.#{minor}/site-packages"
|
2014-02-19 10:33:14 +00:00
|
|
|
system "python", "setup.py", "install",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--install-scripts=#{bin}",
|
|
|
|
"--install-data=#{libexec}"
|
2014-03-13 17:01:12 +00:00
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
2014-02-19 10:33:14 +00:00
|
|
|
end
|
|
|
|
end
|