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

github.setup        AdityaGarg8 git-credential-email 5.6.1 v
github.tarball_from archive
revision            0
categories          security
license             Apache-2
maintainers         {makr @mohd-akram} openmaintainer

description         git credential helpers for email providers

long_description    Git credential helpers for Microsoft Outlook, Gmail, \
                    Yahoo, AOL and Proton Mail accounts.

checksums           rmd160  f9eb23d48a13b1f16cfaa0bf7dd45cec7dc5dd72 \
                    sha256  0916b69bfc1cbec8659dc581e5fc7d41cfc34d945d803d1694917c797f62c421 \
                    size    51455

set py_ver          3.14
set py_ver_nodot    [string map {. {}} ${py_ver}]

depends_lib         port:python${py_ver_nodot} \
                    port:py${py_ver_nodot}-keyring \
                    port:py${py_ver_nodot}-requests

configure.python    ${prefix}/bin/python${py_ver}

use_configure       no
build {}
destroot {
    copy {*}[glob ${worksrcpath}/git-*] ${destroot}${prefix}/bin
    reinplace "s|^#!/usr/bin/env python3|#!${configure.python}|" \
        {*}[glob ${destroot}${prefix}/bin/*]
}
