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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Nov 10 17:55:24 2007 UTC (6 years, 9 months ago) by alonbl
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Cleanup
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.4.ebuild,v 1.12 2007/07/22 08:22:44 graaff 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 amd64 arm hppa ia64 m68k ppc ppc64 s390 sh 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? ( >=x11-libs/libX11-1.0.0 >=x11-libs/libXt-1.0.0 )
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 ${FILESDIR}/0.8.1-64bit.patch
28 EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
29 epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
30 epatch ${FILESDIR}/${P}-gcc4.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 --with-plugin-dir=/usr/lib/mozilla/plugins \
41 `use_enable ldap` \
42 `use_with pam` \
43 ${mycard} \
44 || die
45
46 # --without-plugin-dir generates a /no directory
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