mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
KDE frameworks, bump to 6.25.0 part7 (#13945)
This commit is contained in:
149
kde-frameworks/ktexteditor/ktexteditor6-6.25.0.recipe
Normal file
149
kde-frameworks/ktexteditor/ktexteditor6-6.25.0.recipe
Normal file
@@ -0,0 +1,149 @@
|
||||
SUMMARY="Full text editor component"
|
||||
DESCRIPTION="KTextEditor provides a powerful text editor component that you can embed in your \
|
||||
application, either as a KPart or using the KF6::TextEditor library (if you need more \
|
||||
control).
|
||||
|
||||
The text editor component contains many useful features, from syntax highlighting and automatic \
|
||||
indentation to advanced scripting support, making it suitable for everything from a simple \
|
||||
embedded text-file editor to an advanced IDE."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/ktexteditor"
|
||||
COPYRIGHT="2010-2026 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/ktexteditor-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="77e815edcdf572397f5eb750d7232b366f6cc6274bb34246ab88f2f2179733b4"
|
||||
SOURCE_DIR="ktexteditor-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
ktexteditor6$secondaryArchSuffix = $portVersion
|
||||
cmd:ktexteditor_script_tester6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6TextEditor$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libeditorconfig$secondaryArchSuffix
|
||||
lib:libgit2$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libKF6Archive$secondaryArchSuffix
|
||||
lib:libKF6Codecs$secondaryArchSuffix
|
||||
lib:libKF6ColorScheme$secondaryArchSuffix
|
||||
lib:libKF6Completion$secondaryArchSuffix
|
||||
lib:libKF6ConfigCore$secondaryArchSuffix
|
||||
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
||||
lib:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libKF6GuiAddons$secondaryArchSuffix
|
||||
lib:libKF6I18n$secondaryArchSuffix
|
||||
lib:libKF6ItemViews$secondaryArchSuffix
|
||||
lib:libKF6JobWidgets$secondaryArchSuffix
|
||||
lib:libKF6KIOCore$secondaryArchSuffix
|
||||
lib:libKF6Parts$secondaryArchSuffix
|
||||
lib:libKF6Service$secondaryArchSuffix
|
||||
lib:libKF6Solid$secondaryArchSuffix
|
||||
lib:libKF6SonnetCore$secondaryArchSuffix
|
||||
lib:libKF6SyntaxHighlighting$secondaryArchSuffix
|
||||
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
||||
lib:libKF6XmlGui$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Multimedia$secondaryArchSuffix
|
||||
lib:libQt6Network$secondaryArchSuffix
|
||||
lib:libQt6PrintSupport$secondaryArchSuffix
|
||||
lib:libQt6Qml$secondaryArchSuffix
|
||||
lib:libQt6TextToSpeech$secondaryArchSuffix
|
||||
lib:libQt6Widgets$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ktexteditor6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6TextEditor$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ktexteditor6$secondaryArchSuffix == $portVersion base
|
||||
devel:libKF6Parts$secondaryArchSuffix
|
||||
devel:libKF6SyntaxHighlighting$secondaryArchSuffix
|
||||
"
|
||||
|
||||
ARCHITECTURES_doc="any"
|
||||
|
||||
PROVIDES_doc="
|
||||
ktexteditor6_doc = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libeditorconfig$secondaryArchSuffix
|
||||
devel:libgit2$secondaryArchSuffix >= 1.8
|
||||
devel:libKF6Archive$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6GuiAddons$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6KIOCore$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6Parts$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6SonnetCore$secondaryArchSuffix >= $libVersion
|
||||
devel:libKF6SyntaxHighlighting$secondaryArchSuffix >= $libVersion
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
devel:libQt6TextToSpeech$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
kde_qdoc_common
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
cmd:msgmerge$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
|
||||
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_SKIP_RPATH=YES \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
cmake --build build --target prepare_docs
|
||||
cmake --build build --target generate_docs
|
||||
cmake --build build --target generate_qch
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
# cmake --build build --target install_html_docs
|
||||
cmake --build build --target install_qch_docs
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6TextEditor
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
packageEntries doc \
|
||||
$documentationDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 97% tests passed, 2 tests failed out of 76
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user