ninja: add haiku minimum hrev for spawn.h

* restore 1.6.0 recipe for older hrevs.
* note Haikuporter is unable to pick the old one automatically.
This commit is contained in:
Jerome Duval
2017-09-17 09:48:31 +02:00
parent f568bf9d9e
commit a84464761f
3 changed files with 174 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
SUMMARY="A small build system similar to make"
DESCRIPTION="Ninja is a small build system with a focus on speed. It differs \
from other build systems in two major respects: it is designed to have its \
input files generated by a higher-level build system, and it is designed to \
run builds as fast as possible.
Ninja's low-level approach makes it perfect for embedding into more featureful \
build systems. Via gyp it can build Chrome and v8 and node.js etc.; via CMake \
it can build LLVM, KDE, Blender, etc."
HOMEPAGE="http://martine.github.io/ninja/"
COPYRIGHT="2014 Google Inc."
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://github.com/martine/ninja/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="b43e88fb068fe4d92a3dfd9eb4d19755dae5c33415db2e9b7b61b4659009cde7"
PATCHES="ninja-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
ninja$secondaryArchSuffix = $portVersion
cmd:ninja = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
haiku_devel
cmd:python2
cmd:g++$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:as$secondaryArchSuffix
"
BUILD()
{
python2 ./configure.py --bootstrap
}
INSTALL()
{
mkdir -p $prefix/bin
cp ninja $prefix/bin
}