summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2022-08-19 18:22:15 +0200
committerGitHub <noreply@github.com>2022-08-19 18:22:15 +0200
commit362cdc5437ffc5d812c6976f914f1d527e72740f (patch)
tree26aea7d7e4b32017d8ba0af45698ed68d880ca93
parente1bce8c577946274e47a2a509de425e1c06880f8 (diff)
downloadspack-362cdc5437ffc5d812c6976f914f1d527e72740f.tar.gz
spack-362cdc5437ffc5d812c6976f914f1d527e72740f.tar.bz2
spack-362cdc5437ffc5d812c6976f914f1d527e72740f.tar.xz
spack-362cdc5437ffc5d812c6976f914f1d527e72740f.zip
pcsclite: add new package (#32129)
-rw-r--r--var/spack/repos/builtin/packages/pcsclite/package.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pcsclite/package.py b/var/spack/repos/builtin/packages/pcsclite/package.py
new file mode 100644
index 0000000000..a1c0d75bf5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pcsclite/package.py
@@ -0,0 +1,50 @@
+# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class Pcsclite(AutotoolsPackage):
+ """PCSC lite project
+
+ Middleware to access a smart card using SCard API (PC/SC)."""
+
+ homepage = "https://pcsclite.apdu.fr"
+ url = "https://pcsclite.apdu.fr/files/pcsc-lite-1.9.8.tar.bz2"
+ git = "https://salsa.debian.org/rousseau/PCSC.git"
+
+ maintainers = ["cessenat"]
+
+ version("master", branch="master")
+ version("1.9.8", sha256="502d80c557ecbee285eb99fe8703eeb667bcfe067577467b50efe3420d1b2289")
+
+ # no libudev/systemd package currently in spack
+ variant("libudev", default=False, description="Build with libudev")
+
+ depends_on("flex", type="build")
+ depends_on("libusb")
+
+ depends_on("autoconf", type="build")
+ depends_on("autoconf-archive", type="build")
+ depends_on("automake", type="build")
+ depends_on("libtool", type="build")
+ depends_on("m4", type="build")
+ depends_on("pkgconfig", type="build")
+
+ def autoreconf(self, spec, prefix):
+ pass
+
+ @when("@master")
+ def autoreconf(self, spec, prefix):
+ bootstrap = Executable("./bootstrap")
+ bootstrap()
+
+ def configure_args(self):
+ args = []
+ # no libudev/systemd package currently in spack
+ args.append("--disable-libsystemd")
+ args.extend(self.enable_or_disable("libudev"))
+ args.append("--with-systemdsystemunitdir=no")
+ return args