1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION
="Qt Cryptographic Architecture (QCA)"
9 HOMEPAGE
="http://delta.affinix.com/qca/"
10 SRC_URI
="http://delta.affinix.com/download/qca/${PV%.*}/${P}.tar.bz2"
14 KEYWORDS
="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
15 IUSE
="debug doc examples"
16 RESTRICT
="mirror test"
18 DEPEND
="$(qt4_min_version 4.2.0)"
22 if use debug
&& ! built_with_use x11-libs
/qt
:4 debug
; then
24 eerror
"You are trying to compile ${PN} package with USE=\"debug\""
25 eerror
"while qt4 is built without this particular flag: it will"
28 eerror
"Possible solutions to this problem are:"
29 eerror
"a) install package ${PN} without debug USE flag"
30 eerror
"b) re-emerge qt4 with debug USE flag"
32 die
"can't emerge ${PN} with debug USE flag"
47 --includedir="/usr/include/qca2" \
48 --libdir="/usr/$(get_libdir)/qca2" \
50 --no-separate-debug-info \
52 || die
"configure failed"
55 emake || die
"emake failed"
59 emake INSTALL_ROOT
="${D}" install || die
"emake install failed"
62 cat > "${T}"/44qca2
<< EOF
63 LDPATH=/usr/$(get_libdir)/qca2
68 dohtml
"${S}"/apidocs
/html
/* || die
"failed to install documentation"
72 insinto
/usr
/share
/doc
/${PF}/
73 doins
-r "${S}"/examples || die
"failed to install examples"