diff options
| author | Misty De Meo | 2013-11-01 09:31:33 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-11-01 09:35:08 -0700 |
| commit | 9bce7a6a3360214d41a7679a82df64fe465fdfd3 (patch) | |
| tree | 000d5cbd39cd6240e0db1671ef11ac3d41fdd595 /Library/Formula | |
| parent | 355a263ae24d18b677f61c004e88f73c8349e3af (diff) | |
| download | homebrew-9bce7a6a3360214d41a7679a82df64fe465fdfd3.tar.bz2 | |
scons: revert to standalone install
Closes #23807.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scons.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/scons.rb b/Library/Formula/scons.rb index a0bea647e..16e8b5f61 100644 --- a/Library/Formula/scons.rb +++ b/Library/Formula/scons.rb @@ -5,18 +5,23 @@ class Scons < Formula url 'http://downloads.sourceforge.net/scons/scons-2.3.0.tar.gz' sha1 '728edf20047a9f8a537107dbff8d8f803fd2d5e3' - depends_on :python - def install man1.install gzip('scons-time.1', 'scons.1', 'sconsign.1') - python do - system python, "setup.py", "install", + 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 |
