1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils multilib qt4
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"
15 RESTRICT
="mirror test"
17 DEPEND
="$(qt4_min_version 4.2.0)
18 !<app-crypt/qca-1.0-r3"
21 QT4_OPTIONAL_BUILT_WITH_USE_CHECK
="debug"
27 epatch
"${FILESDIR}"/${P}-debug-same-pkgconfig-file.
patch
32 use debug
&& myconf
="--debug" || myconf
="--release"
35 local _libdir
=$
(get_libdir
)
36 sed -i -e "/pcfiles\.path/s:lib:${_libdir}:" "${S}"/configure \
37 || die
"Multilib fix failed."
42 --includedir="/usr/include/qca2" \
43 --libdir="/usr/${_libdir}/qca2" \
44 --no-separate-debug-info \
47 || die
"configure failed"
50 emake || die
"emake failed"
54 emake INSTALL_ROOT
="${D}" install || die
"emake install failed"
57 cat <<-EOF > "${T}"/44qca2
58 LDPATH=/usr/$(get_libdir)/qca2
63 dohtml
"${S}"/apidocs
/html
/* || die
"Failed to install documentation"
67 insinto
/usr
/share
/doc
/${PF}/
68 doins
-r "${S}"/examples || die
"Failed to install examples"