Re: git: 2b9b771202b2 - main - www/luakit-devel: update to 2.3.1-6

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 16 Oct 2022 03:09:51 UTC
Nuno Teixeira <eduardo@freebsd.org> writes:

> The main problem here is not fetching and yes DISTVERSIONSUFFIX=-g<tag>
> acts like GH_TAGNAME=<tag>.
>
> Problem is that 2.3-26 transforms to 2.3.26 and 2.3.1-6 into 2.3.1.6
>
> pkg version -t 2.3-26 2.3.1-6 = >
> pkg version -t 2.3.26 2.3.1.6 = >
>
> So the only solution is bump portepoch?

Something like the following:

$ git describe --tags e9c7693
2.3.1-6-ge9c7693f

$ git describe --tags --match=2.3 e9c7693
2.3-36-ge9c7693f

$ portedit set-version -i 2.3-36-ge9c7693f www/luakit-devel/Makefile
$ make -V PKGVERSION
$ pkg version -t 2.3.26,1 2.3.36,1
<

$ git diff
diff --git a/www/luakit-devel/Makefile b/www/luakit-devel/Makefile
index 0b955d2a5dd4..c2014301aa64 100644
--- a/www/luakit-devel/Makefile
+++ b/www/luakit-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	luakit
-DISTVERSION=	2.3.1-6
-DISTVERSIONSUFFIX=	-ge9c7693
+DISTVERSION=	2.3-36
+DISTVERSIONSUFFIX=	-ge9c7693f
 PORTEPOCH=	1
 CATEGORIES=	www
 PKGNAMESUFFIX=	-devel