mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-24 17:18:51 +02:00
libalkimia, re-add KF5 version (#12608)
This commit is contained in:
131
app-office/libalkimia/libalkimia_kf5-8.2.0.recipe
Normal file
131
app-office/libalkimia/libalkimia_kf5-8.2.0.recipe
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
SUMMARY="Library with common classes and functionality used by KDE finance applications"
|
||||||
|
DESCRIPTION="libalkimia is a library with common classes and functionality used by finance \
|
||||||
|
applications for the KDE SC.
|
||||||
|
Currently it supports a common class to represent monetary values with arbitrary precision."
|
||||||
|
HOMEPAGE="https://community.kde.org/Alkimia"
|
||||||
|
COPYRIGHT="2010-2025 KDE Organisation"
|
||||||
|
LICENSE="GNU LGPL v2.1"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="https://download.kde.org/stable/alkimia/$portVersion/alkimia-$portVersion.tar.xz"
|
||||||
|
CHECKSUM_SHA256="68ee1ac4b3ea0516ada66343889d871170b3da63fc9fac89a0c5675af6583996"
|
||||||
|
SOURCE_DIR="alkimia-$portVersion"
|
||||||
|
|
||||||
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion="$portVersion"
|
||||||
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
libalkimia_kf5$secondaryArchSuffix = $portVersion
|
||||||
|
cmd:onlinequoteseditor5$secondaryArchSuffix = $portVersion
|
||||||
|
lib:libalkimia5$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libGL$secondaryArchSuffix
|
||||||
|
lib:libgmp$secondaryArchSuffix
|
||||||
|
# KF5
|
||||||
|
lib:libKF5Attica$secondaryArchSuffix
|
||||||
|
lib:libKF5Auth$secondaryArchSuffix
|
||||||
|
lib:libKF5Codecs$secondaryArchSuffix
|
||||||
|
lib:libKF5Completion$secondaryArchSuffix
|
||||||
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
||||||
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
||||||
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
||||||
|
lib:libKF5GuiAddons$secondaryArchSuffix
|
||||||
|
lib:libKF5I18n$secondaryArchSuffix
|
||||||
|
lib:libKF5IconThemes$secondaryArchSuffix
|
||||||
|
lib:libKF5NewStuffCore$secondaryArchSuffix
|
||||||
|
lib:libKF5Service$secondaryArchSuffix
|
||||||
|
lib:libKF5SonnetUi$secondaryArchSuffix
|
||||||
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
||||||
|
lib:libKF5TextWidgets$secondaryArchSuffix
|
||||||
|
lib:libKF5XmlGui$secondaryArchSuffix
|
||||||
|
# Qt5
|
||||||
|
lib:libQt5Core$secondaryArchSuffix
|
||||||
|
lib:libQt5WebengineCore$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
libalkimia_kf5${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libalkimia5$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
libalkimia_kf5$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
devel:libgmp$secondaryArchSuffix
|
||||||
|
# KF5
|
||||||
|
extra_cmake_modules$secondaryArchSuffix
|
||||||
|
devel:libKF5Attica$secondaryArchSuffix
|
||||||
|
devel:libKF5Auth$secondaryArchSuffix
|
||||||
|
devel:libKF5Codecs$secondaryArchSuffix
|
||||||
|
devel:libKF5Completion$secondaryArchSuffix
|
||||||
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
||||||
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
||||||
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
||||||
|
devel:libKF5I18n$secondaryArchSuffix
|
||||||
|
devel:libKF5IconThemes$secondaryArchSuffix
|
||||||
|
devel:libKF5NewStuff$secondaryArchSuffix
|
||||||
|
devel:libKF5Service$secondaryArchSuffix
|
||||||
|
devel:libKF5SonnetCore$secondaryArchSuffix
|
||||||
|
devel:libKF5TextWidgets$secondaryArchSuffix
|
||||||
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
||||||
|
devel:libKF5XmlGui$secondaryArchSuffix
|
||||||
|
# Qt5
|
||||||
|
devel:libQt5Core$secondaryArchSuffix
|
||||||
|
devel:libQt5Qml$secondaryArchSuffix
|
||||||
|
devel:libQt5WebengineCore$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:cmake
|
||||||
|
cmd:g++$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:msgfmt$secondaryArchSuffix
|
||||||
|
cmd:msgmerge$secondaryArchSuffix
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
||||||
|
"
|
||||||
|
|
||||||
|
TEST_REQUIRES="
|
||||||
|
qthaikuplugins$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
$cmakeDirArgs \
|
||||||
|
-DINCLUDE_INSTALL_DIR=$includeDir \
|
||||||
|
-DQML_INSTALL_DIR=$dataDir/Qt5/qml \
|
||||||
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||||
|
-DBUILD_APPLETS=OFF \
|
||||||
|
-DBUILD_TESTING=OFF \
|
||||||
|
-Wno-dev
|
||||||
|
|
||||||
|
make -C build $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make -C build install
|
||||||
|
|
||||||
|
# we are not linux
|
||||||
|
rm -rf $dataDir/{applications,icons,metainfo}
|
||||||
|
|
||||||
|
prepareInstalledDevelLib \
|
||||||
|
libalkimia5
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$libDir/cmake \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST()
|
||||||
|
{
|
||||||
|
# 83% tests passed, 2 tests failed out of 12
|
||||||
|
ctest --test-dir build --output-on-failure
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user