mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
qt6-tools: update to 6.7.2.
This commit is contained in:
parent
92da1280fe
commit
04d946b848
5 changed files with 109 additions and 42 deletions
1
srcpkgs/qt6-tools-private-devel
Symbolic link
1
srcpkgs/qt6-tools-private-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
qt6-tools
|
|
@ -1,15 +0,0 @@
|
||||||
--- qttools-everywhere-src-6.4.0/src/assistant/qlitehtml/src/CMakeLists.txt 2022-09-23 13:50:40.000000000 +0200
|
|
||||||
+++ - 2022-11-03 01:17:21.262108484 +0100
|
|
||||||
@@ -30,12 +30,6 @@
|
|
||||||
PROPERTIES
|
|
||||||
QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
|
|
||||||
)
|
|
||||||
- set_target_properties(
|
|
||||||
- gumbo
|
|
||||||
- PROPERTIES
|
|
||||||
- QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE "${ORIG_FPIC}")
|
|
||||||
set(BUILD_SHARED_LIBS ${ORIG_BUILD_SHARED_LIBS})
|
|
||||||
# force optimized litehtml even in debug
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- qt6-tools-6.4.2.orig/src/assistant/qlitehtml/src/3rdparty/litehtml/CMakeLists.txt
|
|
||||||
+++ qt6-tools-6.4.2/src/assistant/qlitehtml/src/3rdparty/litehtml/CMakeLists.txt
|
|
||||||
@@ -191,7 +191,7 @@ set_source_files_properties(${CMAKE_CURR
|
|
||||||
|
|
||||||
# Tests
|
|
||||||
|
|
||||||
-if (BUILD_TESTING)
|
|
||||||
+if (FALSE)
|
|
||||||
include(FetchContent)
|
|
||||||
FetchContent_Declare(
|
|
||||||
googletest
|
|
|
@ -1,14 +1,83 @@
|
||||||
--- qt6-tools-6.4.2.orig/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp
|
--- a/tests/auto/linguist/lconvert/tst_lconvert.cpp
|
||||||
+++ qt6-tools-6.4.2/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp
|
+++ b/tests/auto/linguist/lconvert/tst_lconvert.cpp
|
||||||
@@ -74,7 +74,10 @@ private:
|
@@ -4,6 +4,16 @@
|
||||||
void tst_generatedOutput::initTestCase()
|
#include <QtTest/QtTest>
|
||||||
|
#include <QtCore/QFile>
|
||||||
|
|
||||||
|
+namespace {
|
||||||
|
+QString xbinpath()
|
||||||
|
+{
|
||||||
|
+ char *build_binpath = getenv("QT_BUILD_BIN_PATH");
|
||||||
|
+ if (build_binpath && *build_binpath)
|
||||||
|
+ return build_binpath;
|
||||||
|
+ return QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
||||||
|
+}
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
class tst_lconvert : public QObject
|
||||||
{
|
{
|
||||||
// Build the path to the QDoc binary the same way moc tests do for moc.
|
Q_OBJECT
|
||||||
- const auto binpath = QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
@@ -11,7 +21,7 @@ class tst_lconvert : public QObject
|
||||||
|
public:
|
||||||
|
tst_lconvert()
|
||||||
|
: dataDir(QFINDTESTDATA("data/"))
|
||||||
|
- , lconvert(QLibraryInfo::path(QLibraryInfo::BinariesPath) + "/lconvert") {}
|
||||||
|
+ , lconvert(xbinpath() + QStringLiteral("/lconvert")) {}
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
|
--- a/tests/auto/linguist/lrelease/tst_lrelease.cpp
|
||||||
|
+++ b/tests/auto/linguist/lrelease/tst_lrelease.cpp
|
||||||
|
@@ -8,13 +8,22 @@
|
||||||
|
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
|
+namespace {
|
||||||
|
+QString xbinpath()
|
||||||
|
+{
|
||||||
|
+ char *build_binpath = getenv("QT_BUILD_BIN_PATH");
|
||||||
|
+ if (build_binpath && *build_binpath)
|
||||||
|
+ return build_binpath;
|
||||||
|
+ return QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
||||||
|
+}
|
||||||
|
+}
|
||||||
|
class tst_lrelease : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
tst_lrelease()
|
||||||
|
- : lrelease(QLibraryInfo::path(QLibraryInfo::BinariesPath) + "/lrelease")
|
||||||
|
+ : lrelease(xbinpath() + QStringLiteral("/lrelease"))
|
||||||
|
, dataDir(QFINDTESTDATA("testdata/"))
|
||||||
|
{}
|
||||||
|
|
||||||
|
--- a/tests/auto/linguist/lupdate/tst_lupdate.cpp
|
||||||
|
+++ b/tests/auto/linguist/lupdate/tst_lupdate.cpp
|
||||||
|
@@ -44,7 +44,10 @@ private:
|
||||||
|
|
||||||
|
tst_lupdate::tst_lupdate()
|
||||||
|
{
|
||||||
|
- QString binPath = QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
||||||
|
+ auto binPath = QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
||||||
|
+ char *build_binpath = getenv("QT_BUILD_BIN_PATH");
|
||||||
|
+ if (build_binpath && *build_binpath)
|
||||||
|
+ binPath = build_binpath;
|
||||||
|
m_cmdLupdate = binPath + QLatin1String("/lupdate");
|
||||||
|
m_basePath = QFINDTESTDATA("testdata/");
|
||||||
|
}
|
||||||
|
--- a/tests/auto/qtdiag/tst_qtdiag.cpp
|
||||||
|
+++ b/tests/auto/qtdiag/tst_qtdiag.cpp
|
||||||
|
@@ -21,7 +21,11 @@ private:
|
||||||
|
|
||||||
|
void tst_QtDiag::initTestCase()
|
||||||
|
{
|
||||||
|
- QString binary = QLibraryInfo::path(QLibraryInfo::BinariesPath) + QStringLiteral("/qtdiag");
|
||||||
+ auto binpath = QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
+ auto binpath = QLibraryInfo::path(QLibraryInfo::BinariesPath);
|
||||||
+ char *build_binpath = getenv("QT_BUILD_BIN_PATH");
|
+ char *build_binpath = getenv("QT_BUILD_BIN_PATH");
|
||||||
+ if (build_binpath && *build_binpath)
|
+ if (build_binpath && *build_binpath)
|
||||||
+ binpath = build_binpath;
|
+ binpath = build_binpath;
|
||||||
const auto extension = QSysInfo::productType() == "windows" ? ".exe" : "";
|
+ QString binary = binpath + QStringLiteral("/qtdiag");
|
||||||
m_qdoc = binpath + QLatin1String("/qdoc") + extension;
|
# ifdef Q_OS_WIN
|
||||||
m_expectedDir.setPath(QFINDTESTDATA("expected_output"));
|
binary += QStringLiteral(".exe");
|
||||||
|
# endif
|
||||||
|
|
|
@ -1,33 +1,42 @@
|
||||||
# Template file for 'qt6-tools'
|
# Template file for 'qt6-tools'
|
||||||
pkgname=qt6-tools
|
pkgname=qt6-tools
|
||||||
version=6.6.0
|
version=6.7.2
|
||||||
revision=2
|
revision=1
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DEXTERNAL_GUMBO=ON -DLITEHTML_UTF8=ON -DUSE_ICU=ON
|
configure_args="-DEXTERNAL_GUMBO=ON -DLITEHTML_UTF8=ON -DUSE_ICU=ON
|
||||||
-DQT_BUILD_SHARED_LIBS=ON -DQT_FEATURE_assistant=ON
|
-DQT_BUILD_SHARED_LIBS=ON -DQT_FEATURE_assistant=ON
|
||||||
-DQT_FEATURE_pixeltool=ON
|
-DQT_FEATURE_pixeltool=ON -DLITEHTML_BUILD_TESTING=OFF
|
||||||
-DQT_FEATURE_distancefieldgenerator=ON"
|
-DQT_FEATURE_distancefieldgenerator=ON"
|
||||||
hostmakedepends="qt6-base perl qt6-plugin-sqlite clang17 clang-tools-extra17
|
hostmakedepends="qt6-base perl qt6-plugin-sqlite clang17 clang-tools-extra17
|
||||||
qt6-declarative-host-tools"
|
qt6-declarative-host-tools"
|
||||||
makedepends="qt6-base-devel qt6-plugin-sqlite qt6-declarative-devel
|
makedepends="qt6-base-private-devel qt6-plugin-sqlite qt6-declarative-private-devel
|
||||||
gumbo-parser-devel icu-devel llvm17-devel"
|
gumbo-parser-devel icu-devel llvm17-devel"
|
||||||
short_desc="Cross-platform application and UI framework (QT6) - qt6-tools component"
|
short_desc="Cross-platform application and UI framework (QT6) - qt6-tools component"
|
||||||
maintainer="John <me@johnnynator.dev>"
|
maintainer="John <me@johnnynator.dev>"
|
||||||
license="custom:GPL-3.0-only-with-Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later"
|
license="custom:GPL-3.0-only-with-Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later"
|
||||||
homepage="https://qt.io/"
|
homepage="https://qt.io/"
|
||||||
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qttools-everywhere-src-${version}.tar.xz"
|
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qttools-everywhere-src-${version}.tar.xz"
|
||||||
checksum=4e9feebc142bbb6e453e1dc3277e09ec45c8ef081b5ee2a029e6684b5905ba99
|
checksum=58e855ad1b2533094726c8a425766b63a04a0eede2ed85086860e54593aa4b2a
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" -DQT_FORCE_BUILD_TOOLS=TRUE"
|
configure_args+=" -DQT_FORCE_BUILD_TOOLS=TRUE"
|
||||||
hostmakedepends+=" qt6-tools"
|
hostmakedepends+=" qt6-tools"
|
||||||
fi
|
fi
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64*|aarch64*)
|
||||||
|
makedepends+=" libomp-devel" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "$XBPS_CHECK_PKGS" ]; then
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
||||||
configure_args+=" -DQT_BUILD_TESTS=ON"
|
configure_args+=" -DQT_BUILD_TESTS=ON"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
subpackages="qt6-designer qt6-help qt6-ui-tools qt6-tools-private-devel qt6-tools-devel"
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
vsed -i -e 's/gumbo/litehtml/' src/assistant/qlitehtml/src/CMakeLists.txt
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSES/Qt-GPL-exception-1.0.txt
|
vlicense LICENSES/Qt-GPL-exception-1.0.txt
|
||||||
}
|
}
|
||||||
|
@ -65,6 +74,20 @@ qt6-ui-tools_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qt6-tools-private-devel_package() {
|
||||||
|
depends="qt6-tools-devel>=${version}_${revision}"
|
||||||
|
short_desc+=" - private development files"
|
||||||
|
pkg_install() {
|
||||||
|
for dir in $(cd ${DESTDIR} && find usr/include -type d -name private); do
|
||||||
|
vmove "$dir"
|
||||||
|
done
|
||||||
|
vmove "usr/lib/cmake/*Private"
|
||||||
|
vmove "usr/lib/qt6/metatypes/*private_*_metatypes.json"
|
||||||
|
vmove "usr/lib/qt6/mkspecs/modules/*_private.pri"
|
||||||
|
vmove "usr/lib/qt6/modules/*Private.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
qt6-tools-devel_package() {
|
qt6-tools-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1"
|
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue