Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/pcsc-tools: pcsc-tools-1.4.16.ebuild ChangeLog
Date: Wed, 30 Jun 2010 01:39:03
Message-Id: 20100630013857.4F9BB2C621@corvid.gentoo.org
1 flameeyes 10/06/30 01:38:57
2
3 Modified: pcsc-tools-1.4.16.ebuild ChangeLog
4 Log:
5 Multiple fixes, partly for QA: fix install with USE=-gtk; avoid patching, both for USE=-gtk and for install paths, by not using the Makefile for install; avoid building the all target (simply build pcsc_scan so that the man pages are not compressed before portage gets to them); don't change the files in src_compile, but still respect the CFLAGS settings; respect CC settings; use emake; update the smartcard_list.txt as we were installing a very old copy; properly move the perl dependencies to runtime rather than build-time and run-time (ccid dependency still sounds shady, but nevermind that for now); drop debug USE flag that simply set a pointless -g; only rebuild mime database when gtk is used (during install; always on remove).
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.2 sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild?r1=1.1&r2=1.2
14
15 Index: pcsc-tools-1.4.16.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- pcsc-tools-1.4.16.ebuild 29 Jun 2010 00:29:57 -0000 1.1
22 +++ pcsc-tools-1.4.16.ebuild 30 Jun 2010 01:38:56 -0000 1.2
23 @@ -1,65 +1,68 @@
24 # Copyright 1999-2010 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild,v 1.1 2010/06/29 00:29:57 arfrever Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/pcsc-tools-1.4.16.ebuild,v 1.2 2010/06/30 01:38:56 flameeyes Exp $
28
29 EAPI="3"
30
31 -inherit eutils fdo-mime multilib
32 +SMARTCARD_DATE=20100630
33 +
34 +inherit eutils fdo-mime multilib toolchain-funcs
35
36 DESCRIPTION="PC/SC Architecture smartcard tools"
37 HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"
38 SRC_URI="http://ludovic.rousseau.free.fr/softwares/${PN}/${P}.tar.gz
39 - mirror://gentoo/smartcard_list.txt"
40 + mirror://gentoo/${PN}-smartcard_list-${SMARTCARD_DATE}.txt.bz2"
41
42 LICENSE="GPL-2"
43 SLOT="0"
44 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
45 ## ~arm waiting for keywords
46 -IUSE="debug gtk usb"
47 +IUSE="gtk usb"
48
49 -RDEPEND="usb? ( app-crypt/ccid )
50 - >=sys-apps/pcsc-lite-1.4.14
51 - dev-perl/pcsc-perl
52 - gtk? ( dev-perl/gtk2-perl )"
53 +RDEPEND=">=sys-apps/pcsc-lite-1.4.14"
54
55 DEPEND="${RDEPEND}
56 dev-util/pkgconfig"
57 +RDEPEND="${RDEPEND}
58 + usb? ( app-crypt/ccid )
59 + dev-perl/pcsc-perl
60 + gtk? ( dev-perl/gtk2-perl )"
61
62 -src_compile() {
63 - if ! use gtk; then
64 - epatch "${FILESDIR}"/${PN}_no-gtk.patch
65 - fi
66 -
67 - if use debug; then
68 - sed -i -e "s:-Wall -O2:${CFLAGS}:g" Makefile
69 - else
70 - sed -i -e "s:-Wall -O2 -g:${CFLAGS}:g" Makefile
71 - fi
72 -
73 - sed -i -e "s:/usr/local:/usr:" Makefile
74 +src_prepare() {
75 + sed -i -e 's:-Wall -O2:${CFLAGS}:g' Makefile
76 +}
77
78 - make DESTDIR="${D}usr" all || die
79 +src_compile() {
80 + tc-export CC
81 + # explicitly only build the pcsc_scan application, or the man
82 + # pages will be gzipped first, and then unpacked.
83 + emake pcsc_scan || die
84 }
85
86 src_install() {
87 - make DESTDIR="${D}usr" install || die
88 + # install manually, makes it much easier since the Makefile
89 + # requires fiddling with
90 + dobin ATR_analysis scriptor pcsc_scan || die
91 + doman pcsc_scan.1 scriptor.1p ATR_analysis.1p || die
92
93 - # prepalldocs isn't supported any more?
94 - dodoc README Changelog
95 + dodoc README Changelog || die
96
97 if use gtk; then
98 - doicon "${FILESDIR}"/smartcard.svg
99 - domenu gscriptor.desktop
100 - dosed "s:Categories=Utility;GTK;:Icon=smartcard.svg\\nCategories=System;:g" \
101 - /usr/share/applications/gscriptor.desktop
102 + doicon "${FILESDIR}"/smartcard.svg
103 + domenu gscriptor.desktop
104 + dosed "s:Categories=Utility;GTK;:Icon=smartcard.svg\\nCategories=System;:g" \
105 + /usr/share/applications/gscriptor.desktop
106 +
107 + dobin gscriptor || die
108 + doman gscriptor.1p || die
109 fi
110
111 insinto /usr/share/pcsc
112 - doins "${DISTDIR}"/smartcard_list.txt
113 + newins "${WORKDIR}"/${PN}-smartcard_list-${SMARTCARD_DATE}.txt smartcard_list.txt || die
114 }
115
116 pkg_postinst() {
117 - fdo-mime_desktop_database_update
118 + use gtk && fdo-mime_desktop_database_update
119
120 elog ""
121 elog "If your card reader isn't recognized, you should make sure you"
122
123
124
125 1.7 sys-apps/pcsc-tools/ChangeLog
126
127 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/ChangeLog?rev=1.7&view=markup
128 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/ChangeLog?rev=1.7&content-type=text/plain
129 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-tools/ChangeLog?r1=1.6&r2=1.7
130
131 Index: ChangeLog
132 ===================================================================
133 RCS file: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/ChangeLog,v
134 retrieving revision 1.6
135 retrieving revision 1.7
136 diff -u -r1.6 -r1.7
137 --- ChangeLog 29 Jun 2010 00:29:57 -0000 1.6
138 +++ ChangeLog 30 Jun 2010 01:38:56 -0000 1.7
139 @@ -1,6 +1,20 @@
140 # ChangeLog for sys-apps/pcsc-tools
141 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
142 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/ChangeLog,v 1.6 2010/06/29 00:29:57 arfrever Exp $
143 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-tools/ChangeLog,v 1.7 2010/06/30 01:38:56 flameeyes Exp $
144 +
145 + 30 Jun 2010; Diego E. Pettenò <flameeyes@g.o>
146 + pcsc-tools-1.4.16.ebuild:
147 + Multiple fixes, partly for QA: fix install with USE=-gtk; avoid patching,
148 + both for USE=-gtk and for install paths, by not using the Makefile for
149 + install; avoid building the all target (simply build pcsc_scan so that the
150 + man pages are not compressed before portage gets to them); don't change
151 + the files in src_compile, but still respect the CFLAGS settings; respect
152 + CC settings; use emake; update the smartcard_list.txt as we were
153 + installing a very old copy; properly move the perl dependencies to runtime
154 + rather than build-time and run-time (ccid dependency still sounds shady,
155 + but nevermind that for now); drop debug USE flag that simply set a
156 + pointless -g; only rebuild mime database when gtk is used (during install;
157 + always on remove).
158
159 *pcsc-tools-1.4.16 (29 Jun 2010)