12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- # Build recipe for ninja.
- #
- # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=ninja
- version=1.8.2
- release=1
- tarname=${program}-${version}.tar.gz
- # Remote source(s)
- fetch=https://github.com/ninja-build/ninja/archive/v${version}/$tarname
- description="
- A small build system with a focus on speed.
- 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.
- "
- homepage=http://ninja-build.org
- license="Apache License v2.0"
- # Source documentation
- docs="COPYING HACKING.md doc/manual.asciidoc"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- python3 configure.py --bootstrap
- # Run tests
- #./ninja ninja_test
- #./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
- mkdir -p "${destdir}/usr/bin"
- cp -p ninja "${destdir}/usr/bin/"
- chmod 755 "${destdir}/usr/bin/ninja"
- strip --strip-unneeded "${destdir}/usr/bin/ninja"
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|