summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-16 16:07:15 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-16 16:07:15 +0000
commit4af37e4b30175dbc7ce14511e1574ff83acc863a (patch)
tree8e2b2dddcf896b1997e759c3e80fc33d610ea1c1 /sys-apps/pcsc-tools
parentinitial import with Manuel Rüger wrt bug #216114 (diff)
downloadgentoo-2-4af37e4b30175dbc7ce14511e1574ff83acc863a.tar.gz
gentoo-2-4af37e4b30175dbc7ce14511e1574ff83acc863a.tar.bz2
gentoo-2-4af37e4b30175dbc7ce14511e1574ff83acc863a.zip
Version bump.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/pcsc-tools')
-rw-r--r--sys-apps/pcsc-tools/ChangeLog8
-rw-r--r--sys-apps/pcsc-tools/pcsc-tools-1.4.20.ebuild71
2 files changed, 78 insertions, 1 deletions
diff --git a/sys-apps/pcsc-tools/ChangeLog b/sys-apps/pcsc-tools/ChangeLog
index 8bb5ee01b75d..9eeaeb437fb5 100644
--- a/sys-apps/pcsc-tools/ChangeLog
+++ b/sys-apps/pcsc-tools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/pcsc-tools
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/ChangeLog,v 1.13 2012/05/04 09:17:29 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/ChangeLog,v 1.14 2012/06/16 16:07:15 flameeyes Exp $
+
+*pcsc-tools-1.4.20 (16 Jun 2012)
+
+ 16 Jun 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +pcsc-tools-1.4.20.ebuild:
+ Version bump.
04 May 2012; Jeff Horelick <jdhore@gentoo.org> pcsc-tools-1.4.17-r2.ebuild,
pcsc-tools-1.4.18.ebuild:
diff --git a/sys-apps/pcsc-tools/pcsc-tools-1.4.20.ebuild b/sys-apps/pcsc-tools/pcsc-tools-1.4.20.ebuild
new file mode 100644
index 000000000000..15e499f30f8b
--- /dev/null
+++ b/sys-apps/pcsc-tools/pcsc-tools-1.4.20.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.20.ebuild,v 1.1 2012/06/16 16:07:15 flameeyes Exp $
+
+EAPI="4"
+
+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.gz
+ ${SC_REV:+http://anonscm.debian.org/viewvc/pcsclite/trunk/pcsc-tools/smartcard_list.txt?revision=${SC_REV}&view=co -> ${PN}-smartcard_list-${SC_REV}.txt}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~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-perl )"
+
+src_prepare() {
+ sed -i -e 's:-Wall -O2:${CFLAGS}:g' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ # explicitly only build the pcsc_scan application, or the man
+ # pages will be gzipped first, and then unpacked.
+ emake pcsc_scan
+}
+
+src_install() {
+ # 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
+
+ dodoc README Changelog
+
+ 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
+ if [[ -n ${SC_REV} ]]; then
+ newins "${WORKDIR}"/${PN}-smartcard_list-${SC_REV}.txt smartcard_list.txt
+ else
+ doins smartcard_list.txt
+ fi
+}
+
+pkg_postinst() {
+ use gtk && fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}