mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
sci-electronics/pulseview: Port to Qt6
Build failure is the same regardless of Qt5 or Qt6, so might as well port it. Bug: https://bugs.gentoo.org/948044 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -120,14 +120,7 @@
|
||||
|
||||
list(APPEND PKGDEPS glib-2.0>=2.28.0)
|
||||
|
||||
-# Try to find the prefered glibmm-2.4. If not found then add glibmm-2.68
|
||||
-# to the dependency list.
|
||||
-pkg_check_modules(GLIBMM_2_4 glibmm-2.4>=2.28.0)
|
||||
-if(GLIBMM_2_4_FOUND)
|
||||
- list(APPEND PKGDEPS glibmm-2.4>=2.28.0)
|
||||
-else()
|
||||
- list(APPEND PKGDEPS glibmm-2.68>=2.68.0)
|
||||
-endif()
|
||||
+list(APPEND PKGDEPS glibmm-2.68>=2.68.0)
|
||||
|
||||
if(ENABLE_FLOW)
|
||||
list(APPEND PKGDEPS gstreamermm-1.0>=1.8.0)
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
EAPI=8
|
||||
|
||||
inherit cmake xdg-utils
|
||||
|
||||
@@ -20,25 +20,25 @@ LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="+decode static"
|
||||
|
||||
BDEPEND="
|
||||
dev-qt/linguist-tools:5
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-cpp/glibmm-2.28.0:2
|
||||
dev-libs/boost:=
|
||||
>=dev-libs/glib-2.28.0:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtwidgets:5
|
||||
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
|
||||
@@ -47,6 +47,7 @@ src_prepare() {
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDISABLE_WERROR=TRUE
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON
|
||||
-DENABLE_DECODE=$(usex decode)
|
||||
-DSTATIC_PKGDEPS_LIBS=$(usex static)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user