/[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.14 - (hide annotations) (download)
Sun Jul 22 08:22:44 2007 UTC (10 years, 11 months ago) by graaff
Branch: MAIN
Changes since 1.13: +2 -2 lines
Drop virtual/x11 references.
(Portage version: 2.1.2.9)

1 peper 1.13 # Copyright 1999-2007 Gentoo Foundation
2 vanquirius 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.14 # $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.10.1.ebuild,v 1.13 2007/02/27 23:35:54 peper 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 graaff 1.14 RDEPEND="X? ( >=x11-libs/libX11-1.0.0 >=x11-libs/libXt-1.0.0 )
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 peper 1.13 #PDEPEND="pam? ( sys-auth/pam_pkcs11 )"
23 vanquirius 1.1
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