Files
haikuports/kde-frameworks/sonnet/sonnet-5.38.0.recipe
Sergei Reznikov a1de2b8e0a Bring KDE Frameworks 5.38.0 to Haiku
* base library set for ongoing KDE apps
* some apps need more libs to be ported which will come later
2017-10-11 16:47:02 +03:00

95 lines
2.2 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="6b222d061e35dc89f225a1da31a583efc49108f37f21ee34b56783b79e25e21a"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sonnet$secondaryArchSuffix = $portVersion
cmd:gentrigrams$secondaryArchSuffix = $portVersion
cmd:parsetrigrams$secondaryArchSuffix = $portVersion
lib:libKF5SonnetCore$secondaryArchSuffix = $portVersion
lib:libKF5SonnetUi$secondaryArchSuffix = $portVersion
"
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
devel:libKF5SonnetUi$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
sonnet$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
extra_cmake_modules
haiku${secondaryArchSuffix}_devel
hunspell${secondaryArchSuffix}_devel
devel:libaspell$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
"
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
}