| 1 |
# Copyright 1999-2009 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.11.11.ebuild,v 1.6 2009/12/15 19:11:11 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit multilib
|
| 8 |
|
| 9 |
DESCRIPTION="SmartCard library and applications"
|
| 10 |
HOMEPAGE="http://www.opensc-project.org/opensc/"
|
| 11 |
|
| 12 |
SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
|
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
|
| 14 |
|
| 15 |
LICENSE="LGPL-2.1"
|
| 16 |
SLOT="0"
|
| 17 |
IUSE="doc nsplugin openct pcsc-lite"
|
| 18 |
|
| 19 |
RDEPEND="dev-libs/openssl
|
| 20 |
sys-libs/zlib
|
| 21 |
nsplugin? (
|
| 22 |
app-crypt/pinentry
|
| 23 |
x11-libs/libXt
|
| 24 |
)
|
| 25 |
openct? ( >=dev-libs/openct-0.5.0 )
|
| 26 |
pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
|
| 27 |
DEPEND="${RDEPEND}
|
| 28 |
dev-util/pkgconfig
|
| 29 |
nsplugin? ( dev-libs/libassuan )"
|
| 30 |
|
| 31 |
src_configure() {
|
| 32 |
econf \
|
| 33 |
--docdir="/usr/share/doc/${PF}" \
|
| 34 |
--htmldir="/usr/share/doc/${PF}/html" \
|
| 35 |
$(use_enable doc) \
|
| 36 |
$(use_enable nsplugin) \
|
| 37 |
$(use_enable openct) \
|
| 38 |
$(use_enable pcsc-lite pcsc) \
|
| 39 |
--with-pinentry="/usr/bin/pinentry" \
|
| 40 |
--with-plugindir="/usr/$(get_libdir)/nsbrowser/plugins"
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 45 |
}
|