summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild')
-rw-r--r--dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild
new file mode 100644
index 000000000000..364dcf362370
--- /dev/null
+++ b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+QT_DEPEND="4.6.3"
+EBZR_REPO_URI="lp:libdbusmenu-qt"
+
+[[ ${PV} == 9999* ]] && BZR_ECLASS="bzr"
+inherit cmake-utils virtualx ${BZR_ECLASS}
+
+DESCRIPTION="A library providing Qt implementation of DBusMenu specification"
+HOMEPAGE="https://launchpad.net/libdbusmenu-qt/"
+if [[ ${PV} == 9999* ]] ; then
+ KEYWORDS=""
+else
+ #SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
+ # upstream has no permissions to use some kde written code so repack git
+ # repo every time
+ SRC_URI="http://dev.gentoo.org/~creffett/${P}.tar.xz"
+ KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="debug doc"
+
+RDEPEND="
+ >=dev-qt/qtcore-${QT_DEPEND}:4
+ >=dev-qt/qtdbus-${QT_DEPEND}:4
+ >=dev-qt/qtgui-${QT_DEPEND}:4
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? (
+ dev-libs/qjson
+ >=dev-qt/qttest-${QT_DEPEND}:4
+ )
+"
+
+DOCS=( NEWS README )
+PATCHES=( "${FILESDIR}/${P}-optionaltests.patch" )
+
+# tests fail due to missing conection to dbus
+RESTRICT="test"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build test TESTS)
+ $(cmake-utils_use_with doc)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local builddir=${CMAKE_BUILD_DIR}
+
+ CMAKE_BUILD_DIR=${CMAKE_BUILD_DIR}/tests \
+ VIRTUALX_COMMAND=cmake-utils_src_test virtualmake
+
+ CMAKE_BUILD_DIR=${builddir}
+}