mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
78 lines
2.0 KiB
Bash
78 lines
2.0 KiB
Bash
SUMMARY="A non-blocking database framework for Qt"
|
|
DESCRIPTION="FutureSQL was in part inspired by Diesel, and provides a higher level of abstraction \
|
|
than QtSql. Its features include non-blocking database access by default, relatively \
|
|
boilderplate-free queries, automatic database migrations and simple mapping to objects.
|
|
|
|
In order to make FutureSQL's use of templates less confusing, FutureSQL uses C++20 concepts, and \
|
|
requires a C++20 compiler.
|
|
|
|
Warning: The API is not finalized yet."
|
|
HOMEPAGE="https://invent.kde.org/libraries/futuresql"
|
|
COPYRIGHT="2022 Jonah Brüchert"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="https://download.kde.org/stable/futuresql/futuresql-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="e44ed8d5a9618b3ca7ba2983ed9c5f7572e6e0a5b199f94868834b71ccbebd43"
|
|
SOURCE_DIR="futuresql-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
futuresql_qt6$secondaryArchSuffix = $portVersion
|
|
lib:libfuturesql6$secondaryArchSuffix = 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Sql$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
futuresql_qt6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libfuturesql6$secondaryArchSuffix = 0
|
|
"
|
|
REQUIRES_devel="
|
|
futuresql_qt6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libQCoro6Core$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_WITH_QT6=ON \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libfuturesql6
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
make -C build test
|
|
}
|