# -*- 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.7.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  d48534dd21c766bd0b7f042ab8378be59be21ba3 \
                    sha256  a97b7999e8f6cc80184f94e44a5dc90cbb19cfa75886ef8915b57bf77428f4f8 \
                    size    50433

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