summaryrefslogtreecommitdiff
blob: 5ac7311ce1e1635bc209eb16becee41c2f4f0580 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifd-gempc/ifd-gempc-0.9.1.ebuild,v 1.7 2005/06/21 12:22:06 dragonheart Exp $

inherit eutils

DESCRIPTION="GemCore based PC/SC reader drivers for pcsc-lite"
HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC"
LICENSE="GPL-2 BSD"
KEYWORDS="x86 ~ppc"
SLOT="0"
SRC_URI="mirror://gentoo/${P}.tar.gz"
IUSE=""
DEPEND="sys-apps/pcsc-lite
	>=dev-libs/libusb-0.1.10a"

src_unpack() {
	unpack ${A}
	cd ${S}
	local patch
	for patch in ${FILESDIR}/${P}*.diff ${FILESDIR}/${P}*.patch; do
		epatch ${patch} || die "patch failed"
	done
}

src_compile() {
	emake || die
}

src_install () {
	emake DESTDIR=${D}/usr/lib install || die

	# Below makes this consistant with pcsc-slb-rf72-drv
	mv ${D}/usr/lib/pcsc/drivers ${D}/usr/lib/readers
	rmdir ${D}/usr/lib/pcsc
	dodoc README*
}