From a782ff62a7827e77fd2a3f79916077bd8b55900a Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 24 Dec 2024 10:45:14 +0100 Subject: [PATCH] kdevelop_pg_qt, add Qt6 package (#11522) --- .../kdevelop_pg_qt6-2.3.0.recipe | 72 +++++++++++++++++++ .../patches/kdevelop_pg_qt-2.3.0.patchset | 19 +++++ 2 files changed, 91 insertions(+) create mode 100644 dev-util/kdevelop_pg_qt/kdevelop_pg_qt6-2.3.0.recipe create mode 100644 dev-util/kdevelop_pg_qt/patches/kdevelop_pg_qt-2.3.0.patchset diff --git a/dev-util/kdevelop_pg_qt/kdevelop_pg_qt6-2.3.0.recipe b/dev-util/kdevelop_pg_qt/kdevelop_pg_qt6-2.3.0.recipe new file mode 100644 index 000000000..dd2c1a7bf --- /dev/null +++ b/dev-util/kdevelop_pg_qt/kdevelop_pg_qt6-2.3.0.recipe @@ -0,0 +1,72 @@ +SUMMARY="KDevelop Parser Generator, used in the PHP language plugin and others" +DESCRIPTION="KDevelop-PG-Qt is a parser generator written in readable source-code and generating \ +readable source-code. Its syntax was inspirated by AntLR. It implements the visitor-pattern and \ +uses the Qt library. That is why it is ideal to be used in Qt-/KDE-based applications like \ +KDevelop." +HOMEPAGE="https://invent.kde.org/kdevelop/kdevelop-pg-qt" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/kdevelop-pg-qt/$portVersion/src/kdevelop-pg-qt-$portVersion.tar.xz" +CHECKSUM_SHA256="3d3ef3cb395e9670e60c399ea6d865cc796e00e52c355eed943fbeca7da7120d" +SOURCE_DIR="kdevelop-pg-qt-$portVersion" +PATCHES="kdevelop_pg_qt-$portVersion.patchset" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kdevelop_pg_qt6$secondaryArchSuffix = $portVersion + cmd:kdev_pg_qt$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + " +CONFLICTS=" + kdevelop_pg_qt$secondaryArchSuffix + " + +PROVIDES_devel=" + kdevelop_pg_qt6${secondaryArchSuffix}_devel = $portVersion + " +REQUIRES_devel=" + kdevelop_pg_qt6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix + devel:libQt6Core$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:bison + cmd:cmake + cmd:flex + 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 \ + -Wno-dev + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + packageEntries devel \ + $developDir \ + $libDir/cmake +} + +TEST() +{ + make -Cbuild test +} diff --git a/dev-util/kdevelop_pg_qt/patches/kdevelop_pg_qt-2.3.0.patchset b/dev-util/kdevelop_pg_qt/patches/kdevelop_pg_qt-2.3.0.patchset new file mode 100644 index 000000000..5c9c43508 --- /dev/null +++ b/dev-util/kdevelop_pg_qt/patches/kdevelop_pg_qt-2.3.0.patchset @@ -0,0 +1,19 @@ +From e9a58d37576e058e7489eb7bee23e756bc3a12c8 Mon Sep 17 00:00:00 2001 +From: Schrijvers Luc +Date: Wed, 20 Nov 2024 13:18:41 +0100 +Subject: Fix headers installation path + + +diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt +index b31ec42..c5444b3 100644 +--- a/include/CMakeLists.txt ++++ b/include/CMakeLists.txt +@@ -5,4 +5,4 @@ install( FILES + kdev-pg-token-stream.h + kdev-pg-list.h + kdev-pg-char-sets.h +- DESTINATION include/kdevelop-pg-qt ) ++ DESTINATION "${KDE_INSTALL_INCLUDEDIR}/kdevelop-pg-qt") +-- +2.45.2 +