From nobody Sun Oct 9 19:03:34 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mls0447jxz4fKbk for ; Sun, 9 Oct 2022 19:03:48 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mls043j5dz3H5s for ; Sun, 9 Oct 2022 19:03:48 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665342228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uxP1bX6gCKmZFUD8Se5N8trE7zKSORw8DCO0Tds6Q7A=; b=b9LUyXW7Jbx8Fmqa9Yfl3XytcTSVAtwWuYZ09mXSulLMkxMJewYT0EG27YPoBSx5Fmr4ob IZdN9e/x5iSZHp9+T1XcNQDSoQJ7qrlaqz+yTyotetRHWwRXDaJDOOHXs7pQ9IE2KLKuE7 cLciLx3J5tbnyqL7umMzh2+VkmvL5qPNnb2u3KIiGs47/oCX/Q+l2BoxDwjIgcYdAHDo8x +JCldmtuduuaLH8TaUdr9SsfgbWsaz8MaHKgBbHVVCT0ewPYWOMnb0M2E2QY/UVAXyTeEf M/UEUtXavp9jPpH1ll++GWX84IT3b6SJgWToxfLT0RsNoneDKc/PjuRx3OBATw== Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Mls042kVRzpsQ for ; Sun, 9 Oct 2022 19:03:48 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f43.google.com with SMTP id d187so9465399vsd.6 for ; Sun, 09 Oct 2022 12:03:48 -0700 (PDT) X-Gm-Message-State: ACrzQf1HaEqRs3K9jhus+lrMbk8SGHJQ4XcnreANYu/SIoFRTTcZ5RMZ uiaNLGsrss0FUqk20jp7udCyN9FKgtHim9U2mxg= X-Google-Smtp-Source: AMsMyM7sQHw27DN+8Hyg4cclA5QUUDiCSTcMjEFbA1aWVYJyg98qdKW8nYbMGI3t+0+TfUSfGig3vClBkCTCxS85G+Q= X-Received: by 2002:a67:d790:0:b0:3a7:60cc:94f2 with SMTP id q16-20020a67d790000000b003a760cc94f2mr3519516vsj.19.1665342227765; Sun, 09 Oct 2022 12:03:47 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Sun, 9 Oct 2022 20:03:34 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: DISTVERSION without DISTVERSIONPREFIX To: FreeBSD Ports Content-Type: multipart/alternative; boundary="000000000000ea5e7f05ea9eb3c9" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665342228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uxP1bX6gCKmZFUD8Se5N8trE7zKSORw8DCO0Tds6Q7A=; b=WoLflZu6cwwhR/RcEBD7mDNgqUNelN9hivIvdeQv4eCshM2BQcF3VhaP2+9Jj6kjyW34Vr DILoeC5bsE7izQBaOJzYz0QXK+7lF3agtgdUlATfYAkqXr73h/M+0Et26gtLj6e/FTMp6x pYK3UfKj6jtoO32ykoQs0oZNfElGdYMoU7B4bX5pcEN5fX6xwVOoMNTDzwdCuIr+kk4Gv/ MlndWAGQoVJ86SEuE6EvBc89V2wOQb8vqcEsaycCvHh0w3riKW+QW2Kd92gpQwbyNeyE+8 LVdJXEBEyEqtdXImGEGjFKszdpL9lcaqQMZYE3Ub9mNLUc2lAKKMBrEYTsTTAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665342228; a=rsa-sha256; cv=none; b=OaVorUxwgQDLB03cagtt0dZR1v2W8oNYqbLple8V9zlkfStEh/zF5FlkMGtGqYHaMX3lbD MKpglKN3cUnsB0jg+TVmthK7V1YAwhHjMuTXGK5dR6RA1DR2aud28kBhFmmjvHNxFgB/dA 6sCpFSINzcTGOtANb58WxFKnSGj3gQWNLfCd54WO7Ji2Cz3f9ayFh9cSbO+m+1PKeNfIwE G6OpCavYb8dK2CCLbOtf1QKY+gMfyPIetO4KUYcw5wbQcRqJP5eXKI5ZHarH7VOKwooD8E 7buy1BLiob1rJvBA/WmDiQTk8YCB+VG3DEC0OXPBYqTNja3Hk7z5fLQNoLdQoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --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 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
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.
=
---
Example 8. Using DISTVERSION When the Version Starts= with a Letter or a Prefix

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.

If the version is v1.= 2-4:

PORTNAME=3D =C2=A0 nekoto
DISTVERSIONPREFIX=3D =C2=A0v
DI= STVERSION=3D 1_2_4
---

Cheers,

<= div class=3D"gmail_quote">
Adam Weinbe= rger <adamw@adamw.org> escreve= u no dia domingo, 9/10/2022 =C3=A0(s) 19:44:
I've always been confused on thi= s. Many, many ports set DISTVERSIONPREFIX=3Dv, but very few ports set DISTV= ERSION=3Dv1.2.3

/usr/ports $ rg 'DISTVERSION=3D\s*v'
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 7
/usr/ports $ rg 'DISTVERSIONPREFIX=3D\s*v$'
=C2=A0 27= 48

Can DISTVERSION just be v1.2.3, or is there a reason that we need DISTV= ERSION=3D1.2.3 + DISTVERSIONPREFIX=3Dv?

# Adam


--


--
Nun= o Teixeira
FreeBSD Committer (ports)
--000000000000ea5e7f05ea9eb3c9--