summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-01 04:58:06 +0100
committerSam James <sam@gentoo.org>2022-10-01 04:58:39 +0100
commit13d54de2c21631944b46429c9aa3131cd8ad85ec (patch)
treed38913ee883cbdab63dcaefaa650ca13d8c37758 /sys-apps
parentapp-accessibility/brltty: add github upstream metadata (diff)
downloadgentoo-13d54de2c21631944b46429c9aa3131cd8ad85ec.tar.gz
gentoo-13d54de2c21631944b46429c9aa3131cd8ad85ec.tar.bz2
gentoo-13d54de2c21631944b46429c9aa3131cd8ad85ec.zip
sys-apps/ifd-gempc: add 1.0.8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/ifd-gempc/Manifest1
-rw-r--r--sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/sys-apps/ifd-gempc/Manifest b/sys-apps/ifd-gempc/Manifest
index b2fd1b53cd55..50aed48b4f56 100644
--- a/sys-apps/ifd-gempc/Manifest
+++ b/sys-apps/ifd-gempc/Manifest
@@ -1 +1,2 @@
DIST ifd-gempc-1.0.7.tar.gz 76712 BLAKE2B 5ae734ff97865a66d993fc67a2ee5537875773b8275a2125c8853ddf0006cea61f20cd38571be44126cb2cfeb16a6778d6917fd056616e24997a3aed85226e76 SHA512 dde143bd2ca46cca91f979ddbb300f0b5fea37ecfa0c67058d887fcd56edf58adecce85dd05c7af25329fdfcfdf5bf7a52d4dc24061231a234180aad3df44a93
+DIST ifd-gempc-1.0.8.tar.gz 75298 BLAKE2B 6a371a554751819bbd971dc9273fee0bfce4ef8d6fa0a8c261c6944f4689d032102630b3f103c557156de64bb3cf8f5035bdf6a141dcd1e8dd271c60a249de53 SHA512 e3410877120482c80695af832d27ea2fa6697106c3264c57c32fb46b556573a381a699b8a11307c4597e5cfb97f7bbdfc5662acd87a129d44e8adc979d507f4a
diff --git a/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild b/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild
new file mode 100644
index 000000000000..a9870055183d
--- /dev/null
+++ b/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="GemCore based PC/SC reader drivers for pcsc-lite"
+HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC"
+SRC_URI="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/${P}.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="
+ >=sys-apps/pcsc-lite-1.2.9_beta7
+ virtual/libusb:0
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( README README.410 README.430 )
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake CC="$(tc-getCC)" DESTDIR="${D}" install
+ einstalldocs
+
+ local pcscdir="$($(tc-getPKG_CONFIG) --variable=usbdropdir libpcsclite)"
+ local conf="/etc/reader.conf.d/${PN}.conf"
+
+ insinto "$(dirname "${conf}")"
+ newins "${FILESDIR}/reader.conf" "$(basename "${conf}")"
+ sed -e "s:%PCSC_DRIVERS_DIR%:${pcscdir}:g" -e "s:%libGemPC410%:libGemPC410.so.${PV}:g" -i "${D}${conf}"
+}
+
+pkg_postinst() {
+ elog "NOTICE:"
+ elog "1. If you are using GemPC410, modify ${conf}"
+ elog "2. Run update-reader.conf, yes this is a command..."
+ elog "3. Restart pcscd"
+}
+
+pkg_postrm() {
+ #
+ # Without this, pcscd will not start next time.
+ #
+ local conf="/etc/reader.conf.d/${PN}.conf"
+ if ! [[ -f "${conf}" && -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g' | head -n 1)" ]]; then
+ [[ -f "${conf}" ]] && rm "${conf}"
+ update-reader.conf
+ elog "NOTICE:"
+ elog "You need to restart pcscd"
+ fi
+}