mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
113 lines
2.6 KiB
Bash
113 lines
2.6 KiB
Bash
SUMMARY="A library for parsing and evaluating OSM opening hours expressions"
|
|
DESCRIPTION="OSM opening hours expressions are used to describe when a feature is open/available \
|
|
or closed. This format is not only used in OpenStreetMap itself, but in various other data \
|
|
sources or APIs needing such a description as well."
|
|
HOMEPAGE="https://invent.kde.org/pim/kopeninghours"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kopeninghours-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="0e60885d2cdb88fe0bf42fe39f01c9e284dd755727c585714832eba98c11cb73"
|
|
SOURCE_DIR="kopeninghours-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= 1"
|
|
|
|
PROVIDES="
|
|
kopeninghours_kf6$secondaryArchSuffix = $portVersion
|
|
lib:libKOpeningHours$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6Holidays$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
kopeninghours24$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kopeninghours_kf6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKOpeningHours$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kopeninghours_kf6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
kopeninghours_kf6_doc = $portVersion
|
|
"
|
|
REPLACES_doc="
|
|
kopeninghours_kf6_x86_doc
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6Holidays$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
# Qt6
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison
|
|
cmd:cmake
|
|
cmd:dot
|
|
cmd:doxygen
|
|
cmd:flex
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DBUILD_WITH_QT6=ON \
|
|
-DBUILD_QCH=ON \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/qlogging-categories6
|
|
|
|
prepareInstalledDevelLib \
|
|
libKOpeningHours
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 71% tests passed, 2 tests failed out of 7
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
ctest --test-dir build --output-on-failure
|
|
}
|