* [gentoo-commits] repo/gentoo:master commit in: sys-devel/automake/, sys-devel/automake-vanilla/
@ 2023-11-22 0:00 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-11-22 0:00 UTC (permalink / raw
To: gentoo-commits
commit: c6d66d52fd0da4410f23ff947bf13a480c89aded
Author: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 15 12:05:34 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 00:00:08 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6d66d52
sys-devel/automake{,-vanilla}: fix idx computation for 9999
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-devel/automake-vanilla/automake-vanilla-9999.ebuild | 9 +++++++--
sys-devel/automake/automake-9999.ebuild | 9 +++++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/sys-devel/automake-vanilla/automake-vanilla-9999.ebuild b/sys-devel/automake-vanilla/automake-vanilla-9999.ebuild
index 878f8d02ab85..d6c826dc6125 100644
--- a/sys-devel/automake-vanilla/automake-vanilla-9999.ebuild
+++ b/sys-devel/automake-vanilla/automake-vanilla-9999.ebuild
@@ -104,8 +104,13 @@ src_install() {
done
popd >/dev/null || die
- local major="$(ver_cut 1)"
- local minor="$(ver_cut 2)"
+ if [[ ${PV} == 9999 ]]; then
+ local major="89"
+ local minor="999"
+ else
+ local major="$(ver_cut 1)"
+ local minor="$(ver_cut 2)"
+ fi
local idx="$((99999-(major*1000+minor)))"
newenvd - "07automake${idx}" <<-EOF
INFOPATH="${MY_INFODIR}"
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-9999.ebuild
index 0fef18d0c6d4..0c72cfe6e473 100644
--- a/sys-devel/automake/automake-9999.ebuild
+++ b/sys-devel/automake/automake-9999.ebuild
@@ -109,8 +109,13 @@ src_install() {
done
popd >/dev/null || die
- local major="$(ver_cut 1)"
- local minor="$(ver_cut 2)"
+ if [[ ${PV} == 9999 ]]; then
+ local major="89"
+ local minor="999"
+ else
+ local major="$(ver_cut 1)"
+ local minor="$(ver_cut 2)"
+ fi
local idx="$((99999-(major*1000+minor)))"
newenvd - "06automake${idx}" <<-EOF
INFOPATH="${infopath}"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-22 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-22 0:00 [gentoo-commits] repo/gentoo:master commit in: sys-devel/automake/, sys-devel/automake-vanilla/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox