homebrew-core/Formula/scons.rb
Jon Thacker ac09a67727 scons 2.2.0
Closes Homebrew/homebrew#14238.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 22:17:21 -05:00

27 lines
1,014 B
Ruby

require 'formula'
class Scons < Formula
homepage 'http://www.scons.org'
url 'http://downloads.sourceforge.net/scons/scons-2.2.0.tar.gz'
sha1 'b48b71926f707aa3a802081bfd9b0ef45c3b0fdf'
def install
man1.install gzip('scons-time.1', 'scons.1', 'sconsign.1')
system "/usr/bin/python", "setup.py", "install",
"--prefix=#{prefix}",
"--standalone-lib",
# SCons gets handsy with sys.path---`scons-local` is one place it
# will look when all is said and done.
"--install-lib=#{libexec}/scons-local",
"--install-scripts=#{bin}",
"--install-data=#{libexec}",
"--no-version-script", "--no-install-man"
# Re-root scripts to libexec so they can import SCons and symlink back into
# bin. Similar tactics are used in the duplicity formula.
bin.children.each do |p|
mv p, "#{libexec}/#{p.basename}.py"
bin.install_symlink "#{libexec}/#{p.basename}.py" => p.basename
end
end
end