summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/qca-gnupg/qca-gnupg-0.1_p20060406.ebuild')
-rw-r--r--app-crypt/qca-gnupg/qca-gnupg-0.1_p20060406.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/app-crypt/qca-gnupg/qca-gnupg-0.1_p20060406.ebuild b/app-crypt/qca-gnupg/qca-gnupg-0.1_p20060406.ebuild
new file mode 100644
index 000000000..46f2b3f2d
--- /dev/null
+++ b/app-crypt/qca-gnupg/qca-gnupg-0.1_p20060406.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils qt4
+
+MY_PV="${PV/_p/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Qt GPG frontend API, plugin for QCA"
+HOMEPAGE="http://delta.affinix.com/qca/"
+SRC_URI="http://delta.affinix.com/download/qca/2.0/beta2/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug"
+
+RDEPEND="$(qt_min_version 4.1.0)
+ >app-crypt/qca-1.99"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4.0"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PN}_fix.diff
+}
+
+src_compile() {
+ local qmyconf="CONFIG += no_fixpath"
+
+ QTDIR="/usr/lib" ./configure || die "configure failed"
+
+ # check wheter qt was build with debug use flag
+ if ! built_with_use qt debug || ! use debug; then
+ qmyconf="${qmyconf} release"
+ else
+ qmyconf="${qmyconf} debug"
+ fi;
+
+ qmake ${PN}.pro \
+ QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
+ QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
+ QMAKE_RPATH= \
+ QTDIR="/usr/lib" \
+ "${qmyconf}" \
+ || die "qmake failed"
+
+ # ugly workaround...
+ if ! built_with_use qt debug || ! use debug; then
+ sed -i -e 's/QtCore_debug/QtCore/g' Makefile
+ fi;
+
+ make || die "make failed"
+}
+
+src_install() {
+ make INSTALL_ROOT="${D}" install || die "make install failed"
+ if [ "$(get_libdir)" != "lib" ]; then
+ mv ${D}/usr/lib ${D}/usr/$(get_libdir)
+ fi
+}