1 |
commit: aa7976c61b99b598e40d223bb995ce04b6b124b1 |
2 |
Author: Diego Elio Pettenò <flameeyes <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 27 12:34:28 2017 +0000 |
4 |
Commit: Diego Elio Pettenò <flameeyes <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 12:34:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa7976c6 |
7 |
|
8 |
New app-crypt/ccid version. |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
11 |
|
12 |
app-crypt/ccid/Manifest | 1 + |
13 |
app-crypt/ccid/ccid-1.4.27.ebuild | 63 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/ccid/Manifest b/app-crypt/ccid/Manifest |
17 |
index 66607da59d2..eba9dc20362 100644 |
18 |
--- a/app-crypt/ccid/Manifest |
19 |
+++ b/app-crypt/ccid/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ccid-1.4.26.tar.bz2 628038 SHA256 3267bf708ab780c02f01f6241b7c7277cb892d30fd1179a9926a8cc0ca40be2f SHA512 4a2e5e9412f2aa4870e14114e54da96fd8b3418ea6d3a236b83e19d6349adb20a94ef7f48628c108f8459f008c10b0606bbf4d797ae4be9183e1acde032c618c WHIRLPOOL 7118e57ca9a394de3b37166bb2c4f4d398fdf744caa0803ef9f1470db7020d999f795ca816a5a70db2b59b64db7225df2dd9366fd329ca34d52b5e4611fd5d21 |
22 |
+DIST ccid-1.4.27.tar.bz2 632817 SHA256 a660e269606986cb94840ad5ba802ffb0cd23dd12b98f69a35035e0deb9dd137 SHA512 14fb5d9878ed36de912d860d8537758170781f225957a99d5fed447dcfba0cba3133f78d2cc4bc7db60d3527399f70e4a7d1d1f8348fb50d1bcfc75820a23522 WHIRLPOOL 062ebe1be40ad09865db642c763cf32cc471b860df66072fe5e98c4b3b5a5efced7b2aeba1001a635231adaf9569e3e4fc2746ad9ebaa921b62302a0ebcf2273 |
23 |
|
24 |
diff --git a/app-crypt/ccid/ccid-1.4.27.ebuild b/app-crypt/ccid/ccid-1.4.27.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..5ff08306450 |
27 |
--- /dev/null |
28 |
+++ b/app-crypt/ccid/ccid-1.4.27.ebuild |
29 |
@@ -0,0 +1,63 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+STUPID_NUM="4218" |
36 |
+ |
37 |
+inherit toolchain-funcs udev |
38 |
+ |
39 |
+DESCRIPTION="CCID free software driver" |
40 |
+HOMEPAGE="http://pcsclite.alioth.debian.org/ccid.html" |
41 |
+SRC_URI="http://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
46 |
+IUSE="twinserial kobil-midentity +usb" |
47 |
+ |
48 |
+RDEPEND=">=sys-apps/pcsc-lite-1.8.3 |
49 |
+ usb? ( virtual/libusb:1 )" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ kernel_linux? ( virtual/pkgconfig )" |
52 |
+ |
53 |
+DOCS=( README AUTHORS ) |
54 |
+ |
55 |
+src_configure() { |
56 |
+ econf \ |
57 |
+ LEX=: \ |
58 |
+ $(use_enable twinserial) \ |
59 |
+ $(use_enable usb libusb) |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ default |
64 |
+ use kobil-midentity && emake -C contrib/Kobil_mIDentity_switch |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
69 |
+ |
70 |
+ if use kobil-midentity; then |
71 |
+ dosbin contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch |
72 |
+ doman contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8 |
73 |
+ fi |
74 |
+ |
75 |
+ if use kernel_linux; then |
76 |
+ # note: for eudev support, rules probably will always need to be |
77 |
+ # installed to /usr |
78 |
+ |
79 |
+ # ccid >=1.4.11 version changed the rules drastically in a minor |
80 |
+ # release to no longer use the pcscd group. Using the old ones in |
81 |
+ # the mean time. |
82 |
+ udev_newrules "${FILESDIR}"/92_pcscd_ccid-2.rules 92-pcsc-ccid.rules |
83 |
+ |
84 |
+ # disable Kobil_mIDentity_switch udev rule with USE=-kobil-midentity |
85 |
+ if ! use kobil-midentity; then |
86 |
+ sed \ |
87 |
+ -e '/Kobil_mIDentity_switch/s/^/#/' \ |
88 |
+ -i "${D}/$(get_udevdir)"/rules.d/92-pcsc-ccid.rules || die |
89 |
+ fi |
90 |
+ |
91 |
+ fi |
92 |
+} |