diff options
author | Sam James <sam@gentoo.org> | 2020-11-26 04:53:38 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-11-26 04:57:27 +0000 |
commit | 82fe59d7364ccaecc750ae92598aa1578ef7306e (patch) | |
tree | e93b1f51dce3b0e2f933e46a22212b6d2febf562 /sys-firmware/raspberrypi-wifi-ucode | |
parent | sys-kernel/linux-firmware: add !sys-firmware/raspberrypi-wifi-ucode (diff) | |
download | gentoo-82fe59d7364ccaecc750ae92598aa1578ef7306e.tar.gz gentoo-82fe59d7364ccaecc750ae92598aa1578ef7306e.tar.bz2 gentoo-82fe59d7364ccaecc750ae92598aa1578ef7306e.zip |
sys-firmware/raspberrypi-wifi-ucode: tiny post-merge changes
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-firmware/raspberrypi-wifi-ucode')
-rw-r--r-- | sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20190114.1_p9.ebuild | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20190114.1_p9.ebuild b/sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20190114.1_p9.ebuild index 2d901028a833..38d2b40eea18 100644 --- a/sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20190114.1_p9.ebuild +++ b/sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20190114.1_p9.ebuild @@ -8,17 +8,15 @@ HOMEPAGE="https://github.com/RPi-Distro/firmware-nonfree https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree" MY_PN=firmware-nonfree SRC_URI="https://archive.raspberrypi.org/debian/pool/main/f/${MY_PN}/${MY_PN}_$(ver_cut 1)-$(ver_cut 2)+rpt$(ver_cut 4).debian.tar.xz" +S="${WORKDIR}" LICENSE="Broadcom" SLOT="0" KEYWORDS="~arm ~arm64" RDEPEND="!sys-kernel/linux-firmware[-savedconfig]" -DEPEND="" - -S="${WORKDIR}" -pkg_setup() { +pkg_pretend() { local -a BADFILES=() local txt file # /lib/firmware/brcm/brcmfmac434{30,36,55,56}-sdio.*.txt @@ -39,10 +37,11 @@ pkg_setup() { # * /lib/firmware/brcm/brcmfmac43455-sdio.txt # * /lib/firmware/brcm/brcmfmac43456-sdio.txt # So no overlap is assured. - for txt in /lib/firmware/brcm/brcmfmac434{30,36,55,56}-sdio.*.txt; do + for txt in "${EPREFIX}"/lib/firmware/brcm/brcmfmac434{30,36,55,56}-sdio.*.txt; do [[ -e "${txt}" ]] && BADFILES+=( "${txt}" ) done - if (( "${#BADFILES[@]}" >= 1)); then + + if [[ "${#BADFILES[@]}" -gt 1 ]]; then eerror "The following files should be excluded from the savedconfig of" eerror "linux-firmware and linux-firmware should be re-emerged. Even" eerror "though they do not collide with files from ${PN}," |