# -*- 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.5.2 v
github.tarball_from archive
revision            1
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  155c960f32ae504df699c17fed79bd8336ea0f05 \
                    sha256  026f8a8de25c0ff0a2a73545f0662b2159f135c633ce3be244113174b27cbf3e \
                    size    51262

set py_ver          3.13
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/*]
}
