diff options
| author | Charlie Sharpsteen | 2012-07-06 15:19:40 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-07-06 15:19:40 -0800 |
| commit | 0581e5ce76edadea1474de0e6985656003f0c7b7 (patch) | |
| tree | 4ecd4422f47331a0b05a22174ef21c587b53ef42 /Library/Formula | |
| parent | bb18b300409d11eb9ed09a83c7cf1d645531e65f (diff) | |
| download | homebrew-0581e5ce76edadea1474de0e6985656003f0c7b7.tar.bz2 | |
scons: Help scons to find its self
SCons was having a crisis of identity and could not find its own modules.
Things are now re-rooted to libexec so that the formula functions similar to
other python tools such as duplicity and denyhosts.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scons.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/scons.rb b/Library/Formula/scons.rb index 6707bad74..a7373b9e1 100644 --- a/Library/Formula/scons.rb +++ b/Library/Formula/scons.rb @@ -10,6 +10,18 @@ class Scons < Formula 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 |
