mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Add KF6 frameworks, kunitconversion6 (#10547)
This commit is contained in:
110
kde-frameworks/kunitconversion/kunitconversion6-6.2.0.recipe
Normal file
110
kde-frameworks/kunitconversion/kunitconversion6-6.2.0.recipe
Normal file
@@ -0,0 +1,110 @@
|
||||
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-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kunitconversion-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="e5ed60578ba4c3786a109ce1fb2e4b36e4825a79338c4aca1dddc9a493006e80"
|
||||
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
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libKF6I18n$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Network$secondaryArchSuffix
|
||||
devel:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen >= 1.9
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6UnitConversion
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 75% tests passed, 1 tests failed out of 4
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user