mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
KDE frameworks, bump to 6.25.0 part7 (#13945)
This commit is contained in:
116
kde-frameworks/prison/prison6-6.25.0.recipe
Normal file
116
kde-frameworks/prison/prison6-6.25.0.recipe
Normal file
@@ -0,0 +1,116 @@
|
||||
SUMMARY="A Qt API for generating QRCode & DataMatrix barcodes"
|
||||
DESCRIPTION="prison is a Qt-based barcode abstraction layer/library that \
|
||||
provides uniform access to generation of barcodes with data. The API supports \
|
||||
two types of barcodes: QRCode and DataMatrix."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/prison"
|
||||
COPYRIGHT="2010-2026 KDE Foundations"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/prison-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="9f4a8fa5732e45142c9ba2e35a38904d44193efc050e1ca20a414445c3a98b34"
|
||||
SOURCE_DIR="prison-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/xdg/prison.categories keep-old
|
||||
settings/xdg/prison.renamecategories keep-old
|
||||
"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
prison6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6Prison$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKF6PrisonScanner$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libdmtx$secondaryArchSuffix
|
||||
lib:libqrencode$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Multimedia$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libZXing$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
prison6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6Prison$secondaryArchSuffix = $libVersion
|
||||
devel:libKF6PrisonScanner$secondaryArchSuffix = $libVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
prison6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
ARCHITECTURES_doc="any"
|
||||
|
||||
PROVIDES_doc="
|
||||
prison6_doc = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libdmtx$secondaryArchSuffix
|
||||
devel:libqrencode$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Multimedia$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
devel:libZXing$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
kde_qdoc_common
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
cmd:msgmerge$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
|
||||
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DKDE_INSTALL_LOGGINGCATEGORIESDIR=$settingsDir/xdg \
|
||||
-DCMAKE_SKIP_RPATH=YES \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
cmake --build build --target prepare_docs
|
||||
cmake --build build --target generate_docs
|
||||
cmake --build build --target generate_qch
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
# cmake --build build --target install_html_docs
|
||||
cmake --build build --target install_qch_docs
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libKF6Prison \
|
||||
libKF6PrisonScanner
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
packageEntries doc \
|
||||
$documentationDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user