1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION
="PKCS#11 (smartcard) plugin for QCA"
12 HOMEPAGE
="http://delta.affinix.com/qca/"
13 SRC_URI
="http://delta.affinix.com/download/qca/${QCA_VER/-*/}/${QCA_VER/*-/}/${MY_P}.tar.bz2"
17 KEYWORDS
="~amd64 ~x86"
21 RDEPEND
=">=app-crypt/qca-2.0.0_rc2
23 dev-libs/pkcs11-helper"
26 S
="${WORKDIR}/${MY_P}"
29 if use debug
&& ! built_with_use
'>=app-crypt/qca-2.0.0_rc' debug
; then
31 einfo
"You are trying to compile ${PN} package with active USE=\"debug\""
32 einfo
"while qca is build without this particular flag. It will not"
35 einfo
"Possible solutions to this problem are:"
36 einfo
"a) install package ${PN} without debug USE flag"
37 einfo
"b) re-emerge qca with debug USE flag"
39 die
"can't emerge ${PN} with debug USE flag"
47 epatch
"${FILESDIR}"/${PN}-configure.
patch
54 myconf
="--debug-and-release"
61 --no-separate-debug-info \
62 ${myconf} || die
"configure failed"
65 emake || die
"make failed"
69 emake INSTALL_ROOT
="${D}" install || die
"make install failed"