1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="PKCS#11 helper library"
7 HOMEPAGE="https://github.com/OpenSC/pkcs11-helper"
8 SRC_URI="https://github.com/OpenSC/${PN}/releases/download/${P}/${P}.tar.bz2"
10 LICENSE="|| ( BSD GPL-2 )"
12 KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86"
13 IUSE="bindist doc gnutls libressl nss static-libs"
16 !libressl? ( >=dev-libs/openssl-0.9.7:0=[bindist=] )
17 libressl? ( dev-libs/libressl )
18 gnutls? ( >=net-libs/gnutls-1.4.4 )
19 nss? ( dev-libs/nss )"
21 BDEPEND="virtual/pkgconfig
22 doc? ( >=app-doc/doxygen-1.4.7 )"
25 "${FILESDIR}/${P}-build.patch"
30 --disable-crypto-engine-polarssl \
31 --disable-crypto-engine-mbedtls \
33 $(use_enable gnutls crypto-engine-gnutls) \
34 $(use_enable nss crypto-engine-nss) \
35 $(use_enable static-libs static)
40 find "${D}" -name '*.la' -delete || die