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

Contents of /dev-libs/opensc/opensc-0.9.0_alpha.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 31 22:10:52 2004 UTC (10 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
ver bump #62359

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

  ViewVC Help
Powered by ViewVC 1.1.20