summaryrefslogtreecommitdiff
blob: b93b30f55dc9841b6d25f56f74e442ea36be92b3 (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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit toolchain-funcs udev

DESCRIPTION="Omnikey CardMan 3x21 PC/SC CCID driver"
HOMEPAGE="http://www.hidglobal.com/drivers"
SRC_URI="amd64? ( ${PN}_lnx_x64-${PV}.tar.gz )
	x86? ( ${PN}_lnx_i686-${PV}.tar.gz )"

LICENSE="HID_OK_Drivers_EULA"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="fetch bindist"

RDEPEND="sys-apps/pcsc-lite
	virtual/libusb:1"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

pkg_nofetch() {
	einfo "Please download ${A}"
	einfo "from ${HOMEPAGE}"
	einfo "and place it in ${DISTDIR}"
}

pkg_setup() {
	MY_P="${PN}_lnx_$(usex amd64 x64 i686)-${PV}"
	S="${WORKDIR}/${MY_P}"
}

src_install () {
	insinto "$("$(tc-getPKG_CONFIG)" --variable=usbdropdir libpcsclite)"
	doins -r "${MY_P}.bundle"
	udev_dorules "${FILESDIR}"/92-pcsc-${PN}.rules
	dodoc README
}