SUMMARY="Libraries for text templating with Qt" DESCRIPTION="KTextTemplate is a Free Software library written using the Qt framework. The goal of \ KTextTemplate is to make it easier for application developers to separate the structure of \ documents from the data they contain, opening the door for theming and advanced generation of \ other text such as code. The syntax uses the syntax of the Django template system, and the core design of Django is reused \ in KTextTemplate." HOMEPAGE="https://invent.kde.org/frameworks/ktexttemplate" COPYRIGHT="2010-2026 KDE Organisation" LICENSE="GNU LGPL v2.1" REVISION="1" SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/ktexttemplate-$portVersion.tar.xz" CHECKSUM_SHA256="4e9f7583b3dcb37980b99fb2ac2de9e95af8b14fe9a166752bcb83c66ce26e25" SOURCE_DIR="ktexttemplate-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" ktexttemplate6$secondaryArchSuffix = $portVersion lib:libKF6TextTemplate$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libQt6Core$secondaryArchSuffix lib:libQt6Qml$secondaryArchSuffix " PROVIDES_devel=" ktexttemplate6${secondaryArchSuffix}_devel = $portVersion devel:libKF6TextTemplate$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" ktexttemplate6$secondaryArchSuffix == $portVersion base " ARCHITECTURES_doc="any" PROVIDES_doc=" ktexttemplate6_doc = $portVersion " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel extra_cmake_modules$secondaryArchSuffix >= $portVersion qt6_tools${secondaryArchSuffix}_devel devel:libQt6Core$secondaryArchSuffix devel:libQt6Qml$secondaryArchSuffix " BUILD_PREREQUIRES=" kde_qdoc_common cmd:cmake cmd:g++$secondaryArchSuffix cmd:make cmd:msgfmt$secondaryArchSuffix cmd:msgmerge$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix " 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 \ libKF6TextTemplate fixPkgconfig packageEntries devel \ $developDir \ $libDir/cmake packageEntries doc \ $documentationDir } TEST() { export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" make -C build test }