summaryrefslogtreecommitdiff
path: root/app-crypt/acos5/acos5-9999.ebuild
blob: 8dec7553838d03673f8ebecd9d14f7aa87ffa20d (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

CRATES="cfg-if-1.0.0
	libc-0.2.107
	num-integer-0.1.44
	pkg-config-0.3.22
	num-traits-0.2.14
	autocfg-1.0.1
	libloading-0.7.2
	winapi-0.3.9
	winapi-i686-pc-windows-gnu-0.4.0
	winapi-x86_64-pc-windows-gnu-0.4.0"

inherit eutils cargo git-r3

DESCRIPTION="Driver for Advanced Card Systems (ACS) ACOS5 Smart Card"
HOMEPAGE="https://github.com/carblue/acos5"
SRC_URI="$(cargo_crate_uris)"
EGIT_REPO_URI="https://github.com/carblue/acos5.git"

LICENSE="LGPL-2.1"

SLOT="0"

KEYWORDS="~amd64 ~x86"

DEPEND="dev-libs/opensc
	dev-libs/openssl
	sys-apps/pcsc-lite
	dev-libs/libtasn1"

RDEPEND="${DEPEND}
	sys-apps/pcsc-tools"

src_unpack() {
	git-r3_fetch
	git-r3_checkout
	cargo_src_unpack
}

src_configure() {
	cargo_src_configure
}

src_compile() {
	cargo_src_compile
}

src_install() {	
	dolib.so "${S}/target/release/libacos5_pkcs15.so"
	dolib.so "${S}/target/release/libacos5.so"
	insinto /usr/share/opensc
	doins "${S}/acos5_pkcs15/acos5_external.profile"
	}