43 lines
1.9 KiB
Bash
43 lines
1.9 KiB
Bash
#!/bin/sh
|
|
# broken because python is broken
|
|
name="ninja"
|
|
short_desc="Small build system closest in spirit to Make"
|
|
desc="Ninja is yet another build system. It takes as input the interdependencies
|
|
of files (typically source code and output executables) and orchestrates
|
|
building them, quickly.
|
|
|
|
Ninja joins a sea of other build systems. Its distinguishing goal is to be
|
|
fast. It is born from my work on the Chromium browser project, which has
|
|
over 30,000 source files and whose other build systems (including one built
|
|
from custom non-recursive Makefiles) can take ten seconds to start building
|
|
after changing one file. Ninja is under a second."
|
|
category="devel"
|
|
version="1.11.1"
|
|
maintainer="ffqq@danwin1210.de"
|
|
www="https://ninja-build.org/"
|
|
master_site="https://github.com/ninja-build/ninja/archive/v1.11.1"
|
|
source_name="$name-$version.tar.gz"
|
|
license_logic="single" # accepted values: single, and, or
|
|
licenses=("APACHE20")
|
|
|
|
build_dependencies=("lang/gcc" "lang/python3" "devel/ninja")
|
|
run_dependencies=("system/glibc")
|
|
|
|
build_process() {
|
|
|
|
cd $name-$version || exit 1
|
|
python ./configure.py
|
|
ninja all
|
|
|
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
|
install -m755 -Dv ninja "$TAMANDUA_STAGE_DIR/usr/bin/ninja"
|
|
install -m644 -Dv doc/manual.asciidoc "$TAMANDUA_STAGE_DIR/usr/share/doc/ninja/manual.asciidoc"
|
|
install -Dm644 -v COPYING "$TAMANDUA_STAGE_DIR/usr/share/licenses/ninja/COPYING"
|
|
|
|
install -m644 -Dv misc/ninja-mode.el "$TAMANDUA_STAGE_DIR/usr/share/emacs/site-lisp/ninja-mode.el"
|
|
install -m644 -Dv misc/ninja.vim "$TAMANDUA_STAGE_DIR/usr/share/vim/vimfiles/syntax/ninja.vim"
|
|
install -m644 -Dv misc/ninja_syntax.py "$TAMANDUA_STAGE_DIR/$site_packages/ninja_syntax.py"
|
|
|
|
install -m644 -Dv misc/bash-completion "$TAMANDUA_STAGE_DIR/usr/share/bash-completion/completions/ninja"
|
|
install -m644 -Dv misc/zsh-completion "$TAMANDUA_STAGE_DIR/usr/share/zsh/site-functions/_ninja"
|
|
} |