blob: 929e0bb4b9442bde9885cdc8f22e8243dd1b73d2 (
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
62
63
64
65
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
case ${PV} in
*9999*)
EGIT_REPO_URI="https://github.com/sigrokproject/${PN}.git"
inherit git-r3
;;
*_p*)
COMMIT="e2fe9dfb91c7de85c410922ee9268c3f526bcc54"
SRC_URI="https://github.com/sigrokproject/${PN}/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT:0:7}.tar.gz"
S="${WORKDIR}"/${PN}-${COMMIT}
;;
*)
SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz"
;;
esac
DESCRIPTION="Qt based logic analyzer GUI for sigrok"
HOMEPAGE="https://sigrok.org/wiki/PulseView"
LICENSE="GPL-3"
SLOT="0"
if [[ ${PV} != *9999* ]]; then
KEYWORDS="~amd64 ~x86"
fi
IUSE="+decode static"
RDEPEND="
>=dev-cpp/glibmm-2.68.0:2.68
dev-libs/boost:=
>=dev-libs/glib-2.28.0:2
dev-qt/qtbase:6[gui,widgets]
dev-qt/qtsvg:6
>=sci-libs/libsigrok-0.6.0:=[cxx]
decode? ( >=sci-libs/libsigrokdecode-0.6.0:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-qt/qttools:6[linguist]
virtual/pkgconfig
"
DOCS=( HACKING NEWS README )
PATCHES=( "${FILESDIR}/${PN}-0.5.0-glibmm-2.68-required.patch" )
src_prepare() {
cmake_src_prepare
cmake_comment_add_subdirectory manual
}
src_configure() {
local mycmakeargs=(
-DDISABLE_WERROR=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON
-DENABLE_DECODE=$(usex decode)
-DSTATIC_PKGDEPS_LIBS=$(usex static)
)
cmake_src_configure
}
|