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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Nov 2 14:37:58 2004 UTC (9 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old

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

  ViewVC Help
Powered by ViewVC 1.1.20