commit: b9383636dbcf078fddfb867699440eb6cfc6acfb
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Feb 21 19:48:05 2026 +0000
Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Thu Mar 5 22:23:47 2026 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b9383636
sci-ml/ollama: 9999 support building rc tags
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
sci-ml/ollama/ollama-9999.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild
index 2796034559..34ba68814d 100644
--- a/sci-ml/ollama/ollama-9999.ebuild
+++ b/sci-ml/ollama/ollama-9999.ebuild
@@ -16,11 +16,15 @@ if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ollama/ollama.git"
else
+ MY_PV="${PV/_rc/-rc}"
+ MY_P="${PN}-${MY_PV}"
SRC_URI="
- https://github.com/ollama/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
-
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz
+
https://github.com/ollama/${PN}/archive/refs/tags/v${MY_PV}.tar.gz ->
${MY_P}.gh.tar.gz
+
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${MY_PV}/${MY_P}-deps.tar.xz
"
- KEYWORDS="~amd64"
+ if [[ ${PV} != *_rc* ]]; then
+ KEYWORDS="~amd64"
+ fi
fi
LICENSE="MIT"