49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit rpm
|
||
|
|
||
|
DESCRIPTION="Brother printer driver for MFC-9340CDW"
|
||
|
|
||
|
HOMEPAGE="http://support.brother.com"
|
||
|
|
||
|
SRC_URI="http://download.brother.com/welcome/dlf007026/mfc9340cdwlpr-1.1.2-1.i386.rpm
|
||
|
http://download.brother.com/welcome/dlf007028/mfc9340cdwcupswrapper-1.1.2-1.i386.rpm"
|
||
|
|
||
|
LICENSE="brother-eula"
|
||
|
|
||
|
SLOT="0"
|
||
|
|
||
|
KEYWORDS="amd64"
|
||
|
|
||
|
IUSE=""
|
||
|
|
||
|
RESTRICT="mirror strip"
|
||
|
|
||
|
DEPEND="net-print/cups"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S=${WORKDIR}
|
||
|
|
||
|
src_unpack() {
|
||
|
rpm_unpack ${A}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
has_multilib_profile && ABI=x86
|
||
|
|
||
|
dosbin "${WORKDIR}/usr/bin/brprintconf_mfc9340cdw"
|
||
|
|
||
|
cp -r usr "${D}" || die
|
||
|
cp -r opt "${D}" || die
|
||
|
|
||
|
|
||
|
mkdir -p ${D}/usr/libexec/cups/filter || die
|
||
|
( cd ${D}/usr/libexec/cups/filter/ && ln -s ../../../../opt/brother/Printers/mfc9340cdw/lpd/filtermfc9340cdw brother_lpdwrapper_mfc9340cdw ) || die
|
||
|
|
||
|
mkdir -p ${D}/usr/share/cups/model || die
|
||
|
( cd ${D}/usr/share/cups/model && ln -s ../../../../opt/brother/Printers/mfc9340cdw/cupswrapper/brother_mfc9340cdw_printer_en.ppd ) || die
|
||
|
}
|