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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Feb 10 01:53:08 2006 UTC (12 years, 5 months ago) by vanquirius
Branch: MAIN
0.10.1 version bump. Obsolete pam flag for bug 121078.
(Portage version: 2.0.54)

1 vanquirius 1.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-project.org/files/opensc/${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 pcsc-lite X"
15     #pam
16    
17     DEPEND="X? ( || (
18     ( >=x11-libs/libX11-1.0.0
19     >=x11-libs/libXt-1.0.0 )
20     virtual/x11 ) )"
21    
22     RDEPEND="${DEPEND}
23     ldap? ( net-nds/openldap )
24     pcsc-lite? ( sys-apps/pcsc-lite )
25     !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
26    
27     #PDEPEND="pam? ( dev-libs/pam_pkcs11 )"
28    
29     src_unpack() {
30     unpack ${A}
31     cd "${S}"
32     use X || echo 'all:'$'\n''install:' > src/signer/Makefile.in
33     EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
34     epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
35     }
36    
37     src_compile() {
38     local mycard=""
39     use pcsc-lite \
40     && mycard="--with-pcsclite" \
41     || mycard="--with-openct=/usr"
42     # --without-plugin-dir generates a /no directory
43     econf \
44     --disable-usbtoken \
45     --with-plugin-dir=/usr/lib/mozilla/plugins \
46     $(use_enable ldap) \
47     ${mycard} \
48     || die
49    
50     emake -j1 || die
51     }
52    
53     src_install() {
54     make install DESTDIR="${D}" || die
55    
56     dodoc NEWS README
57     dohtml docs/opensc.{html,css}
58     }

  ViewVC Help
Powered by ViewVC 1.1.20