net-print/brother-mfc7460dn-bin: New ebuild #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There's already an ebuild for this printer, but it's effectively just a virtual for
net-print/brother-genml1-bin
. Brother offers a different driver that's specific to this model and my new ebuild installs that instead.I'm not 100% sure if
RESTRICT="strip"
is necessary, I just copied it from thenet-print/brother-genml1-bin
ebuild, along with thepkg_setup
andsrc_unpack
functions.The
src_prepare
andsrc_install
functions were written to mimic the behavior of the upstream install script, using thenet-print/brother-genml1-bin
ebuild as a guide to determine where files should be installed.I personally own this printer and can confirm that the ebuild in this PR works for me and the version currently in the overlay does not, even though Brother's documentation says that the genml1 driver should work with this model. (For reference, the printer is connected via network, not USB, and has a static IP. Scanning works fine with the existing
media-gfx/brother-mfc7460dn-bin
ebuild.) I still keyworded my ebuild as testing since it's brand new, but it's already been tested on the actual hardware by me.