Commit graph

23 commits

Author SHA1 Message Date
Ivailo Monev
55699fc8a3 kdecore: remove the unused "html" and hidden "home" standard directory resources
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-10 04:15:48 +03:00
Ivailo Monev
b9186c0327 kdecore: drop standard directories KIOSK support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-05 14:46:22 +03:00
Ivailo Monev
4f16fe642d generic: simplify special resources directories creation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-25 04:23:40 +03:00
Ivailo Monev
20c0503ed6 kdecore: replace use of QtConcurrent::run() with std::future<T>()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-18 23:41:17 +03:00
Ivailo Monev
ef8346a9ce generic: execute tests via script
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-13 18:21:05 +03:00
Ivailo Monev
49dc492e17 kexiv2: replace with smaller utility library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-01 16:24:52 +03:00
Ivailo Monev
39d1fc86c4 kdcraw: now unused, removing it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-31 22:56:10 +03:00
Ivailo Monev
5f59a7360d kdecore: adjust expected data in KStandarddirsTest::testFindAllResources()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-26 01:40:34 +03:00
Ivailo Monev
478ca250a2 generic: replace installation paths with KDE4_ prefixed
this is TODO from issue #9. CPack and CTest configs will not be
supported. most of the changes done to other repisitories is automated
via:

find -type f -exec sed -i -e 's|${INSTALL_DIR}|${KDE4_INSTALL_DIR}|g' \
    -e 's|${EXEC_INSTALL_PREFIX}|${KDE4_EXEC_INSTALL_PREFIX}|g' \
    -e 's|${SHARE_INSTALL_PREFIX}|${KDE4_SHARE_INSTALL_PREFIX}|g' \
    -e 's|${BIN_INSTALL_DIR}|${KDE4_BIN_INSTALL_DIR}|g' \
    -e 's|${SBIN_INSTALL_DIR}|${KDE4_SBIN_INSTALL_DIR}|g' \
    -e 's|${LIB_INSTALL_DIR}|${KDE4_LIB_INSTALL_DIR}|g' \
    -e 's|${LIBEXEC_INSTALL_DIR}|${KDE4_LIBEXEC_INSTALL_DIR}|g' \
    -e 's|${INCLUDE_INSTALL_DIR}|${KDE4_INCLUDE_INSTALL_DIR}|g' \
    -e 's|${PLUGIN_INSTALL_DIR}|${KDE4_PLUGIN_INSTALL_DIR}|g' \
    -e 's|${IMPORTS_INSTALL_DIR}|${KDE4_IMPORTS_INSTALL_DIR}|g' \
    -e 's|${CONFIG_INSTALL_DIR}|${KDE4_CONFIG_INSTALL_DIR}|g' \
    -e 's|${DATA_INSTALL_DIR}|${KDE4_DATA_INSTALL_DIR}|g' \
    -e 's|${ICON_INSTALL_DIR}|${KDE4_ICON_INSTALL_DIR}|g' \
    -e 's|${KCFG_INSTALL_DIR}|${KDE4_KCFG_INSTALL_DIR}|g' \
    -e 's|${LOCALE_INSTALL_DIR}|${KDE4_LOCALE_INSTALL_DIR}|g' \
    -e 's|${MIME_INSTALL_DIR}|${KDE4_MIME_INSTALL_DIR}|g' \
    -e 's|${SERVICES_INSTALL_DIR}|${KDE4_SERVICES_INSTALL_DIR}|g' \
    -e 's|${SERVICETYPES_INSTALL_DIR}|${KDE4_SERVICETYPES_INSTALL_DIR}|g' \
    -e 's|${SOUND_INSTALL_DIR}|${KDE4_SOUND_INSTALL_DIR}|g' \
    -e 's|${TEMPLATES_INSTALL_DIR}|${KDE4_TEMPLATES_INSTALL_DIR}|g' \
    -e 's|${WALLPAPER_INSTALL_DIR}|${KDE4_WALLPAPER_INSTALL_DIR}|g' \
    -e 's|${AUTOSTART_INSTALL_DIR}|${KDE4_AUTOSTART_INSTALL_DIR}|g' \
    -e 's|${XDG_APPS_INSTALL_DIR}|${KDE4_XDG_APPS_INSTALL_DIR}|g' \
    -e 's|${XDG_DIRECTORY_INSTALL_DIR}|${KDE4_XDG_DIRECTORY_INSTALL_DIR}|g' \
    -e 's|${XDG_MIME_INSTALL_DIR}|${KDE4_XDG_MIME_INSTALL_DIR}|g' \
    -e 's|${SYSCONF_INSTALL_DIR}|${KDE4_SYSCONF_INSTALL_DIR}|g' \
    -e 's|${MAN_INSTALL_DIR}|${KDE4_MAN_INSTALL_DIR}|g' \
    -e 's|${INFO_INSTALL_DIR}|${KDE4_INFO_INSTALL_DIR}|g' \
    -e 's|${DBUS_INTERFACES_INSTALL_DIR}|${KDE4_DBUS_INTERFACES_INSTALL_DIR}|g' \
    -e 's|${DBUS_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SERVICES_INSTALL_DIR}|g' \
    -e 's|${DBUS_SYSTEM_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SYSTEM_SERVICES_INSTALL_DIR}|g' \
    -e 's|${KAUTH_HELPER_PLUGIN_DIR}|${KDE4_KAUTH_HELPER_PLUGIN_DIR}|g' \
    -e 's|${KAUTH_BACKEND_PLUGIN_DIR}|${KDE4_KAUTH_BACKEND_PLUGIN_DIR}|g' {} +

note that if you execute this command you may corrupt the git repository
files so move the .git directory out of the way. you can also verify
that there are no other reference to the compatibility installation
paths via:

git grep \
    -e INSTALL_DIR \
    -e EXEC_INSTALL_PREFIX \
    -e SHARE_INSTALL_PREFIX \
    -e BIN_INSTALL_DIR \
    -e SBIN_INSTALL_DIR \
    -e LIB_INSTALL_DIR \
    -e LIBEXEC_INSTALL_DIR \
    -e INCLUDE_INSTALL_DIR \
    -e PLUGIN_INSTALL_DIR \
    -e IMPORTS_INSTALL_DIR \
    -e CONFIG_INSTALL_DIR \
    -e DATA_INSTALL_DIR \
    -e ICON_INSTALL_DIR \
    -e KCFG_INSTALL_DIR \
    -e LOCALE_INSTALL_DIR \
    -e MIME_INSTALL_DIR \
    -e SERVICES_INSTALL_DIR \
    -e SERVICETYPES_INSTALL_DIR \
    -e SOUND_INSTALL_DIR \
    -e TEMPLATES_INSTALL_DIR \
    -e WALLPAPER_INSTALL_DIR \
    -e AUTOSTART_INSTALL_DIR \
    -e XDG_APPS_INSTALL_DIR \
    -e XDG_DIRECTORY_INSTALL_DIR \
    -e XDG_MIME_INSTALL_DIR \
    -e SYSCONF_INSTALL_DIR \
    -e MAN_INSTALL_DIR \
    -e INFO_INSTALL_DIR \
    -e DBUS_INTERFACES_INSTALL_DIR \
    -e DBUS_SERVICES_INSTALL_DIR \
    -e DBUS_SYSTEM_SERVICES_INSTALL_DIR \
    -e KAUTH_HELPER_PLUGIN_DIR \
    -e KAUTH_BACKEND_PLUGIN_DIR | grep -v KDE4_

this change should make default installation Filesystem Hierarchy
Standard (FHS) compliant and packaging easier since library suffix (e.g.
64 for x86_64 hosts) will not have to be specified explicitly, it may
solve possible conflicts with installation path variables from other
projects which use custom installation paths aswell

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:46:43 +00:00
Ivailo Monev
38c049bb36 kdecore: use QDir::exists() to check for directory existence from tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 22:38:07 +00:00
Ivailo Monev
4e24ac5d73 kdecore: fix resource type test
the data that was used for the tests is long gone as it was part
of kdoctools

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-08 17:56:45 +02:00
Ivailo Monev
c5e5536470 kdecore: fix kstandarddirs test, kconf_update is not longer supported
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-03 06:31:20 +02:00
Ivailo Monev
d721a8ddf3 kdecore: fix build of kstandarddirs test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-29 18:21:24 +02:00
Ivailo Monev
732148f49b generic: partitially revert 22db5ad6 2015-06-14 18:49:20 +03:00
Ivailo Monev
22db5ad66c generic: change standard paths 2015-05-20 13:36:16 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
e6b7634185 kdecore: make the standarddirs test check for KDE4Macros.cmake not FindSoprano.cmake now that Soprano is no longer dependency 2015-02-24 19:17:58 +00:00
Ivailo Monev
2d55a8d3dd katana -> kde4 2014-11-20 09:05:46 +00:00
Ivailo Monev
9d86872eeb more hardcoded paths corrections (they should be unhardcoded but that will be done in the future) 2014-11-19 18:20:59 +00:00
Ivailo Monev
c7a2a17692 yet more windows and mac code remove 2014-11-19 15:30:39 +00:00
Ivailo Monev
b99fa1400b more windows code remove 2014-11-19 15:19:19 +00:00
Ivailo Monev
c3f3bcb965 windows code remove 2014-11-19 15:17:14 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00