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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Dec 26 17:28:31 2010 UTC (3 years, 3 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Add patch to fix possible buffer overflows; thanks to Tim Sammut (underling) for reporting in bug #349567.

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

1 # Copyright 1999-2010 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-r1.ebuild,v 1.1 2010/11/29 13:43:03 flameeyes 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 dev-util/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
40 eautoreconf
41 }
42
43 src_configure() {
44 econf \
45 --docdir="/usr/share/doc/${PF}" \
46 --htmldir="/usr/share/doc/${PF}/html" \
47 $(use_enable doc) \
48 $(use_enable openct) \
49 $(use_enable pcsc-lite pcsc) \
50 $(use_enable readline) \
51 $(use_enable ssl openssl) \
52 $(use_enable zlib) \
53 --with-pinentry="/usr/bin/pinentry"
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die "emake install failed"
58 }

  ViewVC Help
Powered by ViewVC 1.1.20