<pre style='margin:0'>
Landon Fuller (landonf) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/445bb9cee38fd6012e30f346550cbb6b8294e972">https://github.com/macports/macports-ports/commit/445bb9cee38fd6012e30f346550cbb6b8294e972</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 445bb9cee38 git-cinnabar: new port
</span>445bb9cee38 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 445bb9cee38fd6012e30f346550cbb6b8294e972
</span>Author: Landon Fuller <landonf@macports.org>
AuthorDate: Thu Jun 17 18:43:02 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> git-cinnabar: new port
</span>---
devel/git-cinnabar/Portfile | 70 ++++++++++++++++++++++++++++++
devel/git-cinnabar/files/patch-Makefile.in | 40 +++++++++++++++++
devel/git-cinnabar/files/patch-python3 | 58 +++++++++++++++++++++++++
3 files changed, 168 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/git-cinnabar/Portfile b/devel/git-cinnabar/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9c79177b229
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/git-cinnabar/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,70 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name git-cinnabar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup glandium git-cinnabar 0.5.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {landonf @landonf} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Git remote helper to interact with mercurial repositories.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git_version 2.31.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites-append https://www.kernel.org/pub/software/scm/git/:git-core \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ https://cdn.kernel.org/pub/software/scm/git/:git-core
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles-append git-${git_version}${extract.suffix}:git-core
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ${name}-${version}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 92cb87f4509d14e094fccf0db399a3fcf4cc3cec \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 1f30b79b89b421ba33e47f00a8301da5b7533e10cc6314c4febd23ad6ed4b17b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 176569 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git-${git_version}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 869ba3aa521d59e5b2d74f1c0ad5d1e05d99635c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 46d37c229e9d786510e0c53b60065704ce92d5aedc16f2c5111e3ed35093bfa7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 10128216
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts git-remote-hg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${worksrcpath}/git-core
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file rename -- ${workpath}/git-${git_version} ${worksrcpath}/git-core
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:python39 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mercurial
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-python3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-Makefile.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python_bin ${prefix}/bin/python3.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "1 s|/usr/bin/env python.*|${python_bin}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/git-cinnabar \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/git-remote-hg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|shell python3|${python_bin}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target helper
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set install_dir ${prefix}/libexec/git-core/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pythonlib_dir ${install_dir}pythonlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${install_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${pythonlib_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/git-remote-hg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/git-cinnabar-helper \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${install_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy -- ${worksrcpath}/cinnabar ${destroot}${pythonlib_dir}/cinnabar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/git-cinnabar/files/patch-Makefile.in b/devel/git-cinnabar/files/patch-Makefile.in
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..dae3ea837ad
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/git-cinnabar/files/patch-Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,40 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2021-06-17 18:10:28.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2021-06-17 18:13:19.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SYSTEM = $(shell python2.7 -c 'import platform; print platform.system()')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SYSTEM = $(shell python3 -c 'import platform; print(platform.system())')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include helper/GIT-VERSION.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(SYSTEM),Windows)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GIT_REPO = https://github.com/git-for-windows/git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6,7 +6,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GIT_REPO = $(shell sed -n 's/.*url = //p' .gitmodules)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SUBMODULE_STATUS := $(shell git submodule status git-core 2> /dev/null || echo no)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ define exec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $$(shell echo $1 >&2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,23 +14,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endef
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifeq ($(SUBMODULE_STATUS),no)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git clone -n $(GIT_REPO) git-core))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git -C git-core checkout $(GIT_VERSION)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifneq ($(shell git -C git-core rev-parse HEAD),$(shell git -C git-core rev-parse --revs-only $(GIT_VERSION)^{commit}))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git submodule update --init))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifeq ($(SYSTEM),Windows)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git -C git-core remote add git4win $(GIT_REPO)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git -C git-core fetch git4win --tags))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(eval $(call exec,git -C git-core checkout $(GIT_VERSION)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifneq ($(shell git -C git-core rev-parse HEAD),$(shell git -C git-core rev-parse --revs-only $(GIT_VERSION)^{commit}))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(error git-core is not checked out at $(GIT_VERSION))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ .PHONY: helper
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ helper:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/git-cinnabar/files/patch-python3 b/devel/git-cinnabar/files/patch-python3
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..51fa94cb145
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/git-cinnabar/files/patch-python3
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,58 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- git-remote-hg.orig 2021-06-17 17:39:44.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ git-remote-hg 2021-06-17 17:44:04.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,25 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-''':'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-experiments=",${GIT_CINNABAR_EXPERIMENTS-$(git config cinnabar.experiments)},"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-case "$experiments" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*,python3,*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*,python=*,*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=${experiments#*,python=}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=${PYTHON%%,*}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if command -v python2.7 > /dev/null; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-exec $PYTHON $0 "$@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-exit 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#!/usr/bin/env python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from __future__ import division
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- git-cinnabar.orig 2021-06-17 17:39:39.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ git-cinnabar 2021-06-17 17:44:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,25 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-''':'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-experiments=",${GIT_CINNABAR_EXPERIMENTS-$(git config cinnabar.experiments)},"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-case "$experiments" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*,python3,*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*,python=*,*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=${experiments#*,python=}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=${PYTHON%%,*}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if command -v python2.7 > /dev/null; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PYTHON=python2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-exec $PYTHON $0 "$@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-exit 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#!/usr/bin/env python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import sys
</span></pre><pre style='margin:0'>
</pre>