# -*- 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

PortSystem          1.0
PortGroup           github 1.0

name                repo
epoch               20160202
github.setup        GerritCodeReview git-repo 2.32 v
revision            0
license             Apache-2
categories          python
platforms           any
maintainers         nomaintainer
supported_archs     noarch

description         tool that helps to manage Android Git repositories
long_description    \
            Repo is a tool that we built on top of Git. Repo helps us \
            manage the many Git repositories, does the uploads to our \
            revision control system , and automates parts of the Android \
            development workflow. Repo is not meant to replace Git, only \
            to make it easier to work with Git in the context of Android.

homepage            https://source.android.com/source/developing.html

github.tarball_from archive

checksums           rmd160  228a892868d885739478a11037b612370835c1ae \
                    sha256  5047243d55906e0147e901fd7f5bf0971fdfb6992595ad829028ec910475dd83 \
                    size    255696

set python_version  311
set python_branch   \
    [string index ${python_version} 0].[string range ${python_version} 1 end]

depends_run-append  port:git \
                    port:python${python_version}

patch {
    reinplace \
        "s|/usr/bin/env python|${prefix}/bin/python${python_branch}|" \
        ${worksrcpath}/${name}
}

use_configure       no

build               {}

destroot            {
        xinstall -m 0755 \
            ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}
