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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit rpm
DESCRIPTION="Cupswrapper driver for Brother HL4040CN"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/${P}-1.i386.rpm"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
# Build-time dependencies, such as
# ssl? ( >=dev-libs/openssl-0.9.6b )
# >=dev-lang/perl-5.6.1-r1
# It is advisable to use the >= syntax show above, to reflect what you
# had installed on your system when you tested the package. Then
# other users hopefully won't be caught without the right version of
# a dependency.
# Run-time dependencies. Must be defined to whatever this depends on to run.
# The below is valid if the same run-time depends are required to compile.
RDEPEND="net-print/cups"
# Source directory; the dir where the sources can be found (automatically
# unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P}
# If you don't need to change it, leave the S= line out of the ebuild
# to keep it tidy.
S="${WORKDIR}/${P}-1"
#AVAILABLE_MODELS="dcp9040cn dcp9042cdn dcp9045cdn hl4040cdn hl4040cn hl4040cnj
#hl4050cdn hl4070cdw mfc9440cn mfc9450cdn mfc9640cw mfc9840cdw"
src_configure() {
# Don't do anything
sed -i -b -e "s,/usr/local/\(Brother[^\x00]*\),/usr/lib/\1\x00\x00,g" \
usr/bin/brprintconf_hl4040cn ||die "Relocate resource dir"
sed -i -b -e "s,/usr/local/Brother,/usr/lib/Brother,g" usr/local/Brother/Printer/hl4040cn/inf/setupPrintcapij
sed -i -b -e "s,/usr/local/Brother,/usr/lib/Brother,g" usr/local/Brother/Printer/hl4040cn/lpd/filterhl4040cn
}
src_compile() {
#Compile the config app
:
}
src_install() {
dobin usr/bin/brprintconf_hl4040cn ||die "Binary not found"
insinto /usr/lib/Brother/Printer/hl4040cn
doins -r usr/local/Brother/Printer/hl4040cn/inf ||die "data not found"
exeinto /usr/lib/Brother/Printer/hl4040cn/lpd
doexe usr/local/Brother/Printer/hl4040cn/lpd/{brhl4040cnfilter,psconvertij2,filterhl4040cn} ||die "Executables not found"
}
|