summaryrefslogtreecommitdiff
blob: 21af65381d696df23d3a3bc4a75e5cfa8a54cc15 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Epson EPL-5x00L/EPL-6x00L Printer Driver for ghostscript"
HOMEPAGE="http://sourceforge.net/projects/epsonepl"
SRC_URI="mirror://sourceforge/epsonepl/${P}.tgz"

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

DEPEND="net-print/cups
	app-text/ghostscript-gpl
	net-print/foomatic-filters
	usb? ( virtual/libusb )"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-destdir.patch"
}

src_compile() {
	econf $(use_with usb libusb)
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	insinto /usr/share/ppd/
	doins foomatic_PPDs/* || die "doins failed"

	dodoc ChangeLog FAQ README || die "dodoc failed"
}