diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-06-14 11:38:49 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-06-14 11:39:13 +0300 |
commit | 2209a547abddee946978252d71fc7241dd62fb86 (patch) | |
tree | c7c4501cbb70054e5b48c05c94b909ca9a0a5b33 /net-wireless | |
parent | dev-libs/protobuf: backport template instantiation fix (diff) | |
download | gentoo-2209a547abddee946978252d71fc7241dd62fb86.tar.gz gentoo-2209a547abddee946978252d71fc7241dd62fb86.tar.bz2 gentoo-2209a547abddee946978252d71fc7241dd62fb86.zip |
net-wireless/gobi_loader: EAPI=8, cleanup, fix bugs
Closes: https://bugs.gentoo.org/725158
Closes: https://bugs.gentoo.org/849491
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/gobi_loader/gobi_loader-0.7-r3.ebuild (renamed from net-wireless/gobi_loader/gobi_loader-0.7-r2.ebuild) | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/net-wireless/gobi_loader/gobi_loader-0.7-r2.ebuild b/net-wireless/gobi_loader/gobi_loader-0.7-r3.ebuild index 1dd0562fa966..ceb4dcacc186 100644 --- a/net-wireless/gobi_loader/gobi_loader-0.7-r2.ebuild +++ b/net-wireless/gobi_loader/gobi_loader-0.7-r3.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -inherit udev +EAPI=8 + +inherit toolchain-funcs udev DESCRIPTION="gobi_loader is a firmware loader for Qualcomm Gobi USB chipsets" HOMEPAGE="https://www.codon.org.uk/~mjg59/gobi_loader/" @@ -11,25 +12,30 @@ SRC_URI="https://www.codon.org.uk/~mjg59/${PN}/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -DEPEND="virtual/libusb:0" -RDEPEND="${DEPEND}" +RDEPEND="virtual/libusb:0" PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) src_prepare() { default - sed "s:%UDEVDIR%:$(get_udevdir):" -i Makefile || die + sed -e "s:%UDEVDIR%:$(get_udevdir):" \ + -e "s:gcc:$(tc-getCC):" \ + -e "s:-Wall:& -Wno-unused-result:" \ + -i Makefile || die } src_install() { + local -x prefix=${EPREFIX} emake install + keepdir /lib/firmware/gobi } pkg_postinst() { - udevadm control --reload-rules - einfo - einfo "Put your firmware in /lib/firmware/gobi." - einfo + udev_reload + einfo "Put your firmware in /lib/firmware/gobi" +} + +pkg_postrm() { + udev_reload } |