commit: 1dbed55c88d2cdf4a510209c7b1216adaa03c05e
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Jun 27 13:26:19 2025 +0000
Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Sun Jun 29 19:29:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1dbed55c
sci-ml/ollama: add 0.9.3
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
sci-ml/ollama/Manifest | 2 ++
sci-ml/ollama/{ollama-9999.ebuild => ollama-0.9.3.ebuild} | 14 ++++++++++++++
sci-ml/ollama/ollama-9999.ebuild | 14 ++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/sci-ml/ollama/Manifest b/sci-ml/ollama/Manifest
index 4eb171a912..5c53ab7a1b 100644
--- a/sci-ml/ollama/Manifest
+++ b/sci-ml/ollama/Manifest
@@ -8,3 +8,5 @@ DIST ollama-0.9.1-vendor.tar.xz 4414480 BLAKE2B
60854edfd5f4a0abb674bb4a430694f4
DIST ollama-0.9.1.gh.tar.gz 8358070 BLAKE2B
601b93e38247046ad958b332caac074a78554c97cbac93cf3b2eff87f4353d901cc3c807e597a4b217e20aaa2982ec0be6c80e2825ffa87061ad926bcf393f55
SHA512
dffc3da4f2b0c5b50c195a98c1ab8ace049f61536297658cb1ac8dc90a35cd0402e92f61aa11b5283791a5c2e7ac6756b9232a9713d30aee4d7cc24fa2a577e3
DIST ollama-0.9.2-vendor.tar.xz 4408288 BLAKE2B
704b11317733e10d95f4782a86d7762bb259b20cd1cf879385f236824cfe2378b617bf96ca455d018d4a4dea84db2165459e8015aa6c320bdaf1aea1de0fb9f9
SHA512
4dd32d6c67bafa05db47a0bcc4a7852b5fbd8776acde470bdd524a4772d312a3724778025011ea85135184229b0eac89ccfe4c2323bc02d218686a3497949400
DIST ollama-0.9.2.gh.tar.gz 8351627 BLAKE2B
84aba6436304260a5743d43eb3c74d48dc3b3168679db26ecb76c25ec78c517bb4d9318eba166e2e2053e6d444d06d3798849f5fe1de53851b01607d18aaeb59
SHA512
a68c581af7a7ea7a2193165773a9e5f1d832ab53e6e5f9f1786d530deab4c7a1e01b39cb1b2775f8415b3e9556991b6cf3e1e2a1066d1070d3ae500433217a33
+DIST ollama-0.9.3-vendor.tar.xz 4498620 BLAKE2B
f064eb1fc8d226fa1cb916bdc0bb161d342bf2b33658d2328d0b38f338e26ed9e1ea3eccbb0c8f484f81974f58545623bad15352f17a6aed8bc37d14ba7dabb0
SHA512
e010082df3b6808e4347bf22e8e9d9ecec916e62c4205308cb351ecfde6cf1f52c7a97f369e08c198ebd9f80b3568f740aac6948e9e572a35564eaaa4dc054ce
+DIST ollama-0.9.3.gh.tar.gz 8397536 BLAKE2B
296cf7916bd5dc222d42ebb7e946f50b6008662e09b197e33475d6b024d7311758d443a7930e737a8b72f47db5c3d1312117c40fc9bac776dc9e7faf42c90eb4
SHA512
981d2d1369cd931de1f856cf071de5575f3a14f9b05631f78b6aae4bb127cc544fce8ef2ee8d72ace921acada75e91e7a667d0369a36738775b3fe20704f6122
diff --git a/sci-ml/ollama/ollama-9999.ebuild
b/sci-ml/ollama/ollama-0.9.3.ebuild
similarity index 93%
copy from sci-ml/ollama/ollama-9999.ebuild
copy to sci-ml/ollama/ollama-0.9.3.ebuild
index 81e1307e83..0a02a80575 100644
--- a/sci-ml/ollama/ollama-9999.ebuild
+++ b/sci-ml/ollama/ollama-0.9.3.ebuild
@@ -270,6 +270,20 @@ src_configure() {
}
src_compile() {
+ # export version information
+ # https://github.com/gentoo/guru/pull/205
+ # https://forums.gentoo.org/viewtopic-p-8831646.html
+ local VERSION
+ if [[ "${PV}" == *9999* ]]; then
+ VERSION=$(
+ git describe --tags --first-parent --abbrev=7 --long
--dirty --always \
+ | sed -e "s/^v//g"
+ )
+ else
+ VERSION="${PVR}"
+ fi
+ GOFLAGS+=" '-ldflags=-w -s
\"-X=github.com/ollama/ollama/version.Version=$VERSION\"
\"-X=github.com/ollama/ollama/server.mode=release\"'"
+
ego build
cmake_src_compile
diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild
index 81e1307e83..0a02a80575 100644
--- a/sci-ml/ollama/ollama-9999.ebuild
+++ b/sci-ml/ollama/ollama-9999.ebuild
@@ -270,6 +270,20 @@ src_configure() {
}
src_compile() {
+ # export version information
+ # https://github.com/gentoo/guru/pull/205
+ # https://forums.gentoo.org/viewtopic-p-8831646.html
+ local VERSION
+ if [[ "${PV}" == *9999* ]]; then
+ VERSION=$(
+ git describe --tags --first-parent --abbrev=7 --long
--dirty --always \
+ | sed -e "s/^v//g"
+ )
+ else
+ VERSION="${PVR}"
+ fi
+ GOFLAGS+=" '-ldflags=-w -s
\"-X=github.com/ollama/ollama/version.Version=$VERSION\"
\"-X=github.com/ollama/ollama/server.mode=release\"'"
+
ego build
cmake_src_compile