]> git.ipfire.org Git - ipfire-3.x.git/blame - ninja/ninja.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / ninja / ninja.nm
CommitLineData
a47a5c0a
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = ninja
840393ec 7version = 1.9.0
a47a5c0a
SS
8release = 1
9
10groups = Applications/System
11url = http://martine.github.com/ninja/
12license = ASL 2.0
13summary = A small build system with a focus on speed
14
15description
16 Ninja is a small build system with a focus on speed. It differs from other
17 build systems in two major respects: it is designed to have its input files
18 generated by a higher-level build system, and it is designed to run builds as
19 fast as possible.
20end
21
22source_dl = https://github.com/martine/ninja/archive/v%{version}/
23
24build
25 requires
26 asciidoc
27 python3-devel
28 end
29
30 build
31 # Configure and bootstrap the build environment.
32 %{python3} configure.py --bootstrap --verbose
33
34 # Build ninja.
35 ./ninja -v all
36
37 # Build manual.
38 ./ninja -v manual
39 end
40
41 check
42 # Run testsuite - filter SubprocessTest
43 ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
44 end
45
46 install
47 # Install ninja.
48 install -Dpm0755 ninja -t %{BUILDROOT}%{bindir}/
49
50 # Create compatibliy symlink.
51 ln -s ninja %{BUILDROOT}%{bindir}/ninja-build
52
53 # Install bash-comletion.
54 install -Dpm0644 misc/bash-completion %{BUILDROOT}%{datadir}/bash-completion/completions/ninja
55
56 # Install ninja syntax highlighting for vim.
57 install -Dpm0644 misc/ninja.vim %{BUILDROOT}%{datadir}/vim/vimfiles/syntax/ninja.vim
840393ec
SS
58
59 # Install pakfire macro.
60 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
61 install -v -m 644 %{DIR_SOURCE}/%{name}.macro \
62 %{BUILDROOT}/usr/lib/pakfire/macros
63
a47a5c0a
SS
64 end
65end
66
67packages
68 package %{name}
69 provides += ninja-build
70 end
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
75end