Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jaypeche/8fa798ccee242177a0b12a2b5f07fed7 to your computer and use it in GitHub Desktop.

Select an option

Save jaypeche/8fa798ccee242177a0b12a2b5f07fed7 to your computer and use it in GitHub Desktop.
--- /var/db/repos/guru/sci-ml/ollama/ollama-0.14.2.ebuild 2026-02-01 23:48:13.382575207 +0100
+++ ollama-0.17.0_rc1.ebuild 2026-02-21 12:20:05.914664505 +0100
@@ -12,14 +12,20 @@
DESCRIPTION="Get up and running with Llama 3, Mistral, Gemma, and other language models."
HOMEPAGE="https://ollama.com"
+
+# Define MY_PV for EGIT_COMMIT
+MY_PV="${PV/_rc/-rc}"
+MY_PV="v${MY_PV}"
+
+
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ollama/ollama.git"
else
- 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
- "
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ollama/ollama.git"
+ EGIT_BRANCH="main"
+ EGIT_COMMIT="${MY_PV}"
KEYWORDS="~amd64"
fi
@@ -122,12 +128,8 @@
export CXXFLAGS="$(test-flags-HIPCXX "${CXXFLAGS}")"
fi
- if [[ "${PV}" == *9999* ]]; then
- git-r3_src_unpack
- go-module_live_vendor
- else
- go-module_src_unpack
- fi
+ git-r3_src_unpack
+ go-module_live_vendor
}
src_prepare() {
@@ -273,9 +275,9 @@
CUDAHOSTCXX="$(cuda_gccdir)"
CUDAHOSTLD="$(tc-getCXX)"
- # default to all for now until cuda.eclass is updated
+ # default to all-major for now until cuda.eclass is updated
if [[ ! -v CUDAARCHS ]]; then
- local CUDAARCHS="all"
+ local CUDAARCHS="all-major"
fi
mycmakeargs+=(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment