/[gentoo-x86]/dev-libs/opensc/opensc-0.12.1.ebuild
Gentoo

Contents of /dev-libs/opensc/opensc-0.12.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun May 13 22:13:29 2012 UTC (2 years, 3 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix bug #412299, thanks to Michelangelo Scopelliti for reporting. Also remove old versions.

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20