18 lines
685 B
Ruby
18 lines
685 B
Ruby
require 'formula'
|
|
|
|
class TranslateToolkit < Formula
|
|
homepage 'http://toolkit.translatehouse.org/'
|
|
url 'https://downloads.sourceforge.net/project/translate/Translate%20Toolkit/1.11.0/translate-toolkit-1.11.0.tar.bz2'
|
|
sha1 'c67d17f9c0a3a04e1d18e8e0eb4c2440a11ec5ab'
|
|
|
|
def install
|
|
minor = `python -c 'import sys; print(sys.version_info[1])'`.chomp
|
|
|
|
ENV.prepend_create_path 'PYTHONPATH', lib/"python2.#{minor}/site-packages"
|
|
system "python", "setup.py", "install",
|
|
"--prefix=#{prefix}",
|
|
"--install-scripts=#{bin}",
|
|
"--install-data=#{libexec}"
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
|
end
|
|
end
|