mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add KF6 frameworks, syndication6 (#10516)
This commit is contained in:
89
kde-frameworks/syndication/syndication6-6.2.0.recipe
Normal file
89
kde-frameworks/syndication/syndication6-6.2.0.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="An RSS/Atom parser library"
|
||||
DESCRIPTION="RSS (0.9/1.0, 0.91..2.0) and Atom (0.3 and 1.0) feeds are supported. syndication \
|
||||
offers a unified, format-agnostic view on the parsed feed, so that the using application does \
|
||||
not need to distinguish between feed formats."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/syndication"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/syndication-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="50ec3843a08ec7b185352c94b89bc2d2720ceaf17eb961a4c3da55f93d05af3c"
|
||||
SOURCE_DIR="syndication-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
syndication6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6Syndication$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF6Codecs$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Network$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
syndication6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6Syndication$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
syndication6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libKF6Codecs$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:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6Syndication
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
# manual tests (all pass)
|
||||
build/bin/loaderutiltest
|
||||
build/bin/syndicationtest
|
||||
# build/bin/testlibsyndication # needs argument
|
||||
# build/bin/testloader # needs argument
|
||||
build/bin/testpersonimpl
|
||||
}
|
||||
Reference in New Issue
Block a user