summaryrefslogtreecommitdiff
path: root/sys-firmware/iwl3160-ucode
diff options
context:
space:
mode:
Diffstat (limited to 'sys-firmware/iwl3160-ucode')
-rw-r--r--sys-firmware/iwl3160-ucode/Manifest2
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414-r1.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414.ebuild)33
2 files changed, 11 insertions, 24 deletions
diff --git a/sys-firmware/iwl3160-ucode/Manifest b/sys-firmware/iwl3160-ucode/Manifest
index 3f71117c6be0..5e7dbc2eb9df 100644
--- a/sys-firmware/iwl3160-ucode/Manifest
+++ b/sys-firmware/iwl3160-ucode/Manifest
@@ -1,3 +1,3 @@
DIST iwl3160-ucode-0.16.242414.tgz 467156 BLAKE2B 47a94667cfdc5a9409073e866f750b7c3edefe42539ab1b4f7ac432e2dc74a8a5c0cf45bad5febb1ed165b74dc2af1319b088c751bde69cd5c64812ffd5f43f7 SHA512 ca0f675ebddb92c936df6bf412fdd1a41a33426636c3c40881251dfdd8b6527bc03d03b73b10dfb6fcc23676d1d51c372ac406f9554baf7f4ac36c9bd302b79d
-EBUILD iwl3160-ucode-0.16.242414.ebuild 1378 BLAKE2B a1d43fb4c278ad25674cb5adad899c6dccb7ef4c410ee1537dddbd4a2e139ea754d88e55df8bc7fcdd561ac790bb683200161f06bd7fa9f951050d0fd7ca6c87 SHA512 2f149bf9cd37e79a7dfcca8388b4874187432e0459a40acd980d71ca1203864e10014c9a279a1fa18425b404be0a1531799198c21157312d256fae2f6112df49
+EBUILD iwl3160-ucode-0.16.242414-r1.ebuild 941 BLAKE2B f930ca3162d774a4a21e3f0f89fd223f174174095611fdd67e737f274c52d77c929e2b309cd53e5f1df6d00c5f16a65de724826f2282b905a21676f5be9102b4 SHA512 4e564d32e689da5612712c9b8b48d6b83368fe98fe9051a131e728c141656ff18f52a0642287c9fac8aaf6998a7021bec3ba8a6ac355b2c159389b4056b4e093
MISC metadata.xml 413 BLAKE2B 9855c687f05d8a1e1b425e877cc57b6f7048fe1d3d41982c302369c369aea84b461afd0671b0a8d451c9542ab47d9d78c8164065df08a1027e25b7114e9e1daf SHA512 1dcd805a4412643ef1f45f8c105fe40a202e4c7f1481df9420c0276592806280c1a7ed6f7d558be07790ad3e1a1e7ad78202fb4b573460484ea0349ce2db5ed1
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414-r1.ebuild
index 3abce4765618..7bb42e888f01 100644
--- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414.ebuild
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.16.242414-r1.ebuild
@@ -1,46 +1,33 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit linux-info versionator
+EAPI=8
+
+inherit linux-info
DEV_N="${PN:3:4}"
-vc=($(get_all_version_components "${PV}"))
-MY_PV="${vc[2]}.${vc[4]}.${vc[0]}"
+MY_PV="$(ver_cut 2).$(ver_cut 3).$(ver_cut 1)"
MY_PN="iwlwifi-${DEV_N}-ucode"
-DV_MAJOR="4"
-DV_MINOR="3"
-DV_PATCH="0"
-
DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}"
HOMEPAGE="https://wireless.kernel.org/en/users/Drivers/iwlwifi"
SRC_URI="https://wireless.wiki.kernel.org/_media/en/users/drivers/${MY_PN}-${MY_PV}.tgz -> ${P}.tgz"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
LICENSE="ipw3945"
-SLOT="${vc[2]}"
+SLOT="$(ver_cut 2)"
KEYWORDS="~amd64 ~x86"
IUSE="bluetooth"
-DEPEND=""
-RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode )
+RDEPEND="
+ bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode )
!sys-kernel/linux-firmware[-savedconfig]"
-S="${WORKDIR}/${MY_PN}-${MY_PV}"
-
CONFIG_CHECK="~IWLMVM"
ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware"
-pkg_pretend() {
- if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then
- ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}."
- ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}."
- ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS"
- fi
-}
-
src_install() {
insinto /lib/firmware
- doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode"
+ doins iwlwifi-${DEV_N}-$(ver_cut 2).ucode
dodoc README*
}