1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="Qt GPG frontend API, plugin for QCA"
11 HOMEPAGE="http://delta.affinix.com/qca/"
12 SRC_URI="http://delta.affinix.com/download/qca/2.0/beta2/${MY_P}.tar.bz2"
16 KEYWORDS="~x86 ~amd64"
19 RDEPEND="$(qt_min_version 4.1.0)
25 S="${WORKDIR}/${MY_P}"
31 epatch ${FILESDIR}/${PN}_fix.diff
35 local qmyconf="CONFIG += no_fixpath"
37 QTDIR="/usr/lib" ./configure || die "configure failed"
39 # check wheter qt was build with debug use flag
40 if ! built_with_use qt debug || ! use debug; then
41 qmyconf="${qmyconf} release"
43 qmyconf="${qmyconf} debug"
47 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
48 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
55 if ! built_with_use qt debug || ! use debug; then
56 sed -i -e 's/QtCore_debug/QtCore/g' Makefile
59 make || die "make failed"
63 make INSTALL_ROOT="${D}" install || die "make install failed"
64 if [ "$(get_libdir)" != "lib" ]; then
65 mv ${D}/usr/lib ${D}/usr/$(get_libdir)