/[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.5 - (show annotations) (download)
Fri Feb 17 13:49:14 2006 UTC (12 years, 9 months ago) by gustavoz
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable on sparc
(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.1.ebuild,v 1.4 2006/02/17 13:41:48 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 RDEPEND="X? ( || (
18 ( >=x11-libs/libX11-1.0.0
19 >=x11-libs/libXt-1.0.0 )
20 virtual/x11 ) )
21 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
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