Fixed app-misc/ollama-0.5.7 warnings && added acct-group/ollama && added acct-user/ollama
This commit is contained in:
18
app-misc/ollama-bin/metadata.xml
Normal file
18
app-misc/ollama-bin/metadata.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>negril.nx+gentoo@gmail.com</email>
|
||||
<name>Paul Zander</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Get up and running with large language models.
|
||||
Run Llama 3.3, DeepSeek-R1, Phi-4, Mistral, Gemma 2, and other models, locally.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="rocm">Enable ROCm gpu computing support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">ollama/ollama</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,23 +1,21 @@
|
||||
EAPI=8
|
||||
DESCRIPTION='Get up and running with Llama 3, Mistral, Gemma, and other large language models.'
|
||||
HOMEPAGE='https://ollama.com'
|
||||
DESCRIPTION='Get up and running with large language models.'
|
||||
HOMEPAGE='https://ollama.com https://github.com/ollama/ollama'
|
||||
SRC_MAIN_URI='https://github.com/ollama/ollama/releases/download/v'
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_MAIN_URI}${PV}/ollama-linux-amd64.tgz -> $P.amd64.tgz )
|
||||
arm64? ( ${SRC_MAIN_URI}${PV}/ollama-linux-arm64.tgz -> $P.arm64.tgz )
|
||||
rocm? ( ${SRC_MAIN_URI}${PV}/ollama-linux-amd64-rocm.tgz -> $P.rocm.tgz )
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
LICENSE='MIT'
|
||||
SLOT='0'
|
||||
KEYWORDS='~amd64 ~arm64'
|
||||
IUSE='+systemd -rocm'
|
||||
IUSE='+systemd rocm'
|
||||
DEPEND='acct-user/ollama acct-group/ollama'
|
||||
RDEPEND='acct-user/ollama acct-group/ollama'
|
||||
S="${WORKDIR}"
|
||||
RESTRICT='strip'
|
||||
|
||||
inherit xdg-utils
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( https://github.com/ollama/ollama/releases/download/v${PV}/ollama-linux-amd64.tgz -> $P.amd64.tgz )
|
||||
arm64? ( https://github.com/ollama/ollama/releases/download/v${PV}/ollama-linux-arm64.tgz -> $P.arm64.tgz )
|
||||
rocm? ( https://github.com/ollama/ollama/releases/download/v${PV}/ollama-linux-amd64-rocm.tgz -> $P.rocm.tgz )
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use rocm; then
|
||||
tar -xzvf "${DISTDIR}/${P}.rocm.tgz" -C "${WORKDIR}" || die "Can't extract rocm tgz"
|
||||
@ -33,7 +31,7 @@ src_install() {
|
||||
doexe "${WORKDIR}/bin/ollama" || die 'Failed to install binary'
|
||||
insinto /opt/Ollama/lib/
|
||||
doins -r "${WORKDIR}/lib/ollama/" || die 'Failed to install libraries'
|
||||
dosym /opt/Ollama/bin/ollama /opt/bin/ollama
|
||||
dosym -r /opt/Ollama/bin/ollama /opt/bin/ollama
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
Reference in New Issue
Block a user