diff --git a/kde-frameworks/kcompletion/kcompletion6-6.2.0.recipe b/kde-frameworks/kcompletion/kcompletion6-6.2.0.recipe new file mode 100644 index 000000000..7c69aa401 --- /dev/null +++ b/kde-frameworks/kcompletion/kcompletion6-6.2.0.recipe @@ -0,0 +1,102 @@ +SUMMARY="Powerful completion framework" +DESCRIPTION="When typing filenames, email addresses and other text where the \ +user often wants to select from existing data (including what they previously \ +typed) rather than enter anything wholly original, users often find it \ +helpful if they only need to type the first few characters, and then have the \ +application offer them a set of choices or attempt to finish off what they \ +were typing. Email clients, shells and \"open file\" dialogs often provide \ +this functionality. + +This framework helps implement this in Qt-based applications. You can use one \ +of the completion-ready widgets provided by this framework, or integrate it \ +into your application's other widgets directly." +HOMEPAGE="https://invent.kde.org/frameworks/kcompletion" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcompletion-${portVersion}.tar.xz" +CHECKSUM_SHA256="58cb938eb111e8859dd1baa51062467f226b8c67cb1fdb98748d3e97fabf08e9" +SOURCE_DIR="kcompletion-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kcompletion6$secondaryArchSuffix = $portVersion + lib:libKF6Completion$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libKF6Codecs$secondaryArchSuffix + lib:libKF6ConfigGui$secondaryArchSuffix + lib:libKF6WidgetsAddons$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + kcompletion6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6Completion$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kcompletion6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + qt6_tools${secondaryArchSuffix}_devel + devel:libKF6Codecs$secondaryArchSuffix == $portVersion + devel:libKF6ConfigGui$secondaryArchSuffix == $portVersion + devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Gui$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libQt6Xml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen >= 1.9 + cmd:g++$secondaryArchSuffix + cmd:make + " + +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON \ + -DBUILD_TESTING=OFF + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLib \ + libKF6Completion + + packageEntries devel \ + $developDir \ + $dataDir/doc \ + $libDir/cmake +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -Cbuild test +}