sci-electronics/dsview: add 1.3.2-r1, migrate to Qt6, drop 1.3.0, 1.3.2

- Switch RDEPEND to dev-qt/qtbase:6 + dev-qt/qtsvg:6.
- Pass -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Core=ON so upstream's Qt5-first
  detection takes the Qt6 branch.
- Apply upstream c428bd66 to fix nativeEvent override under Qt6.
- Refresh PYTHON_COMPAT to python3_{12..15}.

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-05-18 14:12:02 +08:00
parent 263ad2ab33
commit b01940307f
5 changed files with 139 additions and 89 deletions

View File

@@ -4,7 +4,7 @@
EAPI=8
GITHUB_PN="DSView"
PYTHON_COMPAT=( python3_{12..13} )
PYTHON_COMPAT=( python3_{12..15} )
inherit cmake python-r1 udev xdg
@@ -33,11 +33,8 @@ RDEPEND="${PYTHON_DEPS}
dev-libs/boost
dev-libs/glib
dev-libs/libzip
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
dev-qt/qtsvg:5
dev-qt/qtconcurrent:5
dev-qt/qtbase:6[concurrent,gui,widgets]
dev-qt/qtsvg:6
sci-libs/fftw:3.0
virtual/libusb:1
"
@@ -56,8 +53,12 @@ PATCHES=(
)
src_configure() {
# Upstream CMakeLists tries Qt5 first and only falls back to Qt6
# when Qt5 is absent; block the Qt5 probe so the Qt6 path runs
# even when Qt5 happens to still be installed.
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Core=ON
)
cmake_src_configure