spack/var/spack/repos/builtin/packages/ninja/package.py
Ben Boeckel dbb25bfeed 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.
2016-03-30 16:17:52 -04:00

23 lines
570 B
Python

from spack import *
import os
class Ninja(Package):
""" A small, fast Make alternative """
homepage = "https://martine.github.io/ninja/"
url = "https://github.com/martine/ninja/archive/v1.6.0.tar.gz"
version('1.6.0', '254133059f2da79d8727f654d7198f43')
extends('python')
def install(self, spec, prefix):
sh = which('sh')
python('configure.py', '--bootstrap')
cp = which('cp')
bindir = os.path.join(prefix, 'bin/')
mkdir(bindir)
cp('-a', 'ninja', bindir)
cp('-a', 'misc', prefix)