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"

Reply via email to