1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Libraries and applications to access smartcards"
10 HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16 IUSE="doc +pcsc-lite secure-messaging openct ctapi readline ssl zlib"
18 RDEPEND="zlib? ( sys-libs/zlib )
19 readline? ( sys-libs/readline:0= )
20 ssl? ( dev-libs/openssl:0= )
21 openct? ( >=dev-libs/openct-0.5.0 )
22 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
25 app-text/docbook-xsl-stylesheets
29 pcsc-lite? ( !openct !ctapi )
30 openct? ( !pcsc-lite !ctapi )
31 ctapi? ( !pcsc-lite !openct )
32 || ( pcsc-lite openct ctapi )"
36 --docdir="/usr/share/doc/${PF}" \
37 --htmldir='$(docdir)/html' \
40 $(use_enable openct) \
41 $(use_enable readline) \
43 $(use_enable secure-messaging sm) \
44 $(use_enable ssl openssl) \
45 $(use_enable pcsc-lite pcsc) \
46 $(use_enable openct) \
52 find "${ED}"/usr -name '*.la' -delete