Commits
Zero King authored f8aa44f7d35
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 + | |
3 + | PortSystem 1.0 |
4 + | PortGroup python 1.0 |
5 + | |
6 + | name gn-devel |
7 + | version 20200109 |
8 + | categories devel |
9 + | platforms darwin |
10 + | license BSD |
11 + | maintainers nomaintainer |
12 + | description meta-build system for Ninja |
13 + | long_description GN is a meta-build system that generates build files for Ninja. |
14 + | homepage https://gn.googlesource.com/gn |
15 + | fetch.type git |
16 + | git.url ${homepage} |
17 + | git.branch 49f5903702378ae9e6c17d588c705af5ad344bf3 |
18 + | |
19 + | python.default_version 38 |
20 + | |
21 + | depends_build port:ninja |
22 + | |
23 + | use_configure yes |
24 + | configure.cmd "${python.bin}" |
25 + | configure.args build/gen.py |
26 + | configure.pre_args "" |
27 + | |
28 + | build.dir "${worksrcpath}/out" |
29 + | build.cmd "${prefix}/bin/ninja" |
30 + | build.target "" |
31 + | |
32 + | destroot { |
33 + | copy ${worksrcpath}/out/gn ${destroot}${prefix}/bin |
34 + | } |
35 + | |
36 + | test.run yes |
37 + | test.cmd "${worksrcpath}/out/gn_unittests" |
38 + | test.target "" |