2017-10-11 13:47:02 +00:00
|
|
|
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/"
|
2021-03-18 19:17:26 +00:00
|
|
|
COPYRIGHT="2010-2021 KDE Organisation"
|
2017-10-11 13:47:02 +00:00
|
|
|
LICENSE="GNU LGPL v2"
|
2020-12-15 14:20:40 +00:00
|
|
|
REVISION="1"
|
2017-10-11 13:47:02 +00:00
|
|
|
SOURCE_URI="https://github.com/KDE/sonnet/archive/v$portVersion.tar.gz"
|
2021-10-31 07:36:09 +00:00
|
|
|
CHECKSUM_SHA256="a971bc7c381dc0e44375fc3696ff7cfbf0592983924c6d298c7b14255ae37d7d"
|
2019-03-02 14:03:46 +00:00
|
|
|
PATCHES="sonnet-$portVersion.patchset"
|
2017-10-11 13:47:02 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2017-10-11 13:47:02 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
sonnet$secondaryArchSuffix = $portVersion
|
|
|
|
cmd:gentrigrams$secondaryArchSuffix = $portVersion
|
|
|
|
cmd:parsetrigrams$secondaryArchSuffix = $portVersion
|
2017-10-22 12:48:46 +00:00
|
|
|
lib:libKF5SonnetCore$secondaryArchSuffix = $portVersion compat >= 5
|
|
|
|
lib:libKF5SonnetUi$secondaryArchSuffix = $portVersion compat >= 5
|
2017-10-11 13:47:02 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
2019-10-02 12:29:40 +00:00
|
|
|
aspell_en
|
2017-10-11 13:47:02 +00:00
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libaspell$secondaryArchSuffix
|
|
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
sonnet${secondaryArchSuffix}_devel = $portVersion
|
2017-10-22 12:48:46 +00:00
|
|
|
devel:libKF5SonnetCore$secondaryArchSuffix = $portVersion compat >= 5
|
|
|
|
devel:libKF5SonnetUi$secondaryArchSuffix = $portVersion compat >= 5
|
2017-10-11 13:47:02 +00:00
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
sonnet$secondaryArchSuffix == $portVersion base
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
2018-09-12 12:11:01 +00:00
|
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
2017-10-11 13:47:02 +00:00
|
|
|
devel:libaspell$secondaryArchSuffix
|
2019-10-02 12:29:40 +00:00
|
|
|
devel:libQt5Core$secondaryArchSuffix >= 5.13
|
2017-10-11 13:47:02 +00:00
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:cmake
|
|
|
|
cmd:g++$secondaryArchSuffix
|
2019-02-15 13:44:06 +00:00
|
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
2017-10-11 13:47:02 +00:00
|
|
|
cmd:make
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. $cmakeDirArgs \
|
2021-10-31 07:36:09 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2017-10-11 13:47:02 +00:00
|
|
|
-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
|
|
|
|
}
|