blob: 32db4c0a9192e5345371670c54d9f9c0e9e09eaf (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EBZR_REPO_URI="lp:libdbusmenu-qt"
[[ ${PV} == 9999* ]] && inherit bzr
inherit cmake-utils virtualx
DESCRIPTION="Library providing Qt implementation of DBusMenu specification"
HOMEPAGE="https://launchpad.net/libdbusmenu-qt/"
if [[ ${PV} != 9999* ]] ; then
MY_PV=${PV/_pre/+16.04.}
SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${MY_PV}.orig.tar.gz"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
fi
LICENSE="LGPL-2"
SLOT="0"
IUSE="debug"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtdbus:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
"
DEPEND="${RDEPEND}
test? ( dev-qt/qttest:5 )
"
[[ ${PV} == 9999* ]] || S=${WORKDIR}/${PN}-${MY_PV}
# tests fail due to missing connection to dbus
RESTRICT="test"
src_prepare() {
[[ ${PV} == 9999* ]] && bzr_src_prepare
cmake-utils_src_prepare
cmake_comment_add_subdirectory tools
use test || cmake_comment_add_subdirectory tests
}
src_configure() {
local mycmakeargs=(
-DWITH_DOC=OFF
-DUSE_QT5=ON
)
cmake-utils_src_configure
}
src_test() {
local builddir=${BUILD_DIR}
BUILD_DIR=${BUILD_DIR}/tests virtx cmake-utils_src_test
BUILD_DIR=${builddir}
}
|