On Fri, Oct 13, 2023 at 03:17:13PM +0200, Marc Espie wrote:
> On Fri, Oct 13, 2023 at 11:40:59AM +0200, Omar Polo wrote:
> > 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}
> >  
> > 
> > 
> Looks good to me. Just wait for thfr@'s reply as he may already have diffs
> in progress wrt that
> 

Looks good to me, too. I don't have any competing diffs as I haven't
dealt with codeberg before. ok thfr@

Reply via email to