From nobody Tue Dec 27 12:03:04 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 4NhCwN576Dz1J7fB for ; Tue, 27 Dec 2022 12:03:16 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4NhCwN4drBz3wsT for ; Tue, 27 Dec 2022 12:03:16 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672142596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=A0JN/Kxh3BmHikKDrzicIyXeb5Fqt+9ZIPEwDJnhv8s=; b=hBoIzPWilzWT7VsPN5hAZ95NlmZl5dGPRlOF+sMwhrFRzXQp99sQBFmRO8EwigBGoVI35X GGi6pbJIVadPpKQCoixF0eO5HvUnyEdL2i60Nsb0fb05Z8h1sdiR5eLNHZEHNQEEMPVbOv 1JhiloKL0dm8EzNiCIgRR5wFYIQr6cxeGPwOqdZG5oElV9hLFLIY9soB1A46hXYpX0vEA2 8weYE/g/VHUFMbKuu+kuNsSZOPOaaRRpdN6xGoyagP+rciOKIa5WkrdeASd3fgEwaof7IJ hBaq9unQITryI3r5kh7JykJ5ZpGtVOj2JSIpreRpGo+K672NyS+gT6O1EugWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672142596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=A0JN/Kxh3BmHikKDrzicIyXeb5Fqt+9ZIPEwDJnhv8s=; b=pdoiXoiuIcC1lw4kLh9ZPUcAqZTAGr1e9r3naPnu/MnE1eF/CGpZmK03H5cx7t9L+4tQ6x +jbIgE0yn50ho0HcebPVfI1YL5pnO1eaW0aGdXFP8PVKY8GFusG8W+/dXLmewuexq/kRji r/NHCQPigoz4SbAafafZL3z15PUOBIMBTUhFVJWdgpo8yrwd5Xx4qY59++BN6EW8UCEttX KKX2RMDkI5VIsMMR+mq+SvNhxtB9dgjknBcUSm1dX0/vT3i+soRkPYobfW291A1ERjulB+ 5oykNsa+p2sV69a9wE3+dYtp0AC94O3WyFzMTzEkIz5fTC+0ZslMXytvDaJmOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672142596; a=rsa-sha256; cv=none; b=ezKjJN/ylMjU5nqhwOa/8LChK+qGptjIZbbZy0QEuJedc+4oaiemRTx7oDhPL1Z/7tGIIA ZgCAZE2fi5d6jAwyVbwWg8mqHn622GCv4RmdH71BEGux4LuJ4YX8Kxc2urfIvmeJA6SJ/K /kdnpWiudwUoIwcBLoOYzJGeP36QE83PEqk2w/0l5WzWhP+sGRT1ywvX46tzgioHb0XvYg DROO04F2ufnjfL8oe/HfVHsi/qXsMCUQcYgdl2lMOCt0jmh0UcRmryfcIsPARK/UqAekuO seexa9Pr4M3+/qjHlkpJBvf7lojl3adbYJilfkzsTpVcjAbfnm22o1zYTkde5w== Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (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 4NhCwN3XJrz1Cqw for ; Tue, 27 Dec 2022 12:03:16 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f51.google.com with SMTP id m2so12418636vsv.9 for ; Tue, 27 Dec 2022 04:03:16 -0800 (PST) X-Gm-Message-State: AFqh2kqkAQpdwhpRNWibcVJfEwhDKPkx9HlWdQt5MMAqr14cfrJlrfcK ED+CzH8m00B9fiaOuabdjgtyr22PkTHjmhKnAnY= X-Google-Smtp-Source: AMrXdXu6bl3W5lQx1UCh+3/Fm5K+/qM+OIbx+2A1+iBNhzHToLMy8LjvPL0QeyAEouRdil7BHgVgI2rGmJfqaSaYbvk= X-Received: by 2002:a67:e958:0:b0:3b1:502b:fe23 with SMTP id p24-20020a67e958000000b003b1502bfe23mr2935786vso.19.1672142595349; Tue, 27 Dec 2022 04:03:15 -0800 (PST) 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 From: Nuno Teixeira Date: Tue, 27 Dec 2022 12:03:04 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: MASTER_SITES with DISTVERSION substitution "S:/./-/" To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="00000000000068e4a005f0ce0916" X-ThisMailContainsUnwantedMimeParts: N --00000000000068e4a005f0ce0916 Content-Type: text/plain; charset="UTF-8" Hello all, I'm working in a port (267717 ) with a source tarball hosted in github: https://github.com/root-project/root/releases/download/v6-26-10/root_v6.26.10.source.tar.gz --- PORTNAME= root DISTVERSION= 6.26.10 CATEGORIES= devel science math parallel python MASTER_SITES= https://github.com/root-project/root/releases/download/v${DISTVERSION:S/./-/:S/./-/}/ DISTNAME= ${PORTNAME}_v${DISTVERSION}.source --- Is there a better way of replacing "." with "-" without using "S:///" 2 times: ${DISTVERSION:S/./-/:S/./-/}/ Using only one :S/./-/ will substitute the first match "6-26.10" Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --00000000000068e4a005f0ce0916 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I'm working i= n a port (267717) with a source tarball hos= ted in github:

---
PORTNAME=3D =C2=A0 =C2=A0 =C2=A0= root
DISTVERSION=3D =C2=A0 =C2=A06.26.10
CATEGORIES=3D =C2=A0 =C2=A0= devel science math parallel python
MASTER_SITES=3D =C2=A0 https://github.com/root-project/root/releases/download/v${DISTVER= SION:S/./-/:S/./-/}/
DISTNAME=3D =C2=A0 =C2=A0 =C2=A0 ${PORTNAME}_v$= {DISTVERSION}.source
---

Is there a bett= er way of replacing "." with "-" without using "S:= ///" 2 times:
${DISTVERSION:S/./-/:S/./-/}/
Using = only one :S/./-/ will substitute the first match "6-26.10"
<= div>
Thanks,


--
Nuno Teixeira
FreeBSD= Committer (ports)
--00000000000068e4a005f0ce0916--