From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1655458-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 6A87F159C96
	for <garchives@archives.gentoo.org>; Tue, 23 Jul 2024 03:40:29 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 42DA8E29E9;
	Tue, 23 Jul 2024 03:40:28 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 25B1BE29E9
	for <gentoo-commits@lists.gentoo.org>; Tue, 23 Jul 2024 03:40:28 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3C716340C7C
	for <gentoo-commits@lists.gentoo.org>; Tue, 23 Jul 2024 03:40:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FD9A1E65
	for <gentoo-commits@lists.gentoo.org>; Tue, 23 Jul 2024 03:40:24 +0000 (UTC)
From: "Eli Schwartz" <eschwartz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" <eschwartz@gentoo.org>
Message-ID: <1721705553.1273941fec5688ef7e8bea3f98963aac0196f11a.eschwartz@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcslib/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild
X-VCS-Directories: sci-astronomy/wcslib/
X-VCS-Committer: eschwartz
X-VCS-Committer-Name: Eli Schwartz
X-VCS-Revision: 1273941fec5688ef7e8bea3f98963aac0196f11a
X-VCS-Branch: master
Date: Tue, 23 Jul 2024 03:40:24 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 7613e124-9554-4fba-8cd4-540e97ee8f13
X-Archives-Hash: fb58e3ba5daec3e28a1b26edc5dfc12d

commit:     1273941fec5688ef7e8bea3f98963aac0196f11a
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 23 01:51:12 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Jul 23 03:32:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1273941f

sci-astronomy/wcslib: use ver_cut to produce SLOT

Previously, bumping to 8.x caused the SLOT to temporarily lag behind
because I didn't pay attention. Later fixed, by bumping the hardcoded
version, but... upstream rigorously guarantees semver:

https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/versioning.html

So we can use ver_cut to directly derive the correct slot from the major
version, which ensures that doesn't happen again.

Fixes: 632bccc7eb31b12665622103f3a2091349e80269
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild b/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild
index 47c7788eb7ad..c0b48800b96f 100644
--- a/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild
+++ b/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild
@@ -11,7 +11,7 @@ DESCRIPTION="Astronomical World Coordinate System transformations library"
 HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/"
 SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
 
-SLOT="0/8"
+SLOT="0/$(ver_cut 1)"
 LICENSE="LGPL-3"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc fortran fits pgplot static-libs +tools"