From 767f96ab4dc723d8fe4f9b5c046f85073ebd89af Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Sun, 18 Aug 2019 20:38:26 +0300 Subject: [PATCH] kio_extras: add recipe --- kde-apps/kio-extras/kio_extras-18.12.2.recipe | 148 ++++++++++++++++++ .../patches/kio_extras-18.12.2.patchset | 68 ++++++++ 2 files changed, 216 insertions(+) create mode 100644 kde-apps/kio-extras/kio_extras-18.12.2.recipe create mode 100644 kde-apps/kio-extras/patches/kio_extras-18.12.2.patchset diff --git a/kde-apps/kio-extras/kio_extras-18.12.2.recipe b/kde-apps/kio-extras/kio_extras-18.12.2.recipe new file mode 100644 index 000000000..bcdfad00d --- /dev/null +++ b/kde-apps/kio-extras/kio_extras-18.12.2.recipe @@ -0,0 +1,148 @@ +SUMMARY="Additional components to increase the functionality of KIO" +DESCRIPTION="A kioslave is a plugin designed to be intimately familiar with a \ +certain protocol, so that a standardized interface can be used to get at data \ +from any number of places. A few examples are the http and ftp kioslaves, \ +which using nearly identical methods will retrieve data from an http or ftp \ +server respectively." +HOMEPAGE="https://github.com/KDE/kio-extras/" +COPYRIGHT="2010-2019 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/kio-extras/archive/v$portVersion.tar.gz" +SOURCE_DIR="kio-extras-$portVersion" +CHECKSUM_SHA256="5a0c97d699990bfe4200d15867d37125c8dbfe6e8a61106b2b34c3668060e844" +PATCHES="kio_extras-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +GLOBAL_WRITABLE_FILES=" + settings/xdg/kio-extras.categories keep-old + " + +PROVIDES=" + kio_extras$secondaryArchSuffix = $portVersion + lib:libkioarchive$secondaryArchSuffix = $portVersion compat >= 5 + lib:libmolletnetwork5$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Activities$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Bookmarks$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5DBusAddons$secondaryArchSuffix + lib:libKF5DNSSD$secondaryArchSuffix + lib:libKF5GuiAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5IconThemes$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libmtp$secondaryArchSuffix + lib:libphonon4qt5$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libsmbclient$secondaryArchSuffix + lib:libssh$secondaryArchSuffix + " + +PROVIDES_devel=" + kio_extras${secondaryArchSuffix}_devel = $portVersion + devel:libkioarchive$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + kio_extras$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix + devel:libKF5Activities$secondaryArchSuffix + devel:libKF5Archive$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5DBusAddons$secondaryArchSuffix + devel:libKF5DNSSD$secondaryArchSuffix + devel:libKF5DocTools$secondaryArchSuffix + devel:libKF5GuiAddons$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5IconThemes$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libmtp$secondaryArchSuffix + devel:libphonon4qt5$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix >= 5.7 + devel:libQt5DBus$secondaryArchSuffix >= 5.7 + devel:libQt5Gui$secondaryArchSuffix >= 5.7 + devel:libQt5Network$secondaryArchSuffix >= 5.7 + devel:libsmbclient$secondaryArchSuffix + devel:libssh$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:gperf + cmd:lrelease$secondaryArchSuffix >= 5 + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:find + cmd:update_mime_database$secondaryArchSuffix + " + +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix #it opens windows during the tests, maybe we don't want that on the buildbots. + " + +BUILD() +{ + mkdir -p build + cd build + + cmake .. $cmakeDirArgs \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make $jobArgs +} + +INSTALL() +{ + cd build + make $jobArgs install + + prepareInstalledDevelLibs \ + libkioarchive \ + + packageEntries devel \ + $libDir/cmake \ + $developDir +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + cd build + make test +} diff --git a/kde-apps/kio-extras/patches/kio_extras-18.12.2.patchset b/kde-apps/kio-extras/patches/kio_extras-18.12.2.patchset new file mode 100644 index 000000000..0c2d3e29e --- /dev/null +++ b/kde-apps/kio-extras/patches/kio_extras-18.12.2.patchset @@ -0,0 +1,68 @@ +From 12910f0f724adba5937e6499a77c8cdd44542256 Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Sun, 18 Aug 2019 19:43:29 +0300 +Subject: disable docs generation until libxml package is fixed + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 75378a9..63c7333 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -136,7 +136,7 @@ else() + # FIXME: on windows we ignore support until trash gets integrated + endif() + +-add_subdirectory( doc ) ++#add_subdirectory( doc ) + + add_subdirectory( about ) + if(KF5Activities_FOUND) +-- +2.21.0 + + +From dc72f7fcf47e3d7ca38ac2911fcf030a72931218 Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Sun, 18 Aug 2019 19:53:57 +0300 +Subject: disable linking with KF5Pty + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 63c7333..48f0227 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,7 +42,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS + GuiAddons + ) + # As this is the check used for linkage, only require it in the same location... +-if (UNIX) ++if (UNIX AND NOT HAIKU) + find_package(KF5Pty ${KF5_MIN_VERSION} REQUIRED) + endif() + +-- +2.21.0 + + +From 89029b7580e5b8dd1903e0e0b97238cff0bf29d3 Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Sun, 18 Aug 2019 19:55:32 +0300 +Subject: disable thumbnail plugin as it requires KF5Pty which we don't have + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 48f0227..21767f2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -158,7 +158,7 @@ if (NOT WIN32) + # Used for getting the resource limit for closing all child process FDs. Could be completely replaced by fcloseall() if available for Unix or _fcloseall() for Windows, either conditionally on Q_OS_type or using a configure test. + add_subdirectory( fish ) + endif() +-add_subdirectory( thumbnail ) ++#add_subdirectory( thumbnail ) + add_subdirectory( docfilter ) + if (libssh_FOUND AND HAVE_UTIME_H) + # does not compile on Windows: kio_sftp.cpp(28): fatal error C1083: Cannot open include file: 'utime.h': No such file or directory +-- +2.21.0 +