app-emulation/libcacard: version bump for #611348
authorTiziano Müller <dev-zero@gentoo.org>
Tue, 14 Aug 2018 15:12:25 +0000 (17:12 +0200)
committerTiziano Müller <dev-zero@gentoo.org>
Tue, 14 Aug 2018 15:14:48 +0000 (17:14 +0200)
adding a new (default-on) USE flag to reduce deps for people wanting
virtual certificate-based smartcards only

Bug: https://bugs.gentoo.org/611348
Package-Manager: Portage-2.3.45, Repoman-2.3.10

app-emulation/libcacard/Manifest
app-emulation/libcacard/libcacard-2.6.0.ebuild [new file with mode: 0644]
app-emulation/libcacard/metadata.xml

index 7db72c25cf65db8c8d62a8219f2418e4281212da..70d0443d1a0ed2f693b96128700cba5e1129663f 100644 (file)
@@ -1,2 +1,3 @@
 DIST libcacard-0.1.2.tar.bz2 276430 BLAKE2B 315d7b0c8dcd3d6b40db4c1586cf149e6681af4e0188bed22cb526d1de79bda4a7b1c5ece894c679c2e7b727b6d05628ba9f8fbc3900503f78f13a029514e15d SHA512 a3622b29fe3a059e069ad6f7da428278a915cec362a6aae3c7cad0d47dfadba67308631435993c0f41cabe92a05874b339518dc503b71b8d86db4976bb6987f6
 DIST libcacard-2.5.1.tar.xz 325692 BLAKE2B f6ce08f08f359789886a63d4554e3492e8cb570e5b476dc8185332a951fe03e7b5577856c4c60523ad673577a3a160490aaf943f401796973b0d205ca740f949 SHA512 88e66745f649f52c3fcc7745834d628e76abc21cef1b300e8750e6c0641f65d0e11224da30fa13dea20d6ebe5d36d7a8680d029e15149fddaea43558216ccc21
+DIST libcacard-2.6.0.tar.xz 364828 BLAKE2B 3a07243abb91dab05d89bf073fabb4a0ef7e820765066a8d87e72086b88cc726de77d1fdc5118e05ed47077d76ae0a57ff591a2e4e8623c3484c6cbf00cd025e SHA512 d6dfe6fe6cd2711bf8f71edc134a7caf459fc2a9c4f664ab2f1c28cc9ee8efe7a2d5a15c4dc735956638176e07e22416cad5e8e926aa7cab3fa95ded853f5982
diff --git a/app-emulation/libcacard/libcacard-2.6.0.ebuild b/app-emulation/libcacard/libcacard-2.6.0.ebuild
new file mode 100644 (file)
index 0000000..e54815f
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="virtual Common Access Card (CAC) library emulator"
+HOMEPAGE="https://www.spice-space.org/"
+SRC_URI="https://www.spice-space.org/download/libcacard/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+passthrough static-libs"
+
+RDEPEND=">=dev-libs/nss-3.13
+       >=dev-libs/glib-2.22
+       passthrough? ( >=sys-apps/pcsc-lite-1.8 )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_configure() {
+       econf \
+               $(use_enable passthrough pcsc) \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       dodoc docs/*.txt
+       use static-libs || find "${ED}"/usr/ -name 'lib*.la' -delete
+}
index 36289aa361ce0ee6db8044c68a4b008f7c186e3c..0fa99318f0a78c46bcaaf1bc94b5b4da049426a0 100644 (file)
@@ -5,4 +5,7 @@
     <email>virtualization@gentoo.org</email>
     <name>Gentoo Virtualization Project</name>
   </maintainer>
+  <use>
+    <flag name="passthrough">Enable smartcard passthrough support via <pkg>sys-apps/pcsc-lite</pkg></flag>
+  </use>
 </pkgmetadata>