/[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.12 - (hide annotations) (download)
Fri Oct 20 00:30:30 2006 UTC (12 years, 1 month ago) by kloeri
Branch: MAIN
Changes since 1.11: +2 -2 lines
Stable on Alpha.
(Portage version: 2.1.2_pre3-r2)

1 vanquirius 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 kloeri 1.12 # $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.10.1.ebuild,v 1.11 2006/10/01 19:36:10 dertobi123 Exp $
4 vanquirius 1.1
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 kloeri 1.12 KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
14 vanquirius 1.1 IUSE="ldap pcsc-lite X"
15     #pam
16    
17 vapier 1.8 RDEPEND="X? ( || ( ( >=x11-libs/libX11-1.0.0 >=x11-libs/libXt-1.0.0 ) virtual/x11 ) )
18 vanquirius 1.1 ldap? ( net-nds/openldap )
19     pcsc-lite? ( sys-apps/pcsc-lite )
20     !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
21    
22     #PDEPEND="pam? ( dev-libs/pam_pkcs11 )"
23    
24     src_unpack() {
25     unpack ${A}
26     cd "${S}"
27     use X || echo 'all:'$'\n''install:' > src/signer/Makefile.in
28     EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
29     epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
30     }
31    
32     src_compile() {
33     local mycard=""
34     use pcsc-lite \
35     && mycard="--with-pcsclite" \
36     || mycard="--with-openct=/usr"
37     # --without-plugin-dir generates a /no directory
38     econf \
39     --disable-usbtoken \
40     --with-plugin-dir=/usr/lib/mozilla/plugins \
41     $(use_enable ldap) \
42     ${mycard} \
43     || die
44    
45     emake -j1 || die
46     }
47    
48     src_install() {
49     make install DESTDIR="${D}" || die
50    
51     dodoc NEWS README
52     dohtml docs/opensc.{html,css}
53     }
54 vanquirius 1.4
55     pkg_postinst() {
56     ewarn "If you are upgrading, please remember to run"
57     ewarn "revdep-rebuild due to ABI breakage."
58     }

  ViewVC Help
Powered by ViewVC 1.1.20