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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name depot_tools |
---|
7 | version 2016.9.22 |
---|
8 | categories devel |
---|
9 | platforms darwin |
---|
10 | maintainers openmaintainer \ |
---|
11 | gallaf.net:william |
---|
12 | description A collection of tools for dealing with Chromium development. |
---|
13 | long_description Chromium uses a package of scripts, the depot_tools, to manage interaction with the Chromium source code repository and the Chromium development process. |
---|
14 | homepage http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools.html |
---|
15 | license BSD |
---|
16 | |
---|
17 | depends_run port:git port:python27 |
---|
18 | |
---|
19 | fetch.type git |
---|
20 | git.url https://chromium.googlesource.com/chromium/tools/depot_tools.git |
---|
21 | git.branch b61b9b7 |
---|
22 | |
---|
23 | use_configure no |
---|
24 | build {} |
---|
25 | |
---|
26 | # Depot_tools is designed to be unpacked and used inplace, and as such contains loads of stuff (executables, libraries, documentation, etc.) in the same top-level directory. |
---|
27 | # We therefore keep it in a silo so all that stuff doesn't clutter other directories. |
---|
28 | destroot.violate_mtree yes |
---|
29 | prefix ${prefix}/libexec |
---|
30 | |
---|
31 | # So that we can just copy the entire directory to install it, do not add the version number to its name. |
---|
32 | worksrcdir ${name} |
---|
33 | |
---|
34 | destroot { |
---|
35 | # Deleting .git prevents the tools from attempting to update themselves. |
---|
36 | # See http://dev.chromium.org/developers/how-tos/depottools#TOC-Disabling-auto-update |
---|
37 | file delete -force ${worksrcpath}/.git |
---|
38 | file copy ${worksrcpath} ${destroot}${prefix} |
---|
39 | } |
---|