Skip to content

Commit

Permalink
[#69] add support for mfcl8690cdw
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-langenmaier committed Jun 9, 2019
1 parent 015e232 commit bff5dad
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

DESCRIPTION="Scanner driver for Brother MFC-L8690CDW (brscan4)"
HOMEPAGE="http://support.brother.com"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="media-gfx/brother-scan4-bin"

pkg_postinst() {
einfo "Configure scanner using one of the following commands:"
einfo "- using hostname: /usr/local/Brother/sane/brsaneconfig4 -a name=MFC-L8690CDW model=MFC-L8690CDW nodename=<hostname>"
einfo "- using IP address: /usr/local/Brother/sane/brsaneconfig4 -a name=MFC-L8690CDW model=MFC-L8690CDW ip=<IP address>"
}
8 changes: 8 additions & 0 deletions media-gfx/brother-mfcl8690cdw-bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!--
# $Id$
-->
<pkgmetadata>
<longdescription>Scanner driver for Brother MFC-L8690CDW (brscan4)</longdescription>
</pkgmetadata>
2 changes: 2 additions & 0 deletions net-print/brother-mfcl8690cdw-bin/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST mfcl8690cdwcupswrapper-1.4.0-0.i386.rpm 16302 BLAKE2B 03bee1df22e054acd15cb1473a4de725770a1efe39203439fb8cac1e042b546917702b8302772b2fb2b8c99bd0d757b1096127a61be00ea9813c05692d90bfe5 SHA512 15d0e0b78d08c684c245404c4f61615bcd4426f807698829383bb835e9064b14479120fe3ea9ee6aef9930645ac32fb6782eceb1766bd45e62a7fb69e94d0b59
DIST mfcl8690cdwlpr-1.3.0-0.i386.rpm 704048 BLAKE2B 50b4038b9befc91a31953f1d61a1f515b7a97c8430740d360c2aaaff6db737b1582a82cd8f6f73bba7279a170614585b2b3064fb63da52122cade1c202b327b1 SHA512 d2df0988320522ec67b622ca71b6630a18cebffa91f5ff62bbe0c6244efdbb6b15a998a554f8ea2ab06bb1111327c7eee7aadf903bffa449414c65a18994edfb
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

API="7"
inherit rpm

PRINTER_MODEL=${PN#*-}
PRINTER_MODEL=${PRINTER_MODEL%-*}

DESCRIPTION="Brother printer drive for ${PRINTER_MODEL}"
HOMEPAGE="https://support.brother.com/g/b/downloadhowto.aspx?c=us&lang=en&prod=${PRINTER_MODEL}_us_eu_as"
SRC_URI="
https://download.brother.com/welcome/dlf103224/${PRINTER_MODEL}cupswrapper-1.4.0-0.i386.rpm
https://download.brother.com/welcome/dlf103215/${PRINTER_MODEL}lpr-1.3.0-0.i386.rpm
"

RESTRICT="mirror strip"

LICENSE="brother-eula"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="scanner"

DEPEND=">=net-print/cups-2.2.7"
RDEPEND="
${DEPEND}
scanner? ( >=media-gfx/brother-mfcl8690cdw-bin-1.0 )
"

S="${WORKDIR}"

src_unpack() {
rpm_unpack ${A}
}

src_install() {
has_multilib_profile && ABI=x86

insinto opt/brother/Printers/${PRINTER_MODEL}
doins -r "${S}"/opt/brother/Printers/${PRINTER_MODEL}/inf

exeinto opt/brother/Printers/${PRINTER_MODEL}/lpd
doexe "${S}"/opt/brother/Printers/${PRINTER_MODEL}/lpd/*

# Printer configuration utility
dobin "${S}"/usr/bin/brprintconf_${PRINTER_MODEL}

# Install wrapping tools for CUPS
exeinto opt/brother/Printers/${PRINTER_MODEL}/cupswrapper
doexe "${S}"/opt/brother/Printers/${PRINTER_MODEL}/cupswrapper/cupswrapper${PRINTER_MODEL}

exeinto opt/brother/Printers/${PRINTER_MODEL}/cupswrapper
doexe "${S}"/opt/brother/Printers/${PRINTER_MODEL}/cupswrapper/brother_lpdwrapper_${PRINTER_MODEL}

insinto usr/share/ppd/Brother
doins "${S}"/opt/brother/Printers/${PRINTER_MODEL}/cupswrapper/brother_${PRINTER_MODEL}_printer_en.ppd
}
5 changes: 5 additions & 0 deletions net-print/brother-mfcl8690cdw-bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>Brother printer driver for mfcl8690cdw</longdescription>
</pkgmetadata>

0 comments on commit bff5dad

Please sign in to comment.