commit: 0cd3b9d029b36e2f679143bbd9901c9493746390 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Mon Dec 14 14:39:18 2020 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Mon Dec 14 23:00:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd3b9d0
sci-libs/cddlib: make MY_PV assignment more reliable. 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 <mjo <AT> gentoo.org> sci-libs/cddlib/cddlib-094m-r1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sci-libs/cddlib/cddlib-094m-r1.ebuild b/sci-libs/cddlib/cddlib-094m-r1.ebuild index 0bacae1be5c..6dc83abed74 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/"
