OLD | NEW |
(Empty) | |
| 1 # Copyright 1999-2011 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.12.0-r2.ebuild,v 1.1
2011/04/18 18:49:57 flameeyes Exp $ |
| 4 |
| 5 EAPI="4" |
| 6 |
| 7 DESCRIPTION="Libraries and applications to access smartcards." |
| 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="doc +pcsc-lite openct readline ssl zlib" |
| 16 |
| 17 # libtool is required at runtime for libltdl |
| 18 RDEPEND="sys-devel/libtool |
| 19 zlib? ( sys-libs/zlib ) |
| 20 readline? ( sys-libs/readline ) |
| 21 ssl? ( dev-libs/openssl ) |
| 22 openct? ( >=dev-libs/openct-0.5.0 ) |
| 23 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )" |
| 24 DEPEND="${RDEPEND} |
| 25 dev-util/pkgconfig |
| 26 app-text/docbook-xsl-stylesheets |
| 27 dev-libs/libxslt" |
| 28 |
| 29 REQUIRED_USE=" |
| 30 pcsc-lite? ( !openct ) |
| 31 openct? ( !pcsc-lite )" |
| 32 |
| 33 src_configure() { |
| 34 # disable everything, enable selectively |
| 35 local myconf="--disable-pcsc --disable-openct --disable-ctapi" |
| 36 |
| 37 if use pcsc-lite; then |
| 38 myconf+=" --enable-pcsc" |
| 39 elif use openct; then |
| 40 myconf+=" --enable-openct" |
| 41 else |
| 42 myconf+=" --enable-ctapi" |
| 43 fi |
| 44 |
| 45 econf \ |
| 46 --docdir="/usr/share/doc/${PF}" \ |
| 47 --htmldir="/usr/share/doc/${PF}/html" \ |
| 48 --disable-static \ |
| 49 $(use_enable doc) \ |
| 50 $(use_enable openct) \ |
| 51 $(use_enable readline) \ |
| 52 $(use_enable zlib) \ |
| 53 ${myconf} |
| 54 } |
| 55 |
| 56 src_install() { |
| 57 emake DESTDIR="${D}" install || die |
| 58 find "${D}" -name '*.la' -delete |
| 59 |
| 60 dodoc ChangeLog |
| 61 } |
OLD | NEW |