summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2016-03-30 16:17:52 -0400
committerBen Boeckel <mathstuf@gmail.com>2016-03-30 16:17:52 -0400
commitdbb25bfeed7113cbd6be090df52b97fcc10588e1 (patch)
tree2b7c0a838f306a63da93af7bd3f91ba8f8e2d783
parent4bc6ace201fc682a9a681b73d1096a95edb48c64 (diff)
downloadspack-dbb25bfeed7113cbd6be090df52b97fcc10588e1.tar.gz
spack-dbb25bfeed7113cbd6be090df52b97fcc10588e1.tar.bz2
spack-dbb25bfeed7113cbd6be090df52b97fcc10588e1.tar.xz
spack-dbb25bfeed7113cbd6be090df52b97fcc10588e1.zip
ninja: fix installation on OS X
The cp -t flag is a GNU-ism. Instead, add a trailing slash to bindir to ensure that it is not treated as a file.
-rw-r--r--var/spack/repos/builtin/packages/ninja/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/ninja/package.py b/var/spack/repos/builtin/packages/ninja/package.py
index 9e6bf4e358..0722dd49a6 100644
--- a/var/spack/repos/builtin/packages/ninja/package.py
+++ b/var/spack/repos/builtin/packages/ninja/package.py
@@ -16,7 +16,7 @@ class Ninja(Package):
cp = which('cp')
- bindir = os.path.join(prefix, 'bin')
+ bindir = os.path.join(prefix, 'bin/')
mkdir(bindir)
- cp('-a', '-t', bindir, 'ninja')
- cp('-ra', 'misc', prefix)
+ cp('-a', 'ninja', bindir)
+ cp('-a', 'misc', prefix)