<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/596e827d90276321a98011b594c8b6f856394b27">https://github.com/macports/macports-ports/commit/596e827d90276321a98011b594c8b6f856394b27</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 596e827d902 gitlab pg: set extract.rename if available
</span>596e827d902 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 596e827d90276321a98011b594c8b6f856394b27
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Jan 4 23:22:34 2023 +1100
<span style='display:block; white-space:pre;color:#404040;'> gitlab pg: set extract.rename if available
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/66415
</span>---
_resources/port1.0/group/gitlab-1.0.tcl | 34 +++++++--------------------------
1 file changed, 7 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/gitlab-1.0.tcl b/_resources/port1.0/group/gitlab-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index f06b5210514..25c59cc5b96 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/gitlab-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/gitlab-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,8 +28,8 @@ options gitlab.livecheck.regex
</span> default gitlab.livecheck.regex {(\[0-9]\[^<]+)}
proc gitlab.setup {gl_author gl_project gl_version {gl_tag_prefix ""} {gl_tag_suffix ""}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global extract.suffix gitlab.author gitlab.project gitlab.version gitlab.tag_prefix gitlab.tag_suffix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global gitlab.homepage gitlab.master_sites gitlab.livecheck.branch PortInfo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global extract.suffix gitlab.author gitlab.project gitlab.version gitlab.tag_prefix gitlab.tag_suffix \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gitlab.homepage gitlab.master_sites gitlab.livecheck.branch PortInfo
</span>
gitlab.author ${gl_author}
gitlab.project ${gl_project}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,31 +49,11 @@ proc gitlab.setup {gl_author gl_project gl_version {gl_tag_prefix ""} {gl_tag_su
</span> distname ${gitlab.project}-${gitlab.version}
use_bzip2 yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# I don't _think_ we need this bit from the github portgroup, but keeping
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# around until we have more use cases...
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # When fetching from a tag, the extracted directory name will contain a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # truncated commit hash. So that the port author need not specify what
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # that hash is every time the version number changes, rename the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # directory to the value of distname (not worksrcdir: ports may want to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # set worksrcdir to a subdirectory of the extracted directory).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # It is assumed that gitlab.master_sites is a simple string, not a list.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # Here be dragons.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# if {![file exists ${worksrcpath}] && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ${fetch.type} eq "standard" && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ${gitlab.master_sites} in ${master_sites} && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# [llength ${distfiles}] > 0 && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# [llength [glob -nocomplain ${workpath}/*]] > 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# if {[file exists [glob -nocomplain ${workpath}/${gitlab.author}-${gitlab.project}-*]] && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# [file isdirectory [glob -nocomplain ${workpath}/${gitlab.author}-${gitlab.project}-*]]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# move [glob ${workpath}/${gitlab.author}-${gitlab.project}-*] ${workpath}/${distname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# # tarball is not "${gitlab.author}-${gitlab.project}-*"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ui_error "\n\ngitlab PortGroup: Error: \${worksrcpath} does not exist after extracting distfiles. This might indicate that the author or project is different than set in the Portfile due to a rename at GitHub. Please examine the extracted directory in ${workpath} and try to correct the Portfile by either changing the author or project or adding the worksrcdir option with the correct directory name.\n"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# return -code error "Unexpected gitlab tarball extract."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # When fetching from a tag, the extracted directory name will contain a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # truncated commit hash.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[exists extract.rename]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default extract.rename yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# If the version is composed entirely of hex characters, and is at least 7
# characters long, and is not exactly 8 decimal digits (which might be a
</pre><pre style='margin:0'>
</pre>