Straightforwardly, this adds support for codeberg so that it can be
used in DIST_TUPLES.  Unfortunately, it breaks the alignment in
SITES.* :/

The first two ports that could use this that comes to mind are
graphics/nsxiv and devel/leiningen that both moved to codeberg
(althought they both have a github mirror still.)

Thoughts/ok?

Index: dist-tuple.pattern
===================================================================
RCS file: /home/cvs/ports/infrastructure/db/dist-tuple.pattern,v
retrieving revision 1.6
diff -u -p -r1.6 dist-tuple.pattern
--- dist-tuple.pattern  27 Sep 2023 21:41:16 -0000      1.6
+++ dist-tuple.pattern  13 Oct 2023 09:35:57 -0000
@@ -1,4 +1,5 @@
 # known SITES.x
+SITES.codeberg ?= https://codeberg.org/
 SITES.github ?=        https://github.com/
 SITES.gitlab ?=        https://gitlab.com/
 SITES.srht ?=  https://git.sr.ht/
@@ -11,6 +12,9 @@ TEMPLATE_EXTRACT_SUFX ?=      .tar.gz
 # - <project>
 # - <id>
 # - <subdir> - used automatically if <id> is in tag format
+TEMPLATE_DISTFILES.codeberg ?= \
+       
<account>-<project>-{<account>/<project>/archive/}<id>${EXTRACT_SUFX.codeberg}
+
 TEMPLATE_DISTFILES.github ?= \
        
<account>-<project>-{<account>/<project>/archive/<subdir>}<id>${EXTRACT_SUFX.github}
 

Reply via email to