summaryrefslogtreecommitdiffstats
path: root/media-gfx/brscan4/brscan4-0.4.1.6.ebuild
blob: 446b1e3fe37bab7397e53e481404f40fb0f54887 (plain) (blame)
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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit versionator

MY_PV=$(replace_version_separator 3 -)
DESCRIPTION="Brother scanner driver for brscan4 models"
HOMEPAGE="http://brother.com"
SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/${PN}-${MY_PV}.amd64.deb"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE=""

RESTRICT="mirror"

DEPEND=""
RDEPEND="${DEPEND}"

S=${WORKDIR}

src_unpack() {
	unpack ${A}
	unpack ./data.tar.gz
	rm -f data.tar.gz
}

src_install() {
	cp -pPR usr etc opt "${D}"/ || die "Installing files failed"
	mkdir "${D}"/etc/sane.d/
	echo brother4 >> "${D}"/etc/sane.d/dll.conf
}

pkg_postinst() {
	elog "You need to be in the scanner group in order to use the scanner"
}