1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 MY_P
="${PN}-${MVER}-${SVER}"
11 DESCRIPTION
="Qt Cryptographic Architecture (QCA)"
12 HOMEPAGE
="http://delta.affinix.com/qca/"
13 SRC_URI
="http://delta.affinix.com/download/qca/${MVER/\.0/}/${SVER}/${MY_P}.tar.bz2"
17 KEYWORDS
="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
21 RDEPEND
="$(qt4_min_version 4.2.0)"
23 doc? ( app-doc/doxygen )"
25 S
="${WORKDIR}/${MY_P}"
28 if use debug
&& ! built_with_use qt debug
; then
30 einfo
"You are trying to compile ${PN} package with active USE=\"debug\""
31 einfo
"while qt4 is build without this particular flag. It will not"
34 einfo
"Possible solutions to this problem are:"
35 einfo
"a) install package ${PN} without debug USE flag"
36 einfo
"b) re-emerge qt4 with debug USE flag"
38 die
"can't emerge ${PN} with debug USE flag"
46 epatch
"${FILESDIR}"/${PN}-${MVER}-configure.patch
47 epatch "${FILESDIR}"/${P}-defer-plugin-updates.patch
51 local myconf="--no-separate-debug-info --disable-tests"
54 myconf="${myconf} --debug-and-release"
56 myconf="${myconf} --release"
62 --includedir="/usr
/include
/qca2
" \
63 --libdir="/usr
/$
(get_libdir
)/qca2
" \
65 || die "configure failed
"
68 emake || die "make failed
"
74 emake INSTALL_ROOT="${D}" install || die "make install failed
"
77 cat > "${T}/44qca2
" << EOF
78 LDPATH=/usr/$(get_libdir)/qca2
83 dohtml -r "${S}"/apidocs/html || die "dohtml failed
"