Magellan Linux

Contents of /smage/branches/alx08x-unstable/extras/ninja/ninja-1.12.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18223 - (show annotations) (download)
Mon Apr 15 14:44:11 2024 UTC (2 weeks ago) by niro
File size: 1038 byte(s)
-release branches/alx08x-unstable
1 # $Id$
2
3 PNAME="ninja"
4 PVER="1.12.0"
5 PBUILD="r1"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="Ninja is a small build system with a focus on speed."
10 HOMEPAGE="https://ninja-build.org/"
11
12 DEPEND=">= virtual/glibc
13 >= sys-libs/libstdc++-13.1"
14
15 SDEPEND=">= dev-lang/python3-3.11"
16
17 SRCFILE="v${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 SRC_URI=(
21 https://github.com/ninja-build/${PNAME}/archive/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 sminclude mtools
26
27 UP2SEPERATOR="v"
28 UP2DATE="updatecmd https://github.com/ninja-build/${PNAME}/tags | highesttarball gz"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38 python3 ./configure.py --bootstrap || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44
45 minstallexec ninja || die
46 minstalldir /usr/share/vim/vimfiles/syntax || die
47 minstallfile misc/ninja.vim /usr/share/vim/vimfiles/syntax/ || die
48 minstalldir /usr/share/bash-completion/completions || die
49 minstallfile misc/bash-completion /usr/share/bash-completion/completions/ninja || die
50 minstalldocs doc/manual.asciidoc || die
51 }