mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
KDE frameworks, bump to 6.25.0 part6 (#13944)
This commit is contained in:
89
kde-frameworks/kdesu/kdesu-5.115.0.recipe
Normal file
89
kde-frameworks/kdesu/kdesu-5.115.0.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="User interface for running shell commands with root privileges"
|
||||
DESCRIPTION="KDESU provides functionality for building GUI front ends for (password asking) \
|
||||
console mode programs. For example, kdesu and kdessh use it to interface with su and ssh \
|
||||
respectively."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/kdesu"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/kdesu-v$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="5e163e989e0d13851f059ce9315475df6bb83b4b1b887038867d121af1fc637f"
|
||||
SOURCE_DIR="kdesu-v$portVersion"
|
||||
PATCHES="kdesu-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
kdesu$secondaryArchSuffix = $portVersion
|
||||
lib:libKF5Su$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF5ConfigCore$secondaryArchSuffix
|
||||
lib:libKF5CoreAddons$secondaryArchSuffix
|
||||
lib:libKF5I18n$secondaryArchSuffix
|
||||
lib:libKF5Pty$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kdesu${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF5Su$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kdesu$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
|
||||
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
|
||||
devel:libKF5I18n$secondaryArchSuffix == $portVersion
|
||||
devel:libKF5Pty$secondaryArchSuffix == $portVersion
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
cmd:msgmerge
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DKDESU_USE_SUDO_DEFAULT=OFF
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF5Su
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/Qt5/mkspecs \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 50% tests passed, 1 tests failed out of 2
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user