Re: DISTVERSION without DISTVERSIONPREFIX

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Sun, 09 Oct 2022 19:03:34 UTC
DISVERSIONPREFIX is widely used when we have a distname-v1.2.3 but we want
result as pkgname-1.2.3, ports framework style.
---
Example 8. Using DISTVERSION When the Version Starts with a Letter or a
Prefix

When the version starts or ends with a letter, or a prefix or a suffix that
is not part of the version, use DISTVERSIONPREFIX, DISTVERSION, and
DISTVERSIONSUFFIX.

If the version is v1.2-4:

PORTNAME=   nekoto
DISTVERSIONPREFIX=  v
DISTVERSION= 1_2_4
---

Cheers,

Adam Weinberger <adamw@adamw.org> escreveu no dia domingo, 9/10/2022 à(s)
19:44:

> I've always been confused on this. Many, many ports set
> DISTVERSIONPREFIX=v, but very few ports set DISTVERSION=v1.2.3
>
> /usr/ports $ rg 'DISTVERSION=\s*v'
>       7
> /usr/ports $ rg 'DISTVERSIONPREFIX=\s*v$'
>   2748
>
> Can DISTVERSION just be v1.2.3, or is there a reason that we need
> DISTVERSION=1.2.3 + DISTVERSIONPREFIX=v?
>
> # Adam
>
>
> --
> Adam Weinberger
> adamw@adamw.org
> https://www.adamw.org
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)