app-crypt/virtualsmartcard: New package
authorMichał Górny <mgorny@gentoo.org>
Fri, 9 Aug 2019 22:12:24 +0000 (00:12 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 9 Aug 2019 22:42:00 +0000 (00:42 +0200)
Add a new package: virtual smart card emulator that can be used to use
Remote Smart Card Reader (for Android's NFC reader) with pcsc-lite.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-crypt/virtualsmartcard/Manifest [new file with mode: 0644]
app-crypt/virtualsmartcard/metadata.xml [new file with mode: 0644]
app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild [new file with mode: 0644]

diff --git a/app-crypt/virtualsmartcard/Manifest b/app-crypt/virtualsmartcard/Manifest
new file mode 100644 (file)
index 0000000..dc8487e
--- /dev/null
@@ -0,0 +1 @@
+DIST virtualsmartcard-0.7.tar.gz 553122 BLAKE2B 5f7ceab19587808f2cabee87f200825d81043724cfb51ddc4ea2b86ec4df1dfae3e7e77b769b9f1e691e125ee2c7bbd6d83da79f1c5215308174f58f6b006cf0 SHA512 c6f357c26dbfa2859694f53b07bc621bf0fce0115a06db9c181dc9ea127eb32191b9c98472b27cca73bc747a5cc85d56ec19b06aa50b91d13a939308a46cac74
diff --git a/app-crypt/virtualsmartcard/metadata.xml b/app-crypt/virtualsmartcard/metadata.xml
new file mode 100644 (file)
index 0000000..0319eec
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mgorny@gentoo.org</email>
+               <name>Michał Górny</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild b/app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild
new file mode 100644 (file)
index 0000000..bdca2e5
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="Smart card emulator, can be used with Remote Smart Card Reader"
+HOMEPAGE="https://frankmorgner.github.io/vsmartcard/"
+SRC_URI="https://github.com/frankmorgner/vsmartcard/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       media-gfx/qrencode:=
+       sys-apps/pcsc-lite"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       sys-apps/help2man
+       virtual/pkgconfig"
+
+src_configure() {
+       local myconf=(
+               # workaround buggy prefix logic
+               --enable-serialconfdir=$($(tc-getPKG_CONFIG) libpcsclite \
+                       --variable=serialconfdir)
+               --enable-serialdropdir=$($(tc-getPKG_CONFIG) libpcsclite \
+                       --variable=usbdropdir)/serial
+       )
+
+       econf "${myconf[@]}"
+}