source: trunk/dports/devel/ninja/Portfile

Last change on this file was 154326, checked in by devans@…, 9 months ago

ninja: update homepage.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154326 2016-10-27 21:38:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7epoch               1
8github.setup        ninja-build ninja 1.7.1 v
9categories          devel
10platforms           darwin
11maintainers         nomaintainer
12license             Apache-2
13installs_libs       no
14
15description         Small build system with a focus on speed.
16
17long_description    Ninja is yet another build system. It takes as input    \
18                    the interdependencies of files (typically source code   \
19                    and output executables) and orchestrates building them, \
20                    quickly.                                                \
21                                                                            \
22                    Ninja joins a sea of other build systems. Its           \
23                    distinguishing goal is to be fast. It is born from my   \
24                    work on the Chromium browser project, which has over    \
25                    30,000 source files and whose other build systems       \
26                    (including one built from custom non-recursive          \
27                    Makefiles) can take ten seconds to start building       \
28                    after changing one file. Ninja is under a second.
29
30homepage            https://ninja-build.org
31
32checksums           rmd160  16a67643cf07dd695c3c68b29e058a62e8e06cb5 \
33                    sha256  e8d7aca6141d7fb79efa757b86e8e20f3f40f8f55b7986de4af18a0064e3763e
34
35patchfiles          patch-configure.py-use-system-python.diff \
36                    patch-configure.py-bootstrap-only.diff \
37                    patch-configure.diff
38
39
40variant universal {}
41
42depends_build-append \
43                   port:re2c
44
45configure.cxx      "${configure.cxx} [get_canonical_archflags cxx]"
46
47build.cmd           ./ninja
48build.target
49build.args
50build.env           CXX="${configure.cxx} [get_canonical_archflags cxx]"
51
52post-patch {
53    file attributes ${worksrcpath}/configure -permissions +x
54}
55
56destroot {
57    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
58    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
59    xinstall -m 644 ${worksrcpath}/misc/bash-completion ${destroot}${prefix}/etc/bash_completion.d/ninja
60}
Note: See TracBrowser for help on using the repository browser.