# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.2.ebuild,v 1.9 2013/04/02 20:56:12 ago Exp $ 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/qtgui-${QT_DEPEND}:4[dbus] " 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} }