summaryrefslogtreecommitdiff
path: root/acct-user/ollama/ollama-0.ebuild
blob: 3ee94c3009534d716b755f8bfacdd2f8c6688f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit acct-user

DESCRIPTION="A user for ollama"
ACCT_USER_ID=562
ACCT_USER_HOME=/var/lib/ollama
ACCT_USER_HOME_PERMS=0750
ACCT_USER_GROUPS=( ollama )

IUSE="cuda"

acct-user_add_deps

RDEPEND+="
	cuda? (
		acct-group/video
	)
"

pkg_setup() {
	# sci-ml/ollama[cuda]
	if use cuda; then
		ACCT_USER_GROUPS+=( video )
	fi
}