Ticket #52322: Portfile

File Portfile, 1.6 KB (added by gallafent, 5 years ago)

Portfile for depot_tools

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$
3
4PortSystem          1.0
5
6name                depot_tools
7version             2016.9.22
8categories          devel
9platforms           darwin
10maintainers         openmaintainer \
11                gallaf.net:william
12description         A collection of tools for dealing with Chromium development.
13long_description    Chromium uses a package of scripts, the depot_tools, to manage interaction with the Chromium source code repository and the Chromium development process.
14homepage            http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools.html
15license BSD
16
17depends_run port:git port:python27
18
19fetch.type git
20git.url https://chromium.googlesource.com/chromium/tools/depot_tools.git
21git.branch b61b9b7
22
23use_configure no
24build {}
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.
28destroot.violate_mtree yes
29prefix ${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.
32worksrcdir ${name}
33
34destroot {
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}