blob: 20d7ed50e702c5e2acf71b8b80a9f30f0953441a [file] [log] [blame]
# Copyright 2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.2.8.ebuild,v 1.1 2009/06/28 10:48:58 arfrever Exp $
EAPI="2"
CROS_WORKON_COMMIT="379b673903399be717fe873629b3f1233e92f15b"
CROS_WORKON_TREE="20476d285dd321c15e3f4f31c7bed2600be8a6b6"
inherit cros-workon autotools eutils multilib toolchain-funcs
DESCRIPTION="PKCS#11 provider for IBM cryptographic hardware"
HOMEPAGE="http://sourceforge.net/projects/opencryptoki"
LICENSE="CPL-0.5"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE="tpmtok"
CROS_WORKON_PROJECT="chromiumos/third_party/opencryptoki"
RDEPEND="tpmtok? ( app-crypt/trousers )
dev-libs/openssl"
DEPEND="${RDEPEND}"
src_prepare() {
eautoreconf
}
src_configure() {
econf $(use_enable tpmtok)
}
src_install() {
emake install DESTDIR="${D}" || die "emake install failed"
# tpmtoken_* binaries expect to find the libraries in /usr/lib/.
dosym opencryptoki/stdll/libpkcs11_sw.so.0.0.0 "/usr/$(get_libdir)/libpkcs11_sw.so"
dosym opencryptoki/stdll/libpkcs11_tpm.so.0.0.0 "/usr/$(get_libdir)/libpkcs11_tpm.so"
dosym opencryptoki/libopencryptoki.so.0.0.0 "/usr/$(get_libdir)/libopencryptoki.so"
dosym opencryptoki/stdll/libpkcs11_sw.so.0.0.0 "/usr/$(get_libdir)/libpkcs11_sw.so.0"
dosym opencryptoki/stdll/libpkcs11_tpm.so.0.0.0 "/usr/$(get_libdir)/libpkcs11_tpm.so.0"
dosym opencryptoki/libopencryptoki.so.0.0.0 "/usr/$(get_libdir)/libopencryptoki.so.0"
}