Files
haikuports/kde-frameworks/ki18n/ki18n6-6.25.0.recipe
2026-04-14 05:31:31 +00:00

115 lines
3.1 KiB
Bash

SUMMARY="KDE Gettext-based UI text internationalization"
DESCRIPTION="KI18n provides functionality for internationalizing user \
interface text in applications, based on the GNU Gettext translation system. \
It wraps the standard Gettext functionality, so that the programmers and \
translators can use the familiar Gettext tools and workflows.
KI18n provides additional functionality as well, for both programmers and \
translators, which can help to achieve a higher overall quality of source \
and translated text. This includes argument capturing, customizable markup, \
and translation scripting."
HOMEPAGE="https://github.com/KDE/ki18n/"
COPYRIGHT="2010-2026 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/ki18n-${portVersion}.tar.xz"
CHECKSUM_SHA256="7fbac8bc88f5cb1af00f6a667381c4bcebba6f417dc6a3c7eef8bded6c9161de"
SOURCE_DIR="ki18n-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
ki18n6$secondaryArchSuffix = $portVersion
lib:libKF6I18n$secondaryArchSuffix = $libVersionCompat
lib:libKF6I18nLocaleData$secondaryArchSuffix = $libVersionCompat
lib:libKF6I18nQml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
iso_codes
lib:libintl$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
"
PROVIDES_devel="
ki18n6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6I18n$secondaryArchSuffix = $libVersionCompat
devel:libKF6I18nLocaleData$secondaryArchSuffix = $libVersionCompat
devel:libKF6I18nQml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
ki18n6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
ki18n6_doc = $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libintl$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
iso_codes
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
prepareInstalledDevelLibs \
libKF6I18n \
libKF6I18nLocaleData \
libKF6I18nQml
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
# 60% tests passed, 4 tests failed out of 10
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
ctest --test-dir build --output-on-failure
}