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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jan 19 02:49:25 2006 UTC (8 years, 3 months ago) by vanquirius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Make modular X friendly.
(Portage version: 2.0.54)

1 # Copyright 1999-2005 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.9.6.ebuild,v 1.2 2005/09/17 00:59:18 ciaranm Exp $
4
5 inherit eutils libtool
6
7 DESCRIPTION="SmartCard library and applications"
8 HOMEPAGE="http://www.opensc.org/"
9 SRC_URI="http://www.opensc.org/files/${P}.tar.gz"
10
11 LICENSE="LGPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~arm ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
14 IUSE="ldap pam pcsc-lite X"
15
16 RDEPEND="ldap? ( net-nds/openldap )
17 pam? ( >=sys-libs/pam-0.77
18 >=sys-apps/shadow-4.0.3 )
19 X? ( virtual/x11 )
20 pcsc-lite? ( sys-apps/pcsc-lite )
21 !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 use X || echo 'all:'$'\n''install:' > src/signer/Makefile.in
27 EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
28 epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
29 epatch ${FILESDIR}/opensc-0.9.4-gcc4.patch
30 }
31
32 src_compile() {
33 local mycard=""
34 use pcsc-lite \
35 && mycard="--with-pcsclite" \
36 || mycard="--with-openct=/usr"
37 econf \
38 --disable-usbtoken \
39 --with-plugin-dir=/usr/lib/mozilla/plugins \
40 `use_enable ldap` \
41 `use_with pam` \
42 ${mycard} \
43 || die
44
45 # --without-plugin-dir generates a /no directory
46
47
48 emake -j1 || die
49 }
50
51 src_install() {
52 make install DESTDIR=${D} || die
53
54 if use pam ; then
55 dodir /lib/security/
56 dosym ../../usr/lib/security/pam_opensc.so /lib/security/
57 fi
58
59 dodoc ANNOUNCE AUTHORS ChangeLog NEWS README
60 dohtml docs/opensc.{html,css}
61 }

  ViewVC Help
Powered by ViewVC 1.1.20