wok-next annotate ninja/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
rev   line source
al@20472 1 # SliTaz package receipt v2.
al@20472 2
al@20472 3 PACKAGE="ninja"
al@20472 4 VERSION="1.8.2"
al@20472 5 CATEGORY="development"
al@20472 6 SHORT_DESC="Small build system with a focus on speed"
al@20472 7 MAINTAINER="al.bobylev@gmail.com"
al@20472 8 LICENSE="Apache"
al@20472 9 WEB_SITE="https://ninja-build.org/"
al@20472 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/ninja.html"
al@20472 11
al@20472 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20472 13 WGET_URL="https://github.com/ninja-build/ninja/archive/v$VERSION/$TARBALL"
al@20472 14
al@20472 15 BUILD_DEPENDS="python"
al@20472 16
al@20472 17 compile_rules() {
al@20472 18 export NINJAJOBS=4 # Should be OK for our 6x Intel(R) Xeon(R) CPU W3530 @ 2.8GHz
al@20472 19
al@20472 20 python configure.py --bootstrap || return 1
al@20472 21
al@20472 22 install -Dm755 ninja $install/usr/bin/ninja
al@20472 23 install -Dm644 misc/bash-completion $install/usr/share/bash-completion/completions/ninja
al@20472 24 install -Dm644 misc/zsh-completion $install/usr/share/zsh/site-functions/_ninja
al@20472 25 cook_pick_docs doc/manual.asciidoc
al@20472 26 }
al@20472 27
al@20472 28 genpkg_rules() {
al@20472 29 copy /usr/bin/ninja
al@20472 30 TAGS="LFS"
al@20472 31 }