diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
commit | 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa (patch) | |
tree | 0a71618e774dce4efc0ddc7808557a03925de8d9 /media-libs/kimageannotator | |
parent | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (diff) |
gentoo auto-resync : 24:02:2024 - 17:40:43
Diffstat (limited to 'media-libs/kimageannotator')
6 files changed, 184 insertions, 5 deletions
diff --git a/media-libs/kimageannotator/Manifest b/media-libs/kimageannotator/Manifest index 661849c27c49..46978cabef0e 100644 --- a/media-libs/kimageannotator/Manifest +++ b/media-libs/kimageannotator/Manifest @@ -1,5 +1,8 @@ +AUX kimageannotator-0.7.0-fix-qt6-tests.patch 4937 BLAKE2B fda79ca0f40f1b1d1b1372d0663186e117eb70f8241160a7aa7321b4817fbbc38b6b7aba26e3fe5436ce72a17883a5f97a428c95a0191db1f656724a0703f493 SHA512 8b8af05e84da61b61af015f113f9b961e581aded9b0a6e663355bf2ce9020da16418035961401c6dcd2e42ce8f2bf34f0905f5b4a0675f3ff94a18f2646c63c6 DIST kImageAnnotator-0.6.0.tar.gz 257662 BLAKE2B 3736d0e862f1d3f3f9728e4d4d611c7e406d40fe022a2441b1a80355997d86a194064ecade63b7657d3cbf1f63364b8b74654d9c92d809ac056b7dc999d97415 SHA512 5782acd552af2297813164c0612810ec0d2127c174773040d99ec9d281f3575832b06667736a5521e88fa2d57ea6410e42a5d95232cb2dbdd9608917e5d6e896 DIST kImageAnnotator-0.6.1.tar.gz 264176 BLAKE2B dfbfb50d2187572b0e68f1a699e91391fbb1fbc36f9b44f3ad97cab9e4ab3329e20ae4abe7fc68f1cf8dfd1960f2b03b3d6a6c949b4a7102b0c22d35690b8e05 SHA512 92ec8ff06011856e98e5624f9c3d98227e10991385fa41e110187db9b5d7b8de075199844e886618668040b69f8910be51b8cf55a009fac8887954c5b7695b25 -EBUILD kimageannotator-0.6.0.ebuild 902 BLAKE2B 8ee135ce80514578040986d15c2365d1b5007cf84e63ce3f302a685b4f059a027ac7aacfffbfdba71dc041df300b3a1e38e41052e9bff8720e4b1ecfdcda9baa SHA512 44218e165039b3898a2788343d5a9db0521104f6b242d35c22c0b90629fccf83827c1a0370527b18fd422272cfba4705b979f3aa75f469eea9b1d2e9c1d67464 -EBUILD kimageannotator-0.6.1.ebuild 926 BLAKE2B 76c535a1a33d9cef833bf830bbd7b06f6a968a58a2357267b9fbec661baf20f8c574f0531d90629f98225f27d8715c42437fff9c4ca60bbaf910639e4e769366 SHA512 ab7c6317e342d0f4edcc3210cef5a7806556390d230b81a052414744a775bc8c20c21367f81f7dddc9ea7e3abece7b0b24e82999e71757ee9afc9fbc733d2e78 -MISC metadata.xml 398 BLAKE2B 200972ac3dfb66315d1fcb8a3920f79e02cb5e7af2d46edefac2bc3094d8ea114a2fc6517b47bc590bd30e79fd5fdd32964d4bb228bc204935b9db32b0caa7e7 SHA512 a778611b727bf8a2fddc15acfedd2d52024f2c8fc2c46a33950818f8296ce8f97411814caf01f918e2dfce1c283db2a2928c7758f7594d49493edd2ef9de9dbc +DIST kImageAnnotator-0.7.0.tar.gz 266849 BLAKE2B eda6428caf37dedc24f613e513c970a94a0b25f37ea62953a9cf4b7afe3abd01b487f5a19f1c7baa34d9f31dfa0aaefed192f23ca2e3e1f06964cc6e4a951888 SHA512 e2a6d3014476fcb6e8838c0d0aa72e4bf5ccf6fbe1314ee6c1f44bb4299c6bd1b04be305e1039628f55e5e5e1626899329d9b93314c1f1fd2870bafaf0a8e2ff +EBUILD kimageannotator-0.6.0.ebuild 934 BLAKE2B 177c801eddc96c8e0bf53a132a2f15cc6294715575a82c269c5ec3638f19ba5b8fbd93184d1936550d12840c8b15b6d800cf1f30472a5555743b3bf636ba08a0 SHA512 54bffdda93f6b5bb52f2faa3bd8dcd73102dbebc672ce20f0fe655504e29fa717215471c76c801f456dc6fba09bdeb801632a2d0e810a909e8b53cbb52ddd4e6 +EBUILD kimageannotator-0.6.1.ebuild 958 BLAKE2B ace9810abbb9c94a2d20d16f0fc2047e2a4321d4ff30051ee8399bd0a6f43df5b93dc7d616cba15ddaecc2aaeef5fc4a87ac25c2ca12c9b834f7d01539f41362 SHA512 0a33678e48a85ed5775afb28fd7face9d1fbbb96580ee32beafe998cd128f68f7fe6f2772f3a2170c488a5b405d086e9d9ccc46410ca15714076a9588be04aee +EBUILD kimageannotator-0.7.0.ebuild 987 BLAKE2B f64afbd34e24910d4d83caa46431fa1685aff18be2e028dbb538637376a87ee1f08129e91e2af52c46a2d73ff53089f488781937e6221cf1434f9d36c8bcd58d SHA512 c47903cb506ead073ffa88c59133e056225ea8a318526ea6781a61b9603725bf26a229347ab1b0f9a879a16de193df244f797aa4e9c15a87cb2df36e2fbe4d79 +MISC metadata.xml 594 BLAKE2B d54c8385b90271cf917c61e72900f9080dd03f83b46d0f15730af188f3965705742608cd1b54f24deba32e72416e457e86ed5d38996bb4517222808d850e9993 SHA512 680038e96337f6f8b1cd66268947431f49d1c04e71988b453f6557e1a6da2d9861b36e3c59f643a03460dc67bdd5564218a97769302b789cf040f12f619a8586 diff --git a/media-libs/kimageannotator/files/kimageannotator-0.7.0-fix-qt6-tests.patch b/media-libs/kimageannotator/files/kimageannotator-0.7.0-fix-qt6-tests.patch new file mode 100644 index 000000000000..985bf108c1a3 --- /dev/null +++ b/media-libs/kimageannotator/files/kimageannotator-0.7.0-fix-qt6-tests.patch @@ -0,0 +1,117 @@ +From dbcb28f4fe8deb5ce83d45907f97516eade74420 Mon Sep 17 00:00:00 2001 +From: Heiko Becker <mail@heiko-becker.de> +Date: Tue, 6 Feb 2024 18:47:20 +0000 +Subject: [PATCH] Fix building the tests with Qt 6 (#332) + +* Remove usage of QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS + +According to commit 641eb4a96552615d898512723e2093abcaf7fbc1 in +qtbase.git they serve no purpose anymore and were subsequently removed +in Qt6. + +Closes #331. + +* Replace QLatin1Literal with QStringLiteral + +The former is deprecated and was removed from Qt6. +--- + .../annotations/core/AnnotationPropertiesFactoryTest.cpp | 2 +- + tests/gui/annotator/tabs/AnnotationTabContextMenuTest.cpp | 6 +++--- + tests/utils/TestRunner.h | 8 -------- + tests/widgets/settingsPicker/StickerPickerTest.cpp | 4 ++-- + 4 files changed, 6 insertions(+), 14 deletions(-) + +diff --git a/tests/annotations/core/AnnotationPropertiesFactoryTest.cpp b/tests/annotations/core/AnnotationPropertiesFactoryTest.cpp +index 77b43057..ce5047ef 100644 +--- a/tests/annotations/core/AnnotationPropertiesFactoryTest.cpp ++++ b/tests/annotations/core/AnnotationPropertiesFactoryTest.cpp +@@ -199,7 +199,7 @@ void AnnotationPropertiesFactoryTest::TestCreate_Should_SetToolFontBasedOnSettin + void AnnotationPropertiesFactoryTest::TestCreate_Should_StickerPathBasedOnSettings() + { + auto tool = Tools::Sticker; +- auto path = QLatin1Literal("/my/path/to/sticker"); ++ auto path = QStringLiteral("/my/path/to/sticker"); + MockDefaultParameters parameters; + auto settingsProvider = new MockSettingsProvider(); + settingsProvider->setSticker(path); +diff --git a/tests/gui/annotator/tabs/AnnotationTabContextMenuTest.cpp b/tests/gui/annotator/tabs/AnnotationTabContextMenuTest.cpp +index 0c4904de..a5c86d7f 100644 +--- a/tests/gui/annotator/tabs/AnnotationTabContextMenuTest.cpp ++++ b/tests/gui/annotator/tabs/AnnotationTabContextMenuTest.cpp +@@ -40,8 +40,8 @@ void AnnotationTabContextMenuTest::TestCustomActionTriggered_Should_CallInnerAct + void AnnotationTabContextMenuTest::TestAddCustomActions_Should_SetTextIconAndToolTipInOuterAction() + { + QAction customAction; +- customAction.setText(QLatin1Literal("LaLa")); +- customAction.setToolTip(QLatin1Literal("Hello Hello")); ++ customAction.setText(QStringLiteral("LaLa")); ++ customAction.setToolTip(QStringLiteral("Hello Hello")); + customAction.setIcon(QIcon()); + QWidget parent; + AnnotationTabContextMenu menu(&parent); +@@ -68,4 +68,4 @@ void AnnotationTabContextMenuTest::TestCustomActionChanged_Should_UpdateEnabledS + QCOMPARE(customAction.isEnabled(), outerAction->isEnabled()); + } + +-TEST_MAIN(AnnotationTabContextMenuTest); +\ No newline at end of file ++TEST_MAIN(AnnotationTabContextMenuTest); +diff --git a/tests/utils/TestRunner.h b/tests/utils/TestRunner.h +index 214b8b02..ff742f02 100644 +--- a/tests/utils/TestRunner.h ++++ b/tests/utils/TestRunner.h +@@ -69,9 +69,6 @@ class GoogleTestEventListener : public ::testing::EmptyTestEventListener { + #endif + + #define TEST_MAIN(TestObject) \ +-QT_BEGIN_NAMESPACE \ +-QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS \ +-QT_END_NAMESPACE \ + int main(int argc, char *argv[]) \ + { \ + INIT_GOOGLE_MOCKS (argc, argv); \ +@@ -79,7 +76,6 @@ int main(int argc, char *argv[]) \ + QApplication app(argc, argv); \ + app.setAttribute(Qt::AA_Use96Dpi, true); \ + QTEST_DISABLE_KEYPAD_NAVIGATION \ +- QTEST_ADD_GPU_BLACKLIST_SUPPORT \ + TestObject tc; \ + QTEST_SET_MAIN_SOURCE_PATH \ + return QTest::qExec(&tc, argc, argv); \ +@@ -90,16 +86,12 @@ int main(int argc, char *argv[]) \ + #include <QtTest/qtest_gui.h> + + #define TEST_MAIN(TestObject) \ +-QT_BEGIN_NAMESPACE \ +-QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS \ +-QT_END_NAMESPACE \ + int main(int argc, char *argv[]) \ + { \ + INIT_GOOGLE_MOCKS (argc, argv); \ + \ + QGuiApplication app(argc, argv); \ + app.setAttribute(Qt::AA_Use96Dpi, true); \ +- QTEST_ADD_GPU_BLACKLIST_SUPPORT \ + TestObject tc; \ + QTEST_SET_MAIN_SOURCE_PATH \ + return QTest::qExec(&tc, argc, argv); \ +diff --git a/tests/widgets/settingsPicker/StickerPickerTest.cpp b/tests/widgets/settingsPicker/StickerPickerTest.cpp +index 94c26802..7c539fcb 100644 +--- a/tests/widgets/settingsPicker/StickerPickerTest.cpp ++++ b/tests/widgets/settingsPicker/StickerPickerTest.cpp +@@ -23,7 +23,7 @@ void StickerPickerTest::TestSelectSticker_Should_EmitSignal_When_StickerChanged( + { + StickerPicker stickerPicker(nullptr); + QSignalSpy spy(&stickerPicker, &StickerPicker::stickerSelected); +- auto expectedStickerPath = QLatin1Literal(":/stickers/nerd_face.svg"); ++ auto expectedStickerPath = QStringLiteral(":/stickers/nerd_face.svg"); + + stickerPicker.setSticker(expectedStickerPath); + +@@ -32,4 +32,4 @@ void StickerPickerTest::TestSelectSticker_Should_EmitSignal_When_StickerChanged( + QCOMPARE(resultSize, expectedStickerPath); + } + +-TEST_MAIN(StickerPickerTest); +\ No newline at end of file ++TEST_MAIN(StickerPickerTest); diff --git a/media-libs/kimageannotator/kimageannotator-0.6.0.ebuild b/media-libs/kimageannotator/kimageannotator-0.6.0.ebuild index c80fd7661803..fca1139e8043 100644 --- a/media-libs/kimageannotator/kimageannotator-0.6.0.ebuild +++ b/media-libs/kimageannotator/kimageannotator-0.6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -25,6 +25,7 @@ RDEPEND=" dev-qt/qtsvg:5 dev-qt/qtwidgets:5[png] >=media-libs/kcolorpicker-0.2.0 + <media-libs/kcolorpicker-0.3.0 x11-libs/libX11 " DEPEND="${RDEPEND} diff --git a/media-libs/kimageannotator/kimageannotator-0.6.1.ebuild b/media-libs/kimageannotator/kimageannotator-0.6.1.ebuild index d8bf925f00f3..7e184fac91b8 100644 --- a/media-libs/kimageannotator/kimageannotator-0.6.1.ebuild +++ b/media-libs/kimageannotator/kimageannotator-0.6.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -25,6 +25,7 @@ RDEPEND=" dev-qt/qtsvg:5 dev-qt/qtwidgets:5[png] >=media-libs/kcolorpicker-0.2.0 + <media-libs/kcolorpicker-0.3.0 x11-libs/libX11 " DEPEND="${RDEPEND} diff --git a/media-libs/kimageannotator/kimageannotator-0.7.0.ebuild b/media-libs/kimageannotator/kimageannotator-0.7.0.ebuild new file mode 100644 index 000000000000..b912dadc508a --- /dev/null +++ b/media-libs/kimageannotator/kimageannotator-0.7.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VIRTUALX_REQUIRED="test" +inherit cmake + +MY_PN=kImageAnnotator +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tool for annotating images" +HOMEPAGE="https://github.com/ksnip/kImageAnnotator" +SRC_URI="https://github.com/ksnip/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtbase:6[gui,widgets] + dev-qt/qtsvg:6 + >=media-libs/kcolorpicker-0.3.0 +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest + dev-qt/qtbase:6[test] + ) +" +BDEPEND="dev-qt/qttools:6[linguist]" + +PATCHES=( "${FILESDIR}/${P}-fix-qt6-tests.patch" ) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DBUILD_WITH_QT6=ON + ) + cmake_src_configure +} + +src_test() { + local -x QT_QPA_PLATFORM=offscreen + BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test +} diff --git a/media-libs/kimageannotator/metadata.xml b/media-libs/kimageannotator/metadata.xml index 4ddb8c1adc71..f4a2088a6f74 100644 --- a/media-libs/kimageannotator/metadata.xml +++ b/media-libs/kimageannotator/metadata.xml @@ -9,4 +9,11 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <remote-id type="github">ksnip/kImageAnnotator</remote-id> + </upstream> </pkgmetadata> |