blob: 43fea19498f985614f75060745ee327465eed5f4 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VALA_USE_DEPEND="vapigen"
inherit cmake vala virtualx
DESCRIPTION="Ayatana Application Indicators (Shared Library)"
HOMEPAGE="https://github.com/AyatanaIndicators/libayatana-appindicator"
SRC_URI="https://github.com/AyatanaIndicators/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3 LGPL-2 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/glib-2.37:2
>=x11-libs/gtk+-3.24:3[introspection]
dev-libs/libdbusmenu[gtk3]
>=dev-libs/libayatana-indicator-0.8.4
"
DEPEND="${RDEPEND}"
BDEPEND="
$(vala_depend)
test? ( dev-util/dbus-test-runner )
"
src_prepare() {
vala_setup
cmake_src_prepare
}
src_configure() {
local mycmakeargs+=(
-DVALA_COMPILER="${VALAC}"
-DVAPI_GEN="${VAPIGEN}"
-DENABLE_TESTS="$(usex test)"
-DENABLE_GTKDOC=OFF
-DENABLE_BINDINGS_MONO=OFF
-DFLAVOUR_GTK2=OFF
-DFLAVOUR_GTK3=ON
)
cmake_src_configure
}
src_test() {
virtx cmake_src_test
}
|