mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
81 lines
1.8 KiB
Bash
81 lines
1.8 KiB
Bash
SUMMARY="Dates for holidays and other special events"
|
|
DESCRIPTION="This library provides a C++ API that determines holiday and \
|
|
other special events for a geographical region."
|
|
HOMEPAGE="https://github.com/KDE/kholidays/"
|
|
COPYRIGHT="2010-2019 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/KDE/kholidays/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ee6de2854bef4dfde0b791cf3d42a8a1e22a89ba07b9a785760d326be4160098"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kholidays$secondaryArchSuffix = $portVersion
|
|
lib:libkf5holidays$secondaryArchSuffix = $portVersion compat >= 5
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kholidays${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkf5holidays$secondaryArchSuffix = $portVersion compat >= 5
|
|
"
|
|
REQUIRES_devel="
|
|
kholidays$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix >= 5.7
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
cmd:make
|
|
"
|
|
|
|
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 \
|
|
libKF5Holidays
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir/Qt5/mkspecs \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|