]>
Commit | Line | Data |
---|---|---|
a47a5c0a SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = ninja | |
840393ec | 7 | version = 1.9.0 |
a47a5c0a SS |
8 | release = 1 |
9 | ||
10 | groups = Applications/System | |
11 | url = http://martine.github.com/ninja/ | |
12 | license = ASL 2.0 | |
13 | summary = A small build system with a focus on speed | |
14 | ||
15 | description | |
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. | |
20 | end | |
21 | ||
22 | source_dl = https://github.com/martine/ninja/archive/v%{version}/ | |
23 | ||
24 | build | |
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 |
65 | end | |
66 | ||
67 | packages | |
68 | package %{name} | |
69 | provides += ninja-build | |
70 | end | |
71 | ||
72 | package %{name}-debuginfo | |
73 | template DEBUGINFO | |
74 | end | |
75 | end |