Magellan Linux

Annotation of /smage/trunk/extras/ninja/ninja-1.10.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14006 - (hide annotations) (download)
Thu Jul 2 12:05:54 2020 UTC (3 years, 10 months ago) by niro
File size: 893 byte(s)
auto added: ver bump to 1.10.0-r1
1 niro 14006 # $Id$
2    
3     PNAME="ninja"
4     PVER="1.10.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++-8.4"
14    
15     SDEPEND=">= dev-lang/python3-3.7"
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}/releases | highesttarball gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     }
34    
35     src_compile()
36     {
37     cd ${SRCDIR}
38     python ./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     minstalldocs doc/manual.asciidoc || die
49     }