diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-12-14 09:39:18 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-12-14 18:00:28 -0500 |
commit | 0cd3b9d029b36e2f679143bbd9901c9493746390 (patch) | |
tree | bd3fbc18f1de5d473aab25c4db71fae0851bacfd /sci-libs/cddlib | |
parent | x11-drivers/xf86-input-elographics: drop down to ~hppa (diff) | |
download | gentoo-0cd3b9d029b36e2f679143bbd9901c9493746390.tar.gz gentoo-0cd3b9d029b36e2f679143bbd9901c9493746390.tar.bz2 gentoo-0cd3b9d029b36e2f679143bbd9901c9493746390.zip |
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@gentoo.org>
Diffstat (limited to 'sci-libs/cddlib')
-rw-r--r-- | sci-libs/cddlib/cddlib-094m-r1.ebuild | 7 |
1 files changed, 4 insertions, 3 deletions
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/" |