| 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.6.ebuild,v 1.7 2009/02/28 22:22:45 dragonheart Exp $
|
| 4 |
|
| 5 |
inherit multilib
|
| 6 |
|
| 7 |
DESCRIPTION="SmartCard library and applications"
|
| 8 |
HOMEPAGE="http://www.opensc-project.org/opensc/"
|
| 9 |
|
| 10 |
SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
|
| 11 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
|
| 12 |
|
| 13 |
LICENSE="LGPL-2.1"
|
| 14 |
SLOT="0"
|
| 15 |
IUSE="pcsc-lite openct nsplugin doc"
|
| 16 |
|
| 17 |
RDEPEND="dev-libs/openssl
|
| 18 |
sys-libs/zlib
|
| 19 |
openct? ( >=dev-libs/openct-0.5.0 )
|
| 20 |
pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )
|
| 21 |
nsplugin? (
|
| 22 |
app-crypt/pinentry
|
| 23 |
x11-libs/libXt
|
| 24 |
)"
|
| 25 |
DEPEND="${RDEPEND}
|
| 26 |
dev-util/pkgconfig
|
| 27 |
nsplugin? ( dev-libs/libassuan )"
|
| 28 |
|
| 29 |
src_compile() {
|
| 30 |
econf \
|
| 31 |
--docdir="/usr/share/doc/${PF}" \
|
| 32 |
--htmldir="/usr/share/doc/${PF}/html" \
|
| 33 |
$(use_enable openct) \
|
| 34 |
$(use_enable pcsc-lite pcsc) \
|
| 35 |
$(use_enable nsplugin) \
|
| 36 |
$(use_enable doc) \
|
| 37 |
--with-pinentry="/usr/bin/pinentry"
|
| 38 |
emake || die
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
emake install DESTDIR="${D}" || die
|
| 43 |
}
|