mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
media-gfx/brscan5: QA improvements
In commit e02ab37ecf we promptly fixed
the upstream host deleting files for the only installable version.
In that commit, I observed that brscan_gnetconfig was a binary installed
but missing +x and resolved that by adding +x, despite the fact that it
was a deliberate omission, to avoid a GTK2 dependency.
That removal is now an explicit removal for clarity.
Deps are refined: libudev to udev (because udev rules don't require linking)
Also removing the dbus dependency (not linked, but used via avahi[dbus]).
Keywords are now explicitly -* to match tree best practices.
Closes: https://bugs.gentoo.org/979201
Signed-off-by: Anthony Ryan <anthonyryan1@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/46562
Closes: https://github.com/gentoo/gentoo/pull/46562
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -12,15 +12,14 @@ S="${WORKDIR}/opt/brother/scanner/brscan5"
|
||||
|
||||
LICENSE="Brother"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
KEYWORDS="-* ~amd64"
|
||||
RESTRICT="bindist mirror strip"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libusb:1
|
||||
media-gfx/sane-backends
|
||||
net-dns/avahi[dbus]
|
||||
sys-apps/dbus
|
||||
virtual/libudev
|
||||
virtual/udev
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/brother/*"
|
||||
@@ -28,12 +27,15 @@ QA_PREBUILT="opt/brother/*"
|
||||
src_install() {
|
||||
local brscan=/opt/brother/scanner/brscan5
|
||||
|
||||
# Drop GTK2 GUI, in favour of cli brscan_cnetconfig
|
||||
rm brscan_gnetconfig || die
|
||||
|
||||
# Install the full Brother scanner tree to /opt
|
||||
insinto ${brscan}
|
||||
doins -r *
|
||||
|
||||
# Mark executables
|
||||
fperms 0755 ${brscan}/{brsaneconfig5,brscan_cnetconfig,brscan_gnetconfig,setupSaneScan5}
|
||||
fperms 0755 ${brscan}/{brsaneconfig5,brscan_cnetconfig,setupSaneScan5}
|
||||
|
||||
# Mark libraries executable
|
||||
find "${ED}"${brscan} -name '*.so*' -exec chmod 0755 {} + || die
|
||||
@@ -70,8 +72,8 @@ src_install() {
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
# HOSTNAME is "BRW" followed by MAC for wi-fi
|
||||
# HOSTNAME is "BRN" followed by MAC for etherent
|
||||
# HOSTNAME is "BRW" followed by MAC for Wi-Fi
|
||||
# HOSTNAME is "BRN" followed by MAC for Ethernet
|
||||
elog "Your scanner's HOSTNAME can be discovered via avahi:"
|
||||
elog " avahi-browse -rt _scanner._tcp"
|
||||
elog "To connect a network scanner using network discovery:"
|
||||
Reference in New Issue
Block a user