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.1-r1.ebuild,v 1.3 2007/03/08 18:04:48 alonbl Exp $ |
4 |
|
5 |
WANT_AUTOMAKE="1.9" |
6 |
|
7 |
inherit eutils libtool autotools |
8 |
|
9 |
DESCRIPTION="SmartCard library and applications" |
10 |
HOMEPAGE="http://www.opensc-project.org/opensc/" |
11 |
SRC_URI="http://www.opensc-project.org/files/opensc/${P}.tar.gz" |
12 |
|
13 |
LICENSE="LGPL-2.1" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
16 |
IUSE="pcsc-lite openct" |
17 |
|
18 |
RDEPEND="dev-libs/openssl |
19 |
sys-libs/zlib |
20 |
openct? ( >=dev-libs/openct-0.5.0 ) |
21 |
pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )" |
22 |
DEPEND="${RDEPEND} |
23 |
dev-util/pkgconfig" |
24 |
|
25 |
src_unpack() { |
26 |
unpack ${A} |
27 |
cd "${S}" |
28 |
|
29 |
EPATCH_SINGLE_MSG="Applying libtool reverse deps patch ..." \ |
30 |
epatch ${ELT_PATCH_DIR}/fix-relink/1.5.0 |
31 |
|
32 |
epatch "${FILESDIR}/${P}-dep.patch" |
33 |
epatch "${FILESDIR}/${P}-pcsc.patch" |
34 |
|
35 |
AT_M4DIR="aclocal" eautoreconf |
36 |
} |
37 |
|
38 |
src_compile() { |
39 |
# --without-plugin-dir generates a /no directory |
40 |
econf \ |
41 |
--with-plugin-dir=/usr/lib/mozilla/plugins \ |
42 |
$(use_enable openct) \ |
43 |
$(use_enable pcsc-lite) \ |
44 |
|| die |
45 |
|
46 |
emake -j1 || die |
47 |
} |
48 |
|
49 |
src_install() { |
50 |
make install DESTDIR="${D}" || die |
51 |
|
52 |
dodoc NEWS README |
53 |
dohtml doc/*.{html,css} |
54 |
|
55 |
insinto /etc |
56 |
doins etc/opensc.conf |
57 |
} |
58 |
|
59 |
pkg_postinst() { |
60 |
ewarn "If you are upgrading from < opensc-0.10.0, be advised" |
61 |
ewarn "that some functionality that was previously provided" |
62 |
ewarn "by opensc is now packaged separately." |
63 |
ewarn "check out sys-auth/pam_pkcs11, sys-auth/pam_p11 and" |
64 |
ewarn "dev-libs/engine_pkcs11 since you might need them." |
65 |
ewarn "Also in case of an upgrade please remember to run" |
66 |
ewarn "revdep-rebuild due to ABI breakage." |
67 |
} |