8 |
8 |
inherit systemd toolchain-funcs unpacker user-info
|
9 |
9 |
|
10 |
10 |
MODULES_KERNEL_MAX=6.5
|
11 |
|
NV_PIN=535.113.01
|
|
11 |
NV_URI="https://download.nvidia.com/XFree86/"
|
12 |
12 |
|
13 |
13 |
DESCRIPTION="NVIDIA Accelerated Graphics Driver"
|
14 |
|
HOMEPAGE="https://developer.nvidia.com/vulkan-driver"
|
|
14 |
HOMEPAGE="https://www.nvidia.com/download/index.aspx"
|
15 |
15 |
SRC_URI="
|
16 |
|
https://developer.nvidia.com/downloads/vulkan-beta-${PV//.}-linux
|
17 |
|
-> NVIDIA-Linux-x86_64-${PV}.run
|
18 |
|
$(printf "https://download.nvidia.com/XFree86/%s/%s-${NV_PIN}.tar.bz2 " \
|
|
16 |
amd64? ( ${NV_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run )
|
|
17 |
arm64? ( ${NV_URI}Linux-aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run )
|
|
18 |
$(printf "${NV_URI}%s/%s-${PV}.tar.bz2 " \
|
19 |
19 |
nvidia-{installer,modprobe,persistenced,settings,xconfig}{,})
|
20 |
|
https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/${PV}.tar.gz
|
21 |
|
-> open-gpu-kernel-modules-${PV}.tar.gz"
|
|
20 |
${NV_URI}NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-${PV}.tar.xz"
|
22 |
21 |
# nvidia-installer is unused but here for GPL-2's "distribute sources"
|
23 |
22 |
S="${WORKDIR}"
|
24 |
23 |
|
25 |
24 |
LICENSE="NVIDIA-r2 Apache-2.0 BSD BSD-2 GPL-2 MIT ZLIB curl openssl"
|
26 |
|
SLOT="0/vulkan"
|
27 |
|
KEYWORDS="-* ~amd64"
|
|
25 |
SLOT="0/${PV%%.*}"
|
|
26 |
KEYWORDS="-* amd64 ~arm64"
|
28 |
27 |
IUSE="+X abi_x86_32 abi_x86_64 kernel-open persistenced +static-libs +tools wayland"
|
29 |
28 |
REQUIRED_USE="kernel-open? ( modules )"
|
30 |
29 |
|
31 |
30 |
COMMON_DEPEND="
|
32 |
31 |
acct-group/video
|
33 |
|
sys-libs/glibc
|
34 |
|
dev-libs/openssl:0/3
|
35 |
32 |
X? ( x11-libs/libpciaccess )
|
36 |
33 |
persistenced? (
|
37 |
34 |
acct-user/nvpd
|
... | ... | |
126 |
123 |
|
127 |
124 |
src_prepare() {
|
128 |
125 |
# make patches usable across versions
|
129 |
|
rm nvidia-modprobe && mv nvidia-modprobe{-${NV_PIN},} || die
|
130 |
|
rm nvidia-persistenced && mv nvidia-persistenced{-${NV_PIN},} || die
|
131 |
|
rm nvidia-settings && mv nvidia-settings{-${NV_PIN},} || die
|
132 |
|
rm nvidia-xconfig && mv nvidia-xconfig{-${NV_PIN},} || die
|
133 |
|
mv open-gpu-kernel-modules-${PV} kernel-module-source || die
|
|
126 |
rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die
|
|
127 |
rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die
|
|
128 |
rm nvidia-settings && mv nvidia-settings{-${PV},} || die
|
|
129 |
rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die
|
|
130 |
mv NVIDIA-kernel-module-source-${PV} kernel-module-source || die
|
134 |
131 |
|
135 |
132 |
default
|
136 |
133 |
|