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

Contents of /dev-libs/opensc/opensc-0.11.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Nov 10 17:55:24 2007 UTC (6 years, 8 months ago) by alonbl
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleanup
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.11.0-r1.ebuild,v 1.3 2007/07/22 08:22:44 graaff Exp $
4
5 inherit eutils libtool
6
7 DESCRIPTION="SmartCard library and applications"
8 HOMEPAGE="http://www.opensc-project.org/opensc/"
9 SRC_URI="http://www.opensc-project.org/files/opensc/${P}.tar.gz"
10
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 IUSE="ldap pcsc-lite X"
15 #pam
16
17 RDEPEND="X? ( >=x11-libs/libX11-1.0.0 >=x11-libs/libXt-1.0.0 )
18 ldap? ( net-nds/openldap )
19 pcsc-lite? ( sys-apps/pcsc-lite )
20 !pcsc-lite? ( >=dev-libs/openct-0.5.0 )"
21
22 #PDEPEND="pam? ( sys-auth/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 doc/*.{html,css}
53
54 insinto /etc
55 doins etc/opensc.conf
56 }
57
58 pkg_postinst() {
59 ewarn "If you are upgrading from < opensc-0.10.0, be advised"
60 ewarn "that some functionality that was previously provided"
61 ewarn "by opensc is now packaged separately."
62 ewarn "check out sys-auth/pam_pkcs11, sys-auth/pam_p11 and"
63 ewarn "dev-libs/engine_pkcs11 since you might need them."
64 ewarn "Also in case of an upgrade please remember to run"
65 ewarn "revdep-rebuild due to ABI breakage."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20