diff --git a/graphics/kolourpaint/Makefile b/graphics/kolourpaint/Makefile index 30f06b00a03e..5650ceaffbc8 100644 --- a/graphics/kolourpaint/Makefile +++ b/graphics/kolourpaint/Makefile @@ -1,23 +1,23 @@ PORTNAME= kolourpaint DISTVERSION= ${KDE_APPLICATIONS_VERSION} +PORTREVISION= 1 CATEGORIES= graphics kde kde-applications MAINTAINER= kde@FreeBSD.org COMMENT= KDE paint program WWW= http://www.kolourpaint.org -USES= cmake compiler:c++11-lang desktop-file-utils gettext kde:6 \ - qt:6 tar:xz xorg -USE_KDE= auth bookmarks codecs completion config configwidgets \ - coreaddons crash guiaddons i18n iconthemes itemmodels \ - itemviews jobwidgets kio libkexiv2 libksane notifications \ - parts service solid sonnet textwidgets unitconversion \ - widgetsaddons windowsystem xmlgui \ +USES= cmake compiler:c++17-lang desktop-file-utils gettext-tools gl \ + kde:6 qt:6 tar:xz xorg +USE_GL= opengl +USE_KDE= bookmarks colorscheme completion config configwidgets \ + coreaddons crash guiaddons i18n itemviews jobwidgets kio \ + libksane service solid widgetsaddons xmlgui \ ecm:build +USE_LDCONFIG= yes USE_QT= base USE_XORG= x11 -USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS .include diff --git a/graphics/kolourpaint/files/patch-CMakeLists.txt b/graphics/kolourpaint/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..2e6df0d40d0d --- /dev/null +++ b/graphics/kolourpaint/files/patch-CMakeLists.txt @@ -0,0 +1,24 @@ +Remove unused TextWidgets. +Don't globally install color palettes only used by this application. + +Ref: https://invent.kde.org/graphics/kolourpaint/-/merge_requests/79 + +--- CMakeLists.txt.orig 2025-08-07 03:21:56 UTC ++++ CMakeLists.txt +@@ -39,7 +39,6 @@ find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS + WidgetsAddons + KIO + XmlGui +- TextWidgets + JobWidgets + Crash + ) +@@ -368,7 +367,7 @@ install(FILES org.kde.kolourpaint.appdata.xml DESTINAT + + install(PROGRAMS org.kde.kolourpaint.desktop DESTINATION ${KDE_INSTALL_APPDIR}) + install(FILES org.kde.kolourpaint.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) +-install(DIRECTORY colors DESTINATION ${KDE_INSTALL_CONFDIR}) ++install(DIRECTORY colors DESTINATION ${KDE_INSTALL_DATADIR}/kolourpaint) + + if(BUILD_DOC) + add_subdirectory(doc) diff --git a/graphics/kolourpaint/files/patch-lgpl_generic_kpColorCollection.cpp b/graphics/kolourpaint/files/patch-lgpl_generic_kpColorCollection.cpp new file mode 100644 index 000000000000..8c471bb27858 --- /dev/null +++ b/graphics/kolourpaint/files/patch-lgpl_generic_kpColorCollection.cpp @@ -0,0 +1,24 @@ +Don't globally install color palettes only used by this application. + +Ref: https://invent.kde.org/graphics/kolourpaint/-/merge_requests/79 + +--- lgpl/generic/kpColorCollection.cpp.orig 2025-08-07 03:21:56 UTC ++++ lgpl/generic/kpColorCollection.cpp +@@ -80,7 +80,7 @@ QStringList kpColorCollection::installedCollections() + { + QStringList paletteList; + +- QStringList paths = QStandardPaths::locateAll(QStandardPaths::GenericConfigLocation, QStringLiteral("colors"), QStandardPaths::LocateDirectory); ++ QStringList paths = QStandardPaths::locateAll(QStandardPaths::AppDataLocation, QStringLiteral("colors"), QStandardPaths::LocateDirectory); + for (const auto &path : paths) { + paletteList.append(QDir(path).entryList(QStringList(), QDir::Files)); + } +@@ -206,7 +206,7 @@ bool kpColorCollection::openKDE(const QString &name, Q + return false; + } + +- QString filename = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("colors/") + name); ++ QString filename = QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("colors/") + name); + if (filename.isEmpty()) { + #if DEBUG_KP_COLOR_COLLECTION + qCDebug(kpLogColorCollection) << "could not find file"; diff --git a/graphics/kolourpaint/pkg-plist b/graphics/kolourpaint/pkg-plist index 8279feb849b1..c0aab3952d85 100644 --- a/graphics/kolourpaint/pkg-plist +++ b/graphics/kolourpaint/pkg-plist @@ -1,180 +1,180 @@ bin/kolourpaint -etc/xdg/colors/40.colors -etc/xdg/colors/Oxygen.colors -etc/xdg/colors/Rainbow.colors -etc/xdg/colors/Royal.colors -etc/xdg/colors/Web.colors lib/libkolourpaint_lgpl.so lib/libkolourpaint_lgpl.so.5 share/applications/org.kde.kolourpaint.desktop share/icons/hicolor/128x128/apps/kolourpaint.png share/icons/hicolor/16x16/apps/kolourpaint.png share/icons/hicolor/22x22/apps/kolourpaint.png share/icons/hicolor/32x32/apps/kolourpaint.png share/icons/hicolor/48x48/apps/kolourpaint.png share/icons/hicolor/scalable/apps/kolourpaint.svgz +%%DATADIR%%/colors/40.colors +%%DATADIR%%/colors/Oxygen.colors +%%DATADIR%%/colors/Rainbow.colors +%%DATADIR%%/colors/Royal.colors +%%DATADIR%%/colors/Web.colors %%DATADIR%%/icons/hicolor/16x16/actions/tool_brush.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_color_eraser.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_color_picker.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_curve.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_ellipse.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_elliptical_selection.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_eraser.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_flood_fill.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_free_form_selection.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_line.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_pen.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_polygon.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_polyline.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_rect_selection.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_rectangle.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_rounded_rectangle.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_spraycan.png %%DATADIR%%/icons/hicolor/16x16/actions/tool_text.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_brush.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_color_eraser.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_color_picker.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_curve.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_ellipse.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_elliptical_selection.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_eraser.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_flood_fill.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_free_form_selection.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_line.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_pen.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_polygon.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_polyline.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_rect_selection.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_rectangle.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_rounded_rectangle.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_spraycan.png %%DATADIR%%/icons/hicolor/22x22/actions/tool_text.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_brush.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_color_eraser.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_color_picker.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_curve.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_ellipse.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_elliptical_selection.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_eraser.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_flood_fill.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_free_form_selection.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_line.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_pen.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_polygon.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_polyline.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_rect_selection.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_rectangle.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_rounded_rectangle.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_spraycan.png %%DATADIR%%/icons/hicolor/32x32/actions/tool_text.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_brush.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_color_eraser.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_color_picker.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_curve.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_ellipse.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_elliptical_selection.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_eraser.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_flood_fill.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_free_form_selection.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_line.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_pen.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_polygon.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_polyline.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_rect_selection.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_rectangle.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_rounded_rectangle.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_spraycan.png %%DATADIR%%/icons/hicolor/48x48/actions/tool_text.png %%DATADIR%%/icons/hicolor/scalable/actions/tool_brush.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_color_eraser.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_color_picker.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_curve.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_ellipse.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_elliptical_selection.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_eraser.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_flood_fill.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_free_form_selection.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_line.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_pen.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_polygon.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_polyline.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_rect_selection.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_rectangle.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_rounded_rectangle.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_spraycan.svgz %%DATADIR%%/icons/hicolor/scalable/actions/tool_text.svgz share/locale/ar/LC_MESSAGES/kolourpaint.mo share/locale/be/LC_MESSAGES/kolourpaint.mo share/locale/bg/LC_MESSAGES/kolourpaint.mo share/locale/br/LC_MESSAGES/kolourpaint.mo share/locale/bs/LC_MESSAGES/kolourpaint.mo share/locale/ca/LC_MESSAGES/kolourpaint.mo share/locale/ca@valencia/LC_MESSAGES/kolourpaint.mo share/locale/cs/LC_MESSAGES/kolourpaint.mo share/locale/cy/LC_MESSAGES/kolourpaint.mo share/locale/da/LC_MESSAGES/kolourpaint.mo share/locale/de/LC_MESSAGES/kolourpaint.mo share/locale/el/LC_MESSAGES/kolourpaint.mo share/locale/en_GB/LC_MESSAGES/kolourpaint.mo share/locale/eo/LC_MESSAGES/kolourpaint.mo share/locale/es/LC_MESSAGES/kolourpaint.mo share/locale/et/LC_MESSAGES/kolourpaint.mo share/locale/eu/LC_MESSAGES/kolourpaint.mo share/locale/fa/LC_MESSAGES/kolourpaint.mo share/locale/fi/LC_MESSAGES/kolourpaint.mo share/locale/fr/LC_MESSAGES/kolourpaint.mo share/locale/fy/LC_MESSAGES/kolourpaint.mo share/locale/ga/LC_MESSAGES/kolourpaint.mo share/locale/gl/LC_MESSAGES/kolourpaint.mo share/locale/he/LC_MESSAGES/kolourpaint.mo share/locale/hi/LC_MESSAGES/kolourpaint.mo share/locale/hne/LC_MESSAGES/kolourpaint.mo share/locale/hr/LC_MESSAGES/kolourpaint.mo share/locale/hu/LC_MESSAGES/kolourpaint.mo share/locale/ia/LC_MESSAGES/kolourpaint.mo share/locale/id/LC_MESSAGES/kolourpaint.mo share/locale/is/LC_MESSAGES/kolourpaint.mo share/locale/it/LC_MESSAGES/kolourpaint.mo share/locale/ja/LC_MESSAGES/kolourpaint.mo share/locale/ka/LC_MESSAGES/kolourpaint.mo share/locale/kk/LC_MESSAGES/kolourpaint.mo share/locale/km/LC_MESSAGES/kolourpaint.mo share/locale/ko/LC_MESSAGES/kolourpaint.mo share/locale/lt/LC_MESSAGES/kolourpaint.mo share/locale/lv/LC_MESSAGES/kolourpaint.mo share/locale/mk/LC_MESSAGES/kolourpaint.mo share/locale/ml/LC_MESSAGES/kolourpaint.mo share/locale/mr/LC_MESSAGES/kolourpaint.mo share/locale/ms/LC_MESSAGES/kolourpaint.mo share/locale/nb/LC_MESSAGES/kolourpaint.mo share/locale/nds/LC_MESSAGES/kolourpaint.mo share/locale/ne/LC_MESSAGES/kolourpaint.mo share/locale/nl/LC_MESSAGES/kolourpaint.mo share/locale/nn/LC_MESSAGES/kolourpaint.mo share/locale/oc/LC_MESSAGES/kolourpaint.mo share/locale/pa/LC_MESSAGES/kolourpaint.mo share/locale/pl/LC_MESSAGES/kolourpaint.mo share/locale/pt/LC_MESSAGES/kolourpaint.mo share/locale/pt_BR/LC_MESSAGES/kolourpaint.mo share/locale/ro/LC_MESSAGES/kolourpaint.mo share/locale/ru/LC_MESSAGES/kolourpaint.mo share/locale/sa/LC_MESSAGES/kolourpaint.mo share/locale/se/LC_MESSAGES/kolourpaint.mo share/locale/si/LC_MESSAGES/kolourpaint.mo share/locale/sk/LC_MESSAGES/kolourpaint.mo share/locale/sl/LC_MESSAGES/kolourpaint.mo share/locale/sq/LC_MESSAGES/kolourpaint.mo share/locale/sv/LC_MESSAGES/kolourpaint.mo share/locale/ta/LC_MESSAGES/kolourpaint.mo share/locale/tg/LC_MESSAGES/kolourpaint.mo share/locale/th/LC_MESSAGES/kolourpaint.mo share/locale/tok/LC_MESSAGES/kolourpaint.mo share/locale/tr/LC_MESSAGES/kolourpaint.mo share/locale/ug/LC_MESSAGES/kolourpaint.mo share/locale/uk/LC_MESSAGES/kolourpaint.mo share/locale/uz/LC_MESSAGES/kolourpaint.mo share/locale/uz@cyrillic/LC_MESSAGES/kolourpaint.mo share/locale/zh_CN/LC_MESSAGES/kolourpaint.mo share/locale/zh_HK/LC_MESSAGES/kolourpaint.mo share/locale/zh_TW/LC_MESSAGES/kolourpaint.mo share/metainfo/org.kde.kolourpaint.appdata.xml