diff options
| author | Alex Burka | 2013-09-12 23:20:00 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-14 12:05:17 +0100 |
| commit | c2f7d5a5b358a8b3685f594d7b21af742d9c5ec1 (patch) | |
| tree | 5c618df4296231fa1016d53e7b86329152b1cd62 /Library | |
| parent | 29faf100811aca8a410f52af8563fa1110114a70 (diff) | |
| download | homebrew-c2f7d5a5b358a8b3685f594d7b21af742d9c5ec1.tar.bz2 | |
root: move non-executables to libexec.
Closes #22518.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/root.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/root.rb b/Library/Formula/root.rb index 4f33f2faa..1f695dfa2 100644 --- a/Library/Formula/root.rb +++ b/Library/Formula/root.rb @@ -12,6 +12,14 @@ class Root < Formula depends_on :python def install + # brew audit doesn't like non-executables in bin + # so we will move {thisroot,setxrd}.{c,}sh to libexec + # (and change any references to them) + inreplace Dir['config/roots.in', 'config/thisroot.*sh', + 'etc/proof/utils/pq2/setup-pq2', + 'man/man1/setup-pq2.1', 'README/INSTALL', 'README/README'], + /bin.thisroot/, 'libexec/thisroot' + #Determine architecture arch = MacOS.prefer_64_bit? ? 'macosx64' : 'macosx' @@ -34,6 +42,8 @@ class Root < Formula prefix.install 'test' # needed to run test suite + libexec.mkpath + mv Dir["#{bin}/*.*sh"], libexec end def test @@ -50,10 +60,9 @@ class Root < Formula before using ROOT. For csh/tcsh users: - source `brew --prefix root`/bin/thisroot.csh + source `brew --prefix root`/libexec/thisroot.csh For bash/zsh users: - . $(brew --prefix root)/bin/thisroot.sh - + . $(brew --prefix root)/libexec/thisroot.sh EOS end end |
