# -*- 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 git-cinnabar github.setup glandium git-cinnabar 0.5.8 revision 1 github.tarball_from archive categories devel python platforms darwin maintainers {landonf @landonf} openmaintainer license GPL-2 description Git remote helper to interact with mercurial repositories. long_description {*}${description}. set git_version 2.34.0 master_sites-append https://www.kernel.org/pub/software/scm/git/:git-core \ https://cdn.kernel.org/pub/software/scm/git/:git-core distfiles-append git-${git_version}${extract.suffix}:git-core checksums ${name}-${version}${extract.suffix} \ rmd160 3cbc83aada3cc8afface4609a778d73ef7b9bc7d \ sha256 7971c2ae17d2b919f915efab35e3aba583b951d53ca2bc6ebf69bbd0c22f1067 \ size 181517 \ git-${git_version}${extract.suffix} \ rmd160 5af786d7deb8eea4b8584b93de8230aeaaff35f8 \ sha256 0ce6222bfd31938b29360150286b51c77c643fa97740b1d35b6d1ceef8b0ecd7 \ size 10426038 conflicts git-remote-hg post-extract { delete ${worksrcpath}/git-core file rename -- ${workpath}/git-${git_version} ${worksrcpath}/git-core } depends_lib port:python311 \ port:mercurial patchfiles patch-python3 \ patch-Makefile.in post-patch { set python_bin ${prefix}/bin/python3.11 reinplace "1 s|/usr/bin/env python.*|${python_bin}|g" \ ${worksrcpath}/git-cinnabar \ ${worksrcpath}/git-remote-hg reinplace "s|shell python3|${python_bin}|g" \ ${worksrcpath}/Makefile } build.target helper destroot { set install_dir ${prefix}/libexec/git-core/ set pythonlib_dir ${install_dir}pythonlib xinstall -d -m 0755 ${destroot}${install_dir} xinstall -d -m 0755 ${destroot}${pythonlib_dir} xinstall -m 0755 \ ${worksrcpath}/git-remote-hg \ ${worksrcpath}/git-cinnabar-helper \ ${worksrcpath}/git-cinnabar \ ${destroot}${install_dir} file copy -- ${worksrcpath}/cinnabar ${destroot}${pythonlib_dir}/cinnabar }