From 0cd3b9d029b36e2f679143bbd9901c9493746390 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 14 Dec 2020 09:39:18 -0500 Subject: sci-libs/cddlib: make MY_PV assignment more reliable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit François Bissey came up with a better way (using bash substrings) to compute MY_PV from PV in these ebuilds. It won't work forever, but it should be OK for a few more versions, and the failure mode is nicer than the present one of silently downloading the wrong version. Bug: https://bugs.gentoo.org/759520 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Michael Orlitzky --- sci-libs/cddlib/cddlib-094m-r1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sci-libs') diff --git a/sci-libs/cddlib/cddlib-094m-r1.ebuild b/sci-libs/cddlib/cddlib-094m-r1.ebuild index 0bacae1be5cb..6dc83abed745 100644 --- a/sci-libs/cddlib/cddlib-094m-r1.ebuild +++ b/sci-libs/cddlib/cddlib-094m-r1.ebuild @@ -3,9 +3,10 @@ EAPI=7 -# This should have been dealt with versionator in the direction -# 0.94x -> 094x - now we are screwed. -MY_PV="0.94m" +# This can't work forever; but for now, it's better than hard-coding the +# correct version string. +MY_PV="${PV:0:1}.${PV:1}" + MY_P="${PN}-${MY_PV}" DESCRIPTION="C library implementing the Double Description Method" HOMEPAGE="https://www.inf.ethz.ch/personal/fukudak/cdd_home/" -- cgit v1.2.3-65-gdbad