From 72397466e49288caacba3e6d64c3c04a95ffd5bf Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 13:14:15 +0200 Subject: [PATCH] Add KF6 frameworks, ksyntax_highlighting6 (#10525) --- .../ksyntax_highlighting6-6.2.0.recipe | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 kde-frameworks/ksyntax_highlighting/ksyntax_highlighting6-6.2.0.recipe diff --git a/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting6-6.2.0.recipe b/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting6-6.2.0.recipe new file mode 100644 index 000000000..cb5137eb1 --- /dev/null +++ b/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting6-6.2.0.recipe @@ -0,0 +1,89 @@ +SUMMARY="Syntax highlighting engine for Kate syntax definitions" +DESCRIPTION="This is a stand-alone implementation of the Kate syntax \ +highlighting engine. It's meant as a building block for text editors as \ +well as for simple highlighted text rendering (e.g. as HTML), supporting \ +both integration with a custom editor as well as a ready-to-use \ +QSyntaxHighlighter sub-class." +HOMEPAGE="https://invent.kde.org/frameworks/syntax-highlighting" +COPYRIGHT="2010-2023 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/syntax-highlighting-${portVersion}.tar.xz" +CHECKSUM_SHA256="327ed58d20d52502bbfd9278fa1c9e7ab4a846159e5cf630d09fbea144ebbb7f" +SOURCE_DIR="syntax-highlighting-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + ksyntax_highlighting6$secondaryArchSuffix = $portVersion + cmd:ksyntaxhighlighter6$secondaryArchSuffix = $portVersion + lib:libKF6SyntaxHighlighting$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + ksyntax_highlighting6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6SyntaxHighlighting$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + ksyntax_highlighting6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + qt6_tools${secondaryArchSuffix}_devel + devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libxerces_c_3.2$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen >= 1.9 + cmd:g++$secondaryArchSuffix + cmd:make + cmd:perl + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON \ + -DBUILD_TESTING=OFF + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLib \ + libKF6SyntaxHighlighting + + packageEntries devel \ + $developDir \ + $dataDir/doc \ + $libDir/cmake +} + +TEST() +{ + # 67% tests passed, 2 tests failed out of 6 + export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin + make -Cbuild test +}