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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri May 4 18:35:51 2012 UTC (2 years, 6 months ago) by jdhore
Branch: MAIN
Changes since 1.7: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

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.11.13-r2.ebuild,v 1.7 2011/01/01 15:41:12 armin76 Exp $
4
5 EAPI="2"
6
7 inherit eutils autotools
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 openct pcsc-lite readline ssl zlib"
18
19 # libtool is required at runtime for libltdl
20 RDEPEND="
21 sys-devel/libtool
22 zlib? ( sys-libs/zlib )
23 readline? ( sys-libs/readline )
24 ssl? ( dev-libs/openssl )
25 openct? ( >=dev-libs/openct-0.5.0 )
26 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig"
29
30 pkg_setup() {
31 if use openct; then
32 elog "Support for openct is deprecated."
33 elog "It is recommended to use pcsc-lite."
34 fi
35 }
36
37 src_prepare() {
38 epatch "${FILESDIR}"/${P}+pcsc-lite-1.6.2.patch
39 epatch "${FILESDIR}"/${P}-overflows.patch
40
41 eautoreconf
42 }
43
44 src_configure() {
45 econf \
46 --docdir="/usr/share/doc/${PF}" \
47 --htmldir="/usr/share/doc/${PF}/html" \
48 $(use_enable doc) \
49 $(use_enable openct) \
50 $(use_enable pcsc-lite pcsc) \
51 $(use_enable readline) \
52 $(use_enable ssl openssl) \
53 $(use_enable zlib) \
54 --with-pinentry="/usr/bin/pinentry"
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die "emake install failed"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20