<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/14dd59c7ca0a6fcd800b1ca4d8d11f2bb1183b08">https://github.com/macports/macports-ports/commit/14dd59c7ca0a6fcd800b1ca4d8d11f2bb1183b08</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 14dd59c7ca0 cgit PG: new port group
</span>14dd59c7ca0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 14dd59c7ca0a6fcd800b1ca4d8d11f2bb1183b08
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Fri Dec 22 02:40:13 2023 +0100
<span style='display:block; white-space:pre;color:#404040;'> cgit PG: new port group
</span>---
_resources/port1.0/group/cgit-1.0.tcl | 74 +++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cgit-1.0.tcl b/_resources/port1.0/group/cgit-1.0.tcl
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..664d73098cf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cgit-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,74 @@
</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;'>+# This PortGroup accommodates projects hosted in Cgit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Usage:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# PortGroup cgit 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# cgit.setup author project 1.0.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This portgroup works very similarly to the github-1.0 portgroup.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# For any port that is hosted on cgit instance, this portgroup can be used to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# automatically setup details like project name, master_sites, livecheck options
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and more.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Using cgit.setup, the format is:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# cgit.setup <url> <project_name> <version> <version_prefix> <version_suffix>
</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;'>+options cgit.url cgit.project cgit.version cgit.tag_prefix cgit.tag_suffix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options cgit.homepage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default cgit.homepage {https://${cgit.url}/${cgit.project}.git}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options cgit.master_sites
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default cgit.master_sites {${cgit.homepage}/snapshot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options cgit.livecheck.branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default cgit.livecheck.branch master
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options cgit.livecheck.regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default cgit.livecheck.regex {(\[0-9]\[^"<']+)}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc cgit.setup {cgit_url cgit_project cgit_version {cgit_tag_prefix ""} {cgit_tag_suffix ""}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global cgit.url cgit.project cgit.version cgit.tag_prefix cgit.tag_suffix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global cgit.homepage cgit.master_sites cgit.livecheck.branch cgit.livecheck.regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global PortInfo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cgit.url ${cgit_url}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cgit.project ${cgit_project}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cgit.version ${cgit_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cgit.tag_prefix ${cgit_tag_prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cgit.tag_suffix ${cgit_tag_suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![info exists PortInfo(name)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name ${cgit.project}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dist_subdir ${cgit.project}
</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;'>+ version ${cgit.version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default homepage ${cgit.homepage}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git.url ${cgit.homepage}.git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set _cgit_branch [join ${cgit.tag_prefix}]${cgit.version}[join ${cgit.tag_suffix}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git.branch ${_cgit_branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default master_sites ${cgit.master_sites}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname ${_cgit_branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[join ${cgit.tag_prefix}] eq "" && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [join ${cgit.tag_suffix}] eq "" && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [regexp "^\[0-9a-f\]{7,}\$" ${cgit.version}] && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ![regexp "^\[0-9\]{8}\$" ${cgit.version}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type regexm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default livecheck.url {${cgit.homepage}/atom/?h=${cgit.livecheck.branch}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex commit/\\\?id=(\[0-9a-f\]{[string length ${cgit.version}]})\[0-9a-f\]*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default livecheck.url {${cgit.homepage}/refs/tags}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default livecheck.regex {[list tag/\\\?h=[join ${cgit.tag_prefix}][join ${cgit.livecheck.regex}][join ${cgit.tag_suffix}]]}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.version ${cgit.version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>