/[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.4 - (hide annotations) (download)
Fri Feb 17 13:41:48 2006 UTC (12 years ago) by vanquirius
Branch: MAIN
Changes since 1.3: +6 -1 lines
Add revdep-rebuild note in pkg_postinst. Thanks to gustavoz.
(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 vanquirius 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.10.1.ebuild,v 1.3 2006/02/16 16:23:54 vanquirius 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 vanquirius 1.3 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
14 vanquirius 1.1 IUSE="ldap pcsc-lite X"
15     #pam
16    
17 vanquirius 1.2 RDEPEND="X? ( || (
18 vanquirius 1.1 ( >=x11-libs/libX11-1.0.0
19     >=x11-libs/libXt-1.0.0 )
20 vanquirius 1.2 virtual/x11 ) )
21 vanquirius 1.1 ldap? ( net-nds/openldap )
22     pcsc-lite? ( sys-apps/pcsc-lite )
23     !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
24    
25     #PDEPEND="pam? ( dev-libs/pam_pkcs11 )"
26    
27     src_unpack() {
28     unpack ${A}
29     cd "${S}"
30     use X || echo 'all:'$'\n''install:' > src/signer/Makefile.in
31     EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \
32     epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0
33     }
34    
35     src_compile() {
36     local mycard=""
37     use pcsc-lite \
38     && mycard="--with-pcsclite" \
39     || mycard="--with-openct=/usr"
40     # --without-plugin-dir generates a /no directory
41     econf \
42     --disable-usbtoken \
43     --with-plugin-dir=/usr/lib/mozilla/plugins \
44     $(use_enable ldap) \
45     ${mycard} \
46     || die
47    
48     emake -j1 || die
49     }
50    
51     src_install() {
52     make install DESTDIR="${D}" || die
53    
54     dodoc NEWS README
55     dohtml docs/opensc.{html,css}
56     }
57 vanquirius 1.4
58     pkg_postinst() {
59     ewarn "If you are upgrading, please remember to run"
60     ewarn "revdep-rebuild due to ABI breakage."
61     }

  ViewVC Help
Powered by ViewVC 1.1.20