Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Oct 2022 20:03:34 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: DISTVERSION without DISTVERSIONPREFIX
Message-ID:  <CAFDf7UKKpLggnpV73qJp-EMKt2ehO-LbtED-Vuy8AgdqSzgYiQ@mail.gmail.com>
In-Reply-To: <CAP7rwcjDGkdY1DPzDKyDx5yH5EzBxTJv3eYaOG%2Bt0OTNrK9=3Q@mail.gmail.com>
References:  <CAP7rwcjDGkdY1DPzDKyDx5yH5EzBxTJv3eYaOG%2Bt0OTNrK9=3Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ea5e7f05ea9eb3c9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=3D   nekoto
DISTVERSIONPREFIX=3D  v
DISTVERSION=3D 1_2_4
---

Cheers,

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

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


--=20
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000ea5e7f05ea9eb3c9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>DISVERSIONPREFIX is widely used when we have a distna=
me-v1.2.3 but we want result as pkgname-1.2.3, ports framework style.</div>=
<div>---<br></div><div>Example 8. Using DISTVERSION When the Version Starts=
 with a Letter or a Prefix<br><br>When the version starts or ends with a le=
tter, or a prefix or a suffix that is not part of the version, use DISTVERS=
IONPREFIX, DISTVERSION, and DISTVERSIONSUFFIX.<br><br>If the version is v1.=
2-4:<br><br>PORTNAME=3D =C2=A0 nekoto<br>DISTVERSIONPREFIX=3D =C2=A0v<br>DI=
STVERSION=3D 1_2_4<br>---</div><div><br></div><div>Cheers,</div></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Adam Weinbe=
rger &lt;<a href=3D"mailto:adamw@adamw.org">adamw@adamw.org</a>&gt; escreve=
u no dia domingo, 9/10/2022 =C3=A0(s) 19:44:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" =
style=3D"font-family:arial,sans-serif">I&#39;ve always been confused on thi=
s. Many, many ports set DISTVERSIONPREFIX=3Dv, but very few ports set DISTV=
ERSION=3Dv1.2.3</div><div class=3D"gmail_default" style=3D"font-family:aria=
l,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font-family:a=
rial,sans-serif">/usr/ports $ rg &#39;DISTVERSION=3D\s*v&#39;</div><div cla=
ss=3D"gmail_default" style=3D"font-family:arial,sans-serif">=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 7</div><div class=3D"gmail_default" style=3D"font-family:ar=
ial,sans-serif">/usr/ports $ rg &#39;DISTVERSIONPREFIX=3D\s*v$&#39;</div><d=
iv class=3D"gmail_default" style=3D"font-family:arial,sans-serif">=C2=A0 27=
48</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-serif"=
><br></div><div class=3D"gmail_default" style=3D"font-family:arial,sans-ser=
if">Can DISTVERSION just be v1.2.3, or is there a reason that we need DISTV=
ERSION=3D1.2.3 + DISTVERSIONPREFIX=3Dv?</div><div class=3D"gmail_default" s=
tyle=3D"font-family:arial,sans-serif"><br></div><div class=3D"gmail_default=
" style=3D"font-family:arial,sans-serif"># Adam</div><div class=3D"gmail_de=
fault" style=3D"font-family:arial,sans-serif"><br></div><br>-- <br><div dir=
=3D"ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>Adam Weinberger</div><=
div><a href=3D"mailto:adamw@adamw.org" target=3D"_blank">adamw@adamw.org</a=
></div><div><a href=3D"https://www.adamw.org" target=3D"_blank">https://www=
.adamw.org</a></div></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nun=
o Teixeira<br>FreeBSD Committer (ports)</span></div></div>

--000000000000ea5e7f05ea9eb3c9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKKpLggnpV73qJp-EMKt2ehO-LbtED-Vuy8AgdqSzgYiQ>