106 lines
2.3 KiB
Bash
106 lines
2.3 KiB
Bash
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://github.com/KDE/kunitconversion/"
|
|
COPYRIGHT="2010-2021 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/KDE/kunitconversion/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="74470dd4c5e605db7e73f68e40f8c1ab44ba5b0a6d96d1f292f409972771b3fb"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kunitconversion$secondaryArchSuffix = $portVersion
|
|
lib:libKF5UnitConversion$secondaryArchSuffix = $portVersion compat >= 5
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kunitconversion${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF5UnitConversion$secondaryArchSuffix = $portVersion compat >= 5
|
|
"
|
|
REQUIRES_devel="
|
|
kunitconversion$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
devel:libKF5I18n$secondaryArchSuffix == $portVersion
|
|
devel:libQt5Core$secondaryArchSuffix >= 5.7
|
|
devel:libQt5Network$secondaryArchSuffix >= 5.7
|
|
devel:libQt5Xml$secondaryArchSuffix >= 5.7
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libKF5UnitConversion
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir/Qt5/mkspecs \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|