diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2020-09-19 20:00:46 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-09-19 20:00:46 +0200 |
commit | 14955162c5e32b437bf3ad88a687466d64563a06 (patch) | |
tree | 588118b9748ce932b433079ce6670209c0f00472 /sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild | |
parent | net-mail/serialmail: extra || die (diff) | |
download | gentoo-14955162c5e32b437bf3ad88a687466d64563a06.tar.gz gentoo-14955162c5e32b437bf3ad88a687466d64563a06.tar.bz2 gentoo-14955162c5e32b437bf3ad88a687466d64563a06.zip |
sys-firmware/nvidia-firmware: migrate to Python 3
* Migrate to Python 3 and EAPI 7.
Updated SRC_URI for python firmware extractor.
Bug: https://bugs.gentoo.org/731258
Closes: https://github.com/gentoo/gentoo/pull/17600
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild')
-rw-r--r-- | sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild b/sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild new file mode 100644 index 000000000000..a14bd980768a --- /dev/null +++ b/sys-firmware/nvidia-firmware/nvidia-firmware-340.32-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit python-any-r1 unpacker + +NV_URI="http://us.download.nvidia.com/XFree86/" +X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" + +FIRMWARE_REV="a0b9f9be0efad90cc84b8b2eaf587c3d7d350ea9" + +DESCRIPTION="Kernel and mesa firmware for nouveau (video accel and pgraph)" +HOMEPAGE="https://nouveau.freedesktop.org/wiki/VideoAcceleration/" +SRC_URI="${NV_URI}Linux-x86/${PV}/${X86_NV_PACKAGE}.run + https://raw.githubusercontent.com/envytools/firmware/${FIRMWARE_REV}/extract_firmware.py + -> nvidia_extract_firmware-${FIRMWARE_REV}.py" + +LICENSE="MIT NVIDIA-r2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +RESTRICT="bindist mirror" + +BDEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}" + +src_unpack() { + mkdir "${S}/${X86_NV_PACKAGE}" || die + cd "${S}/${X86_NV_PACKAGE}" || die + unpack_makeself "${X86_NV_PACKAGE}.run" +} + +src_compile() { + "${EPYTHON}" "${DISTDIR}/nvidia_extract_firmware-${FIRMWARE_REV}.py" \ + || die "Extracting firmwares failed" +} + +src_install() { + insinto /lib/firmware/nouveau + doins nv* vuc-* +} |