From 966ca3a6dc61166a3839da7a0f04589e1f19890e Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Fri, 15 Dec 2017 09:05:57 +0300 Subject: [PATCH] ksyntax_highlighting: add recipe for version 5.39.0 --- .../ksyntax_highlighting-5.39.0.recipe | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 kde-frameworks/ksyntax_highlighting/ksyntax_highlighting-5.39.0.recipe diff --git a/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting-5.39.0.recipe b/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting-5.39.0.recipe new file mode 100644 index 000000000..b67b64f69 --- /dev/null +++ b/kde-frameworks/ksyntax_highlighting/ksyntax_highlighting-5.39.0.recipe @@ -0,0 +1,86 @@ +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://github.com/KDE/syntax-highlighting/" +COPYRIGHT="2010-2017 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/syntax-highlighting/archive/v$portVersion.tar.gz" +SOURCE_DIR="syntax-highlighting-$portVersion" +CHECKSUM_SHA256="5df8e983c5a61f90298af8dc24fd76f76f9a34a3b6ef7b9b9c6461f8c55323d1" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + ksyntax_highlighting$secondaryArchSuffix = $portVersion + cmd:kate_syntax_highlighter$secondaryArchSuffix = $portVersion + lib:libKF5SyntaxHighlighting$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + ksyntax_highlighting${secondaryArchSuffix}_devel = $portVersion + devel:ksyntax_highlighting$secondaryArchSuffix = $portVersion compat >= 5 + devel:libkf5syntaxhighlighting$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + ksyntax_highlighting$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + extra_cmake_modules >= 5.39 + haiku${secondaryArchSuffix}_devel + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix >= 5.7 + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:perl + " + +GLOBAL_WRITABLE_FILES=" + settings/xdg/org_kde_ksyntaxhighlighting.categories keep-old + " + +BUILD() +{ + mkdir -p build + cd build + + cmake .. $cmakeDirArgs \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs \ + libKF5SyntaxHighlighting + + packageEntries devel \ + $libDir/cmake \ + $dataDir/Qt5/mkspecs \ + $developDir +} + +TEST() +{ + cd build + make test +}