From cf621e17a33f1c4cc8956ce3a3ad39cc76e2f2e5 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 12 Sep 2024 17:40:35 +0200 Subject: [PATCH] kio_gdrive, new recipes (#11113) --- kde-misc/kio-gdrive/kio_gdrive-23.08.5.recipe | 124 +++++++++++++++++ .../kio-gdrive/kio_gdrive24-24.08.0.recipe | 128 ++++++++++++++++++ 2 files changed, 252 insertions(+) create mode 100644 kde-misc/kio-gdrive/kio_gdrive-23.08.5.recipe create mode 100644 kde-misc/kio-gdrive/kio_gdrive24-24.08.0.recipe diff --git a/kde-misc/kio-gdrive/kio_gdrive-23.08.5.recipe b/kde-misc/kio-gdrive/kio_gdrive-23.08.5.recipe new file mode 100644 index 000000000..7a13b1bf3 --- /dev/null +++ b/kde-misc/kio-gdrive/kio_gdrive-23.08.5.recipe @@ -0,0 +1,124 @@ +SUMMARY="KIO worker for Google Drive service" +DESCRIPTION="KIO GDrive is a KIO slave that enables KIO-aware applications (such as Dolphin, Kate \ +or Gwenview) to access and edit Google Drive files on the cloud." +HOMEPAGE="https://apps.kde.org/kio_gdrive/" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kio-gdrive-$portVersion.tar.xz" +CHECKSUM_SHA256="d5983ea15284431e83561bbf0b10ed39790a879cb465fc132aa96b0fe2d5eda6" +SOURCE_DIR="kio-gdrive-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + kio_gdrive$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + kaccounts_providers$secondaryArchSuffix + lib:libaccounts_qt5$secondaryArchSuffix + lib:libkaccounts$secondaryArchSuffix + lib:libsignon_qt5$secondaryArchSuffix + # KF5 + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5Notifications$secondaryArchSuffix + lib:libKF5Purpose$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + # KPim5 + lib:libKPim5GAPICore$secondaryArchSuffix + lib:libKPim5GAPIDrive$secondaryArchSuffix + # Qt5 + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + kaccounts_providers$secondaryArchSuffix + devel:libaccounts_qt5$secondaryArchSuffix + devel:libkaccounts$secondaryArchSuffix + devel:libsignon_qt5$secondaryArchSuffix + # KF5 + extra_cmake_modules$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5CalendarCore$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5Contacts$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5DocTools$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Notifications$secondaryArchSuffix + devel:libKF5Purpose$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + # KPim5 + devel:libKPim5GAPICore$secondaryArchSuffix + # Qt5 + devel:libQt5Core$secondaryArchSuffix + devel:libQT5Keychain$secondaryArchSuffix + devel:libQt5Qml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:intltoolize + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + " + +PATCH() +{ + sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt + sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt +} + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=YES \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + # cleanup + rm -rf $dataDir/metainfo +} + +TEST() +{ + make -C build test +} diff --git a/kde-misc/kio-gdrive/kio_gdrive24-24.08.0.recipe b/kde-misc/kio-gdrive/kio_gdrive24-24.08.0.recipe new file mode 100644 index 000000000..264e1f33d --- /dev/null +++ b/kde-misc/kio-gdrive/kio_gdrive24-24.08.0.recipe @@ -0,0 +1,128 @@ +SUMMARY="KIO worker for Google Drive service" +DESCRIPTION="KIO GDrive is a KIO slave that enables KIO-aware applications (such as Dolphin, Kate \ +or Gwenview) to access and edit Google Drive files on the cloud." +HOMEPAGE="https://apps.kde.org/kio_gdrive/" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kio-gdrive-$portVersion.tar.xz" +CHECKSUM_SHA256="1f6148711f3d95acdbc6257be250ae50309ed95c39d7d8fbcda0029b4345afbe" +SOURCE_DIR="kio-gdrive-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + kio_gdrive24$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + kaccounts_providers24$secondaryArchSuffix + lib:libaccounts_qt6$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libkaccounts6$secondaryArchSuffix + lib:libsignon_qt6$secondaryArchSuffix + # KF6 + lib:libKF6Completion$secondaryArchSuffix + lib:libKF6ConfigCore$secondaryArchSuffix + lib:libKF6CoreAddons$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libKF6JobWidgets$secondaryArchSuffix + lib:libKF6KIOCore$secondaryArchSuffix + lib:libKF6Notifications$secondaryArchSuffix + lib:libKF6Purpose$secondaryArchSuffix + lib:libKF6Service$secondaryArchSuffix + lib:libKF6Solid$secondaryArchSuffix + lib:libKF6WidgetsAddons$secondaryArchSuffix + lib:libKF6WindowSystem$secondaryArchSuffix + # KPim6 + lib:libKPim6GAPICore$secondaryArchSuffix + lib:libKPim6GAPIDrive$secondaryArchSuffix + # Qt6 + lib:libQt6Core$secondaryArchSuffix + lib:libQt6DBus$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Network$secondaryArchSuffix + lib:libQt6Widgets$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + kaccounts_providers24$secondaryArchSuffix + devel:libaccounts_qt6$secondaryArchSuffix + devel:libGL$secondaryArchSuffix + devel:libkaccounts6$secondaryArchSuffix + devel:libsignon_qt6$secondaryArchSuffix + # KF6 + extra_cmake_modules$secondaryArchSuffix + devel:libKF6AuthCore$secondaryArchSuffix + devel:libKF6Bookmarks$secondaryArchSuffix + devel:libKF6CalendarCore$secondaryArchSuffix + devel:libKF6Codecs$secondaryArchSuffix + devel:libKF6ColorScheme$secondaryArchSuffix + devel:libKF6Completion$secondaryArchSuffix + devel:libKF6ConfigCore$secondaryArchSuffix + devel:libKF6ConfigWidgets$secondaryArchSuffix + devel:libKF6Contacts$secondaryArchSuffix + devel:libKF6CoreAddons$secondaryArchSuffix + devel:libKF6DocTools$secondaryArchSuffix + devel:libKF6I18n$secondaryArchSuffix + devel:libKF6ItemViews$secondaryArchSuffix + devel:libKF6JobWidgets$secondaryArchSuffix + devel:libKF6KIOCore$secondaryArchSuffix + devel:libKF6Notifications$secondaryArchSuffix + devel:libKF6Purpose$secondaryArchSuffix + devel:libKF6Service$secondaryArchSuffix + devel:libKF6Solid$secondaryArchSuffix + devel:libKF6WidgetsAddons$secondaryArchSuffix + devel:libKF6WindowSystem$secondaryArchSuffix + devel:libKF6XmlGui$secondaryArchSuffix + # KPim6 + devel:libKPim6GAPICore$secondaryArchSuffix + devel:libKPim6GAPIDrive$secondaryArchSuffix + # Qt6 + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Keychain$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:intltoolize + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + " + +PATCH() +{ + sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt + sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt +} + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=YES \ + -DBUILD_WITH_QT6=ON \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + # cleanup + rm -rf $dataDir/metainfo +} + +TEST() +{ + make -C build test +}