blob: 085b257ee649c5db937fdd7c75ea4e01132b19f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit rpm
MODEL="${PN#*-}"
PV_LPR="3.0.1-1"
PV_CUPSWRAPPER="3.0.0-1"
DESCRIPTION="Brother printer driver for DCP-J925DW"
HOMEPAGE="http://www.brother.com/"
SRC_URI="http://download.brother.com/welcome/dlf005614/${MODEL}lpr-${PV_LPR}.i386.rpm http://download.brother.com/welcome/dlf005616/${MODEL}cupswrapper-${PV_CUPSWRAPPER}.i386.rpm"
LICENSE="GPL-2+ Brother-lpr no-source-code"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="metric"
RESTRICT="strip"
RDEPEND="net-print/cups"
S="${WORKDIR}"
src_prepare() {
if use metric; then
sed -i "/^PaperType/s/Letter/A4/" \
opt/brother/Printers/${MODEL}/inf/br${MODEL}rc || die
fi
}
src_install() {
cp -r opt "${D}" || die
exeinto /opt/brother/Printers/${MODEL}/bin
doexe usr/bin/brprintconf_${MODEL}
dosym ../../../../opt/brother/Printers/${MODEL}/lpd/filter${MODEL} \
/usr/libexec/cups/filter/brother_lpdwrapper_${MODEL}
dosym ../../../../opt/brother/Printers/${MODEL}/cupswrapper/brother_${MODEL}_printer_en.ppd \
/usr/share/cups/model/brother_${MODEL}_printer_en.ppd
dosym ../../opt/brother/Printers/${MODEL}/bin/brprintconf_${MODEL} \
/usr/sbin/brprintconf_${MODEL}
}
|