homebrew-core/Formula/scons.rb
BrewTestBot a3dbe8bfa4 scons: update 2.3.3 bottle.
Closes Homebrew/homebrew#32466.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-20 21:11:19 -07:00

35 lines
1.3 KiB
Ruby

require "formula"
class Scons < Formula
homepage "http://www.scons.org"
url "https://downloads.sourceforge.net/scons/scons-2.3.3.tar.gz"
sha1 "7bb1c755610613d9dab71bd56267fd1f531a2f97"
bottle do
cellar :any
sha1 "323530df6b6e23d170463632987ae590cefdc3d4" => :mavericks
sha1 "400392e896baa82a5f5971ecc1840847db0b86cb" => :mountain_lion
sha1 "10ab4cd7d39a16e44fb2575c174d8a4139077ec5" => :lion
end
def install
bin.mkpath # Script won't create this if it doesn't already exist
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