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