blob: aca0b5ecb879c9b0ad2dac4ba6551bb5b5382105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2011 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.8.2.ebuild,v 1.3 2011/06/08 23:52:40 tomka Exp $
EAPI=4
QT_DEPEND="4.6.3"
EGIT_REPO_URI="git://gitorious.org/dbusmenu/dbusmenu-qt.git"
[[ ${PV} == 9999* ]] && GIT_ECLASS="git-2"
inherit cmake-utils virtualx ${GIT_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/~scarabeus/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
fi
LICENSE="LGPL-2"
SLOT="0"
IUSE="debug doc"
RDEPEND="
>=x11-libs/qt-core-${QT_DEPEND}:4
>=x11-libs/qt-gui-${QT_DEPEND}:4[dbus]
"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
test? (
dev-libs/qjson
>=x11-libs/qt-test-${QT_DEPEND}:4
)
"
DOCS=(NEWS README)
# 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}
}
|