SUMMARY="String encoding library" DESCRIPTION="KCodecs provide a collection of methods to manipulate strings \ using various encodings. It can automatically determine the charset of a string, translate XML \ entities, validate email addresses, and find encodings by name in a more \ tolerant way than QTextCodec (useful e.g. for data coming from the Internet)." HOMEPAGE="https://invent.kde.org/frameworks/kcodecs" COPYRIGHT="2010-2026 KDE Organisation" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcodecs-${portVersion}.tar.xz" CHECKSUM_SHA256="5051fe783803d94444a231c79635b96f1266594942b836f59ae8460497c788c5" SOURCE_DIR="kcodecs-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" kcodecs6$secondaryArchSuffix = $portVersion lib:libKF6Codecs$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libQt6Core$secondaryArchSuffix " PROVIDES_devel=" kcodecs6${secondaryArchSuffix}_devel = $portVersion devel:libKF6Codecs$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" kcodecs6$secondaryArchSuffix == $portVersion base " ARCHITECTURES_doc="any" PROVIDES_doc=" kcodecs6_doc = $portVersion " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel extra_cmake_modules$secondaryArchSuffix >= $portVersion qt6_tools${secondaryArchSuffix}_devel devel:libQt6Core$secondaryArchSuffix " BUILD_PREREQUIRES=" kde_qdoc_common cmd:cmake cmd:g++$secondaryArchSuffix cmd:gperf cmd:make 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 \ libKF6Codecs packageEntries devel \ $developDir \ $libDir/cmake packageEntries doc \ $documentationDir } TEST() { export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" ctest --test-dir build --output-on-failure }