mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
99 lines
2.8 KiB
Bash
99 lines
2.8 KiB
Bash
SUMMARY="Python plugin for KDevelop"
|
|
DESCRIPTION="kdev-python is a KDevelop Python language support plugin."
|
|
HOMEPAGE="https://invent.kde.org/kdevelop/kdev-python"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kdev-python-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="6dec9931dfdba5a650eb58cb5c6acdcdae787035e6f22ebec800b9e0cb9c46e7"
|
|
SOURCE_DIR="kdev-python-$portVersion"
|
|
|
|
ARCHITECTURES="?all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
kdevelop_python$secondaryArchSuffix = $portVersion
|
|
lib:libkdevpythoncompletion$secondaryArchSuffix = $portVersion
|
|
lib:libkdevpythonduchain$secondaryArchSuffix = $portVersion
|
|
lib:libkdevpythonparser$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libKDevPlatformInterfaces$secondaryArchSuffix
|
|
lib:libKDevPlatformLanguage$secondaryArchSuffix
|
|
lib:libKDevPlatformSerialization$secondaryArchSuffix
|
|
lib:libKDevPlatformTests$secondaryArchSuffix
|
|
lib:libpython3.10$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6Completion$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6KIOCore$secondaryArchSuffix
|
|
lib:libKF6Parts$secondaryArchSuffix
|
|
lib:libKF6SyntaxHighlighting$secondaryArchSuffix
|
|
lib:libKF6TextEditor$secondaryArchSuffix
|
|
lib:libKF6ThreadWeaver$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Core5Compat$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libKDevPlatformShell$secondaryArchSuffix
|
|
devel:libKDevPlatformTests$secondaryArchSuffix
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6GuiAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6TextEditor$secondaryArchSuffix
|
|
devel:libKF6ThreadWeaver$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Core5Compat$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-Wno-dev
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
rm -rf $dataDir/metainfo
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 1 test passed out of 4
|
|
# 3 tests nuked (took too long for me to let them finish)
|
|
ctest --test-dir build --output-on-failure
|
|
}
|