Files
haikuports/kde-frameworks/kunitconversion/kunitconversion-5.80.0.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

105 lines
2.2 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="9c9297b6c19acc069e9b4caac3fe43fe04e8f28901b285b7bbb939d7584b2e63"
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 \
-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
}