sys-apps/pcsc-tools: version bump

Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Alon Bar-Lev
2018-09-01 10:06:55 +03:00
parent 4a33951efb
commit d987d29b88
2 changed files with 70 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pcsc-tools-1.4.27.tar.gz 192342 BLAKE2B c17fa151afd6064bc15dda156248799bffaa08118b65fe57690a7a6e4697e0f44c31abc7e1b03f3eb6a3c551bec86b853b944b693f5b9242d649563fb64a2cd4 SHA512 f4532e6deab799c96fb344a8b3d07768b4c13d8800a486cf0bfe6200794e2b49dcd1c761dec86dca3c350d88577ec2bba420298c693449fddeeff93672449836
DIST pcsc-tools-1.5.3.tar.bz2 267564 BLAKE2B b060e6fc923c6274d38c364325c367f793acf2979f2410c92857cce7483ebbb59db07657bc27be6d5a799f7f85da45782c4f1a9bbf7c450b43d533dce54755e7 SHA512 da5b362b7a3a6d47dd309ff217e6dd8af29298501db5e898ecd68762020ce62fc982132205f9bbee159a7d7eac549fdb8f25395416bb52bc0d0c888a5b0fa1a0

View File

@@ -0,0 +1,69 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils fdo-mime multilib toolchain-funcs
DESCRIPTION="PC/SC Architecture smartcard tools"
HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"
SRC_URI="http://ludovic.rousseau.free.fr/softwares/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
IUSE="gtk network-cron"
RDEPEND=">=sys-apps/pcsc-lite-1.4.14"
DEPEND="${RDEPEND}
virtual/pkgconfig"
RDEPEND="${RDEPEND}
dev-perl/pcsc-perl
gtk? ( dev-perl/Gtk2 )"
DOCS=(
README Changelog
)
src_prepare() {
default
sed -i -e 's:-Wall -O2:$(CFLAGS):g' Makefile
}
src_compile() {
# explicitly only build the pcsc_scan application, or the man
# pages will be gzipped first, and then unpacked.
emake pcsc_scan CC=$(tc-getCC)
}
src_install() {
einstalldocs
# install manually, makes it much easier since the Makefile
# requires fiddling with
dobin ATR_analysis scriptor pcsc_scan
doman pcsc_scan.1 scriptor.1p ATR_analysis.1p
if use gtk; then
domenu gscriptor.desktop
dobin gscriptor
doman gscriptor.1p
fi
if use network-cron ; then
exeinto /etc/cron.monthly
newexe "${FILESDIR}"/smartcard.cron update-smartcard_list
fi
insinto /usr/share/pcsc
doins smartcard_list.txt
}
pkg_postinst() {
use gtk && fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}