mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Add KF6 frameworks (#10482)
This commit is contained in:
94
kde-frameworks/ki18n/ki18n6-6.2.0.recipe
Normal file
94
kde-frameworks/ki18n/ki18n6-6.2.0.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
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-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/ki18n-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="8aa8f4740db080f4f0c2ce88d0f289740d55caa06b7f76bf2163d0fb9fd3660f"
|
||||
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
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
iso_codes
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ki18n6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6I18n$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKF6I18nLocaleData$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ki18n6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
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="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
||||
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libKF6I18n \
|
||||
libKF6I18nLocaleData
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 50% tests passed, 5 tests failed out of 10
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user