1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Libraries and applications to access smartcards"
9 HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki"
10 SRC_URI="https://github.com/OpenSC/OpenSC/releases/download/${PV}/${P}.tar.gz"
14 KEYWORDS="~alpha amd64 arm hppa ia64 ~m68k ppc ppc64 ~s390 ~sh ~sparc x86"
15 IUSE="doc +pcsc-lite secure-messaging openct ctapi readline libressl ssl zlib"
17 RDEPEND="zlib? ( sys-libs/zlib )
18 readline? ( sys-libs/readline:0= )
20 !libressl? ( dev-libs/openssl:0= )
21 libressl? ( >=dev-libs/libressl-2.7.0:0= )
23 openct? ( >=dev-libs/openct-0.5.0 )
24 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
27 app-text/docbook-xsl-stylesheets
31 pcsc-lite? ( !openct !ctapi )
32 openct? ( !pcsc-lite !ctapi )
33 ctapi? ( !pcsc-lite !openct )
34 || ( pcsc-lite openct ctapi )"
37 "${FILESDIR}/${P}-build.patch"
38 "${FILESDIR}/${P}-libressl.patch"
43 --docdir="/usr/share/doc/${PF}" \
44 --htmldir='$(docdir)/html' \
48 $(use_enable openct) \
49 $(use_enable readline) \
51 $(use_enable secure-messaging sm) \
52 $(use_enable ssl openssl) \
53 $(use_enable pcsc-lite pcsc) \
54 $(use_enable openct) \
60 prune_libtool_files --all