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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Wed Oct 13 12:56:24 2004 UTC (13 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
64bit lovin !

1 agriffis 1.5 # Copyright 1999-2004 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.9 # $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.8.1.ebuild,v 1.8 2004/10/12 03:05:08 vapier Exp $
4 vapier 1.1
5     DESCRIPTION="SmartCard library and applications"
6     HOMEPAGE="http://www.opensc.org/"
7     SRC_URI="http://www.opensc.org/files/${P}.tar.gz"
8    
9     LICENSE="LGPL-2"
10     SLOT="0"
11 vapier 1.8 KEYWORDS="amd64 ppc x86"
12 vapier 1.6 IUSE="ldap pam pcsc-lite X"
13 vapier 1.1
14     RDEPEND="ldap? ( net-nds/openldap )
15     pam? ( >=sys-libs/pam-0.77
16     >=sys-apps/shadow-4.0.3 )
17 vapier 1.6 X? ( virtual/x11 )
18 mr_bones_ 1.4 pcsc-lite? ( sys-apps/pcsc-lite )
19     !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
20 vapier 1.1
21 vapier 1.6 src_unpack() {
22     unpack ${A}
23     use X || echo 'all:'$'\n''install:' > ${S}/src/signer/Makefile.in
24     }
25    
26 vapier 1.1 src_compile() {
27 vapier 1.3 local mycard=""
28     use pcsc-lite \
29     && mycard="--with-pcsclite" \
30     || mycard="--with-openct=/usr"
31 vapier 1.1 econf \
32     --disable-usbtoken \
33     --without-plugin-dir \
34     `use_enable ldap` \
35     `use_with pam` \
36 vapier 1.3 ${mycard} \
37     ||┬ádie
38 vapier 1.1 emake -j1 || die
39     }
40    
41     src_install() {
42     make install DESTDIR=${D} || die
43    
44     if use pam ; then
45     dodir /lib/security/
46     dosym ../../usr/lib/security/pam_opensc.so /lib/security/
47     fi
48    
49     dodoc ANNOUNCE AUTHORS ChangeLog NEWS README
50     dohtml docs/opensc.html docs/opensc.css
51     }

  ViewVC Help
Powered by ViewVC 1.1.20