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

Contents of /dev-libs/opensc/opensc-0.12.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Sep 30 17:20:43 2012 UTC (23 months, 3 weeks ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #432766

(Portage version: 2.1.11.16/cvs/Linux ia64)

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.2-r2.ebuild,v 1.7 2012/09/27 08:32:28 blueness 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 SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
16 IUSE="doc libtool +pcsc-lite openct readline ssl zlib"
17
18 RDEPEND="libtool? ( 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 virtual/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_prepare() {
34 epatch "${FILESDIR}"/${PN}-0.12.1-crossbuild.patch
35 epatch "${FILESDIR}"/${P}-parallelinstall.patch
36 epatch "${FILESDIR}"/${P}-dl.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 # the configure script prefers libtool's libltdl over
53 # the native system's dlopen ... so we have to manually
54 # control the behavior to something a bit more sane
55 export ac_cv_header_ltdl_h=$(usex libtool) \
56 ac_cv_lib_ltdl_lt_dlopen=$(usex libtool)
57
58 econf \
59 --docdir="/usr/share/doc/${PF}" \
60 --htmldir='$(docdir)/html' \
61 --disable-static \
62 $(use_enable doc) \
63 $(use_enable openct) \
64 $(use_enable readline) \
65 $(use_enable zlib) \
66 $(use_enable ssl openssl) \
67 ${myconf}
68 }
69
70 src_install() {
71 default
72 find "${ED}"/usr -name '*.la' -delete
73 }

  ViewVC Help
Powered by ViewVC 1.1.20