ksyntax_highlighting: add recipe for version 5.39.0

This commit is contained in:
Sergei Reznikov
2017-12-15 09:05:57 +03:00
parent e3b2a5e456
commit 966ca3a6dc

View File

@@ -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
}