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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Feb 10 01:53:08 2006 UTC (8 years, 9 months ago) by vanquirius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
0.10.1 version bump. Obsolete pam flag for bug 121078.
(Portage version: 2.0.54)

1 # Copyright 1999-2006 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.10.0.ebuild,v 1.4 2006/01/19 02:49:25 vanquirius 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 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 IUSE="ldap pam pcsc-lite X"
15
16 DEPEND="X? ( || (
17 ( >=x11-libs/libX11-1.0.0
18 >=x11-libs/libXt-1.0.0 )
19 virtual/x11 ) )"
20
21 RDEPEND="${DEPEND}
22 ldap? ( net-nds/openldap )
23 pam? ( >=sys-libs/pam-0.77
24 >=sys-apps/shadow-4.0.3 )
25 pcsc-lite? ( sys-apps/pcsc-lite )
26 !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 use X || echo 'all:'$'\n''install:' > src/signer/Makefile.in
32 EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
33 epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
34 }
35
36 src_compile() {
37 local mycard=""
38 use pcsc-lite \
39 && mycard="--with-pcsclite" \
40 || mycard="--with-openct=/usr"
41 # --without-plugin-dir generates a /no directory
42 econf \
43 --disable-usbtoken \
44 --with-plugin-dir=/usr/lib/mozilla/plugins \
45 $(use_enable ldap) \
46 $(use_with pam) \
47 ${mycard} \
48 || die
49
50 emake -j1 || die
51 }
52
53 src_install() {
54 make install DESTDIR="${D}" || die
55
56 if use pam ; then
57 dodir /lib/security/
58 dosym ../../usr/lib/security/pam_opensc.so /lib/security/
59 fi
60
61 dodoc NEWS README
62 dohtml docs/opensc.{html,css}
63 }

  ViewVC Help
Powered by ViewVC 1.1.20