mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
KDE frameworks, bump to 6.25.0 part7 (#13945)
This commit is contained in:
127
kde-frameworks/kunitconversion/kunitconversion6-6.25.0.recipe
Normal file
127
kde-frameworks/kunitconversion/kunitconversion6-6.25.0.recipe
Normal file
@@ -0,0 +1,127 @@
|
||||
SUMMARY="Converting physical units"
|
||||
DESCRIPTION="KUnitConversion provides functions to convert values in \
|
||||
different physical units. It supports converting different prefixes \
|
||||
(e.g. kilo, mega, giga) as well as converting between different unit \
|
||||
systems (e.g. liters, gallons). The following areas are supported:
|
||||
|
||||
* Acceleration
|
||||
* Angle
|
||||
* Area
|
||||
* Currency
|
||||
* Density
|
||||
* Electrical Current
|
||||
* Electrical Resistance
|
||||
* Energy
|
||||
* Force
|
||||
* Frequency
|
||||
* Fuel efficiency
|
||||
* Length
|
||||
* Mass
|
||||
* Power
|
||||
* Pressure
|
||||
* Temperature
|
||||
* Thermal Conductivity
|
||||
* Thermal Flux
|
||||
* Thermal Generation
|
||||
* Time
|
||||
* Velocity
|
||||
* Volume
|
||||
* Voltage"
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/kunitconversion"
|
||||
COPYRIGHT="2010-2026 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kunitconversion-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="369ef042de797ea647994c524cc43915b514850026cfddb4b24bc78bdfc3dcc8"
|
||||
SOURCE_DIR="kunitconversion-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
kunitconversion6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6UnitConversion$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF6I18n$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Network$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kunitconversion6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6UnitConversion$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kunitconversion6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
ARCHITECTURES_doc="any"
|
||||
|
||||
PROVIDES_doc="
|
||||
kunitconversion6_doc = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Network$secondaryArchSuffix
|
||||
devel:libQt6Xml$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 \
|
||||
libKF6UnitConversion
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
packageEntries doc \
|
||||
$documentationDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 75% tests passed, 1 tests failed out of 4
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user