# -*- 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.9.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  4c864284fd46d5fba1770e8bb894c9726479da2a \
                    sha256  d7d735489954b6b8e0dc6b0bee6685df8999813842fa9fcbeb0709333f52646c \
                    size    55092

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