Files
haikuports/kde-frameworks/sonnet/sonnet-5.39.0.recipe

95 lines
2.3 KiB
Bash

SUMMARY="Multi-language spell checker"
DESCRIPTION="Sonnet is a plugin-based spell checking library for Qt-based \
applications. It supports several different plugins, including HSpell, \
Enchant, ASpell and HUNSPELL.
It also supports automated language detection, based on a combination of \
different algorithms.
The simplest way to use Sonnet in your application is to use the \
SpellCheckDecorator class on your QTextEdit."
HOMEPAGE="https://github.com/KDE/sonnet/"
COPYRIGHT="2010-2017 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/sonnet/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="57dba9e75f069a877ec3152e7ceda6c6949745ab6776a92522a6da03103d702b"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sonnet$secondaryArchSuffix = $portVersion
cmd:gentrigrams$secondaryArchSuffix = $portVersion
cmd:parsetrigrams$secondaryArchSuffix = $portVersion
lib:libKF5SonnetCore$secondaryArchSuffix = $portVersion compat >= 5
lib:libKF5SonnetUi$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:hunspell$secondaryArchSuffix
lib:libaspell$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
PROVIDES_devel="
sonnet${secondaryArchSuffix}_devel = $portVersion
devel:libKF5SonnetCore$secondaryArchSuffix = $portVersion compat >= 5
devel:libKF5SonnetUi$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
sonnet$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
extra_cmake_modules >= 5.39
haiku${secondaryArchSuffix}_devel
hunspell${secondaryArchSuffix}_devel
devel:libaspell$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
"
GLOBAL_WRITABLE_FILES="
settings/xdg/sonnet.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 \
libKF5SonnetCore \
libKF5SonnetUi
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}