summaryrefslogtreecommitdiff
path: root/dev-util/kdevelop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-28 09:49:11 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-03-28 09:49:11 +0100
commit115dcc7054f5934a2c8e26fd8a8eed5f3e29e9ce (patch)
treec31afe35699960753f76770d6b0b4ea48af9f686 /dev-util/kdevelop
parente292b671b113c2cc012beddad93a3df4f9410698 (diff)
gentoo auto-resync : 28:03:2023 - 09:49:10
Diffstat (limited to 'dev-util/kdevelop')
-rw-r--r--dev-util/kdevelop/Manifest2
-rw-r--r--dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch24
-rw-r--r--dev-util/kdevelop/kdevelop-22.12.3-r1.ebuild136
3 files changed, 162 insertions, 0 deletions
diff --git a/dev-util/kdevelop/Manifest b/dev-util/kdevelop/Manifest
index 3256875299d5..6602e309803b 100644
--- a/dev-util/kdevelop/Manifest
+++ b/dev-util/kdevelop/Manifest
@@ -1,5 +1,7 @@
+AUX kdevelop-22.12.3-clang16.patch 1126 BLAKE2B d4c189ebba3bcde3a0183674089289ecb325e9feb1182b05f9f826cb52674910ca84e07441c50d83a3d023129fc4e559870e8a96d85625fe2fc3bdf19e7a6a41 SHA512 b6ed8ad92ab013fa300dab122e7772861627798f2a3fd7329a1b0206232726b7d1cb8b213d04b499757edfb238537ff9aaafc2f2f07aa00ef0db9e8966b8a1f7
DIST kdevelop-22.12.0.tar.xz 8623184 BLAKE2B 5601977232e99fe8431d36dda24320ed08f9298e9524878b0c5473074b0386fc9e056d1b2aa723c452113ceca7e97c8673977936902a2e0c4689b5b3ff8572d7 SHA512 1390b18aa495f66ead6b2e777d41563401f47d8871a740323918a4593bbb96fbae55144286a60ce68026b78da1244293239c09fc5ed77499e6ac9fd592b11808
DIST kdevelop-22.12.3.tar.xz 8652864 BLAKE2B a60de8549ccc949811c6c755c729b51711b2a7b0dbd8cf4c8f853623f27f42328dc82f732dd45abf7bfbf248841c72a55f1799c19110d2dd497c96fe5e7ef9ed SHA512 465bf3639e3fd61058af1217904fe0904d7c380e1f073dcb3af28d5758bba1d477e2f1313c61c233cf2acef4362c5380b30bcae6a02eb704a8a3fdf80ddfd75a
EBUILD kdevelop-22.12.0.ebuild 4135 BLAKE2B c6f74779dc5044393afc9fc2dffd6ec46a273f7ef4e31d86d96977bd33118c24081124ec48a3b8800770ae42639be7b210f8f285e0019485000462a1a8746c0f SHA512 ee817d93fdcf0bf20fe9b42c65995b2b6a0793990c86140065a031df81c869a441f3639359276281af0fe6698f15ad9054179e15b7edda7f653d7da454204a0f
+EBUILD kdevelop-22.12.3-r1.ebuild 4197 BLAKE2B becc1b76ab207ddff1952f5f54fb9e184c669c8045fc366e440974bce225bb8f20358878ad7381e135eab6609e0b13eb976de9afc72b174fbd4f9a5399143728 SHA512 41a25c12385fe30fc78fc1192139167f0364e32f6529a6379cfef3984435174376bcb9127f62463e57b8b2ede50c374c5ba64b436118bad543663126fed08f78
EBUILD kdevelop-22.12.3.ebuild 4142 BLAKE2B 11b50f0e1c9127494834a4c5586557ce092def69caf33f5328bef0f69f54bef9d06f0135d549a53bbe2546717270be0055cb5a21c27ca58536b83e27b131c412 SHA512 6bdf6515905f8cbc9d608b953060eae8828900c1af56b59d494badd69647ebe8257cdc8f45c7d36f0825030bba666b297edb375a0b73c41e0e6bdeb831487c4c
MISC metadata.xml 623 BLAKE2B defbd6a6a992f04fe71d13ca0e6da0b6c7015992f148f1fdd0d844430c44268e5c765c46afabee4af650992556e81acfb1024c94e6e274aefbbf46b65b9762af SHA512 4b022d64a261251c01eb9c8d8ee8aafeac6309272274fa8493f5bb8480cc93be482b145a70fd1a36bc30feaf8649ae17addfe8d7bcf57f78173e0f198805985c
diff --git a/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch b/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch
new file mode 100644
index 000000000000..38676cc16473
--- /dev/null
+++ b/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/902101
+--- a/cmake/modules/FindClang.cmake
++++ b/cmake/modules/FindClang.cmake
+@@ -97,6 +97,8 @@
+ # dito for git
+ string(REPLACE "git" "" CLANG_VERSION_CLEAN "${CLANG_VERSION}")
+
++ string(REGEX REPLACE "([.]0)+$" "" CLANG_VERSION_STRIPPED "${CLANG_VERSION}")
++ string(REGEX REPLACE "([.]0)+$" "" CLANG_VERSION_CLEAN_STRIPPED "${CLANG_VERSION_CLEAN}")
+ find_path(CLANG_BUILTIN_DIR
+ # cpuid.h because it is defined in ClangSupport constructor as valid clang builtin dir indicator
+ NAMES "cpuid.h"
+@@ -106,6 +108,10 @@
+ "../../../clang/${CLANG_VERSION}/include"
+ "clang/${CLANG_VERSION_CLEAN}/include"
+ "../../../clang/${CLANG_VERSION_CLEAN}/include"
++ "clang/${CLANG_VERSION_STRIPPED}/include"
++ "../../../clang/${CLANG_VERSION_STRIPPED}/include"
++ "clang/${CLANG_VERSION_CLEAN_STRIPPED}/include"
++ "../../../clang/${CLANG_VERSION_CLEAN_STRIPPED}/include"
+ NO_DEFAULT_PATH
+ )
+
+
diff --git a/dev-util/kdevelop/kdevelop-22.12.3-r1.ebuild b/dev-util/kdevelop/kdevelop-22.12.3-r1.ebuild
new file mode 100644
index 000000000000..6788033f46fe
--- /dev/null
+++ b/dev-util/kdevelop/kdevelop-22.12.3-r1.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="true"
+KDE_ORG_CATEGORY="kdevelop"
+KFMIN=5.101.0
+LLVM_MAX_SLOT=16
+QTMIN=5.15.5
+VIRTUALDBUS_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit ecm gear.kde.org llvm optfeature
+
+DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more"
+HOMEPAGE="https://www.kdevelop.org/"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="5/57" # look at KDEVELOP_SOVERSION inside CMakeLists.txt
+IUSE="+gdbui hex +plasma +qmake reviewboard subversion"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+# see bug 366471
+RESTRICT="test"
+
+COMMON_DEPEND="
+ dev-libs/grantlee:5
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qthelp-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qttest-${QTMIN}:5
+ >=dev-qt/qtwebengine-${QTMIN}:5[widgets]
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=dev-qt/qtxml-${QTMIN}:5
+ >=dev-util/astyle-3.1:=
+ kde-apps/libkomparediff2:5
+ >=kde-frameworks/karchive-${KFMIN}:5
+ >=kde-frameworks/kbookmarks-${KFMIN}:5
+ >=kde-frameworks/kcmutils-${KFMIN}:5
+ >=kde-frameworks/kcodecs-${KFMIN}:5
+ >=kde-frameworks/kcompletion-${KFMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kcrash-${KFMIN}:5
+ >=kde-frameworks/kdeclarative-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/kiconthemes-${KFMIN}:5
+ >=kde-frameworks/kio-${KFMIN}:5
+ >=kde-frameworks/kitemmodels-${KFMIN}:5
+ >=kde-frameworks/kitemviews-${KFMIN}:5
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5
+ >=kde-frameworks/knewstuff-${KFMIN}:5
+ >=kde-frameworks/knotifications-${KFMIN}:5
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5
+ >=kde-frameworks/kparts-${KFMIN}:5
+ >=kde-frameworks/kservice-${KFMIN}:5
+ >=kde-frameworks/ktexteditor-${KFMIN}:5
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ >=kde-frameworks/sonnet-${KFMIN}:5
+ >=kde-frameworks/threadweaver-${KFMIN}:5
+ <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
+ gdbui? ( kde-plasma/libksysguard:5= )
+ hex? ( app-editors/okteta:5 )
+ plasma? (
+ >=kde-frameworks/krunner-${KFMIN}:5
+ >=kde-frameworks/plasma-${KFMIN}:5
+ )
+ qmake? ( dev-util/kdevelop-pg-qt:5 )
+ reviewboard? ( >=kde-frameworks/purpose-${KFMIN}:5 )
+ subversion? (
+ dev-libs/apr:1
+ dev-libs/apr-util:1
+ dev-vcs/subversion
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ >=dev-qt/qtconcurrent-${QTMIN}:5
+"
+RDEPEND="${COMMON_DEPEND}
+ >=dev-qt/qdbus-${QTMIN}:*
+ >=dev-qt/qtquickcontrols-${QTMIN}:5
+ >=dev-qt/qtquickcontrols2-${QTMIN}:5
+ dev-util/ninja
+ kde-apps/kapptemplate:5
+ kde-apps/kio-extras:5
+ >=sys-devel/gdb-7.0[python]
+ reviewboard? ( kde-apps/ktp-accounts-kcm:5 )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-22.12.3-clang16.patch
+)
+
+llvm_check_deps() {
+ has_version -d "sys-devel/clang:${LLVM_SLOT}"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLLVM_ROOT="$(get_llvm_prefix ${LLVM_SLOT})"
+ $(cmake_use_find_package gdbui KSysGuard)
+ -DBUILD_executeplasmoid=$(usex plasma)
+ $(cmake_use_find_package plasma KF5Plasma)
+ $(cmake_use_find_package hex OktetaKastenControllers)
+ $(cmake_use_find_package qmake KDevelop-PG-Qt)
+ $(cmake_use_find_package reviewboard KF5Purpose)
+ $(cmake_use_find_package subversion SubversionLibrary)
+ )
+
+ use gdbui || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KF5SysGuard=ON )
+ use reviewboard || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KDEExperimentalPurpose=ON )
+
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ optfeature "konsole view" kde-apps/konsole
+ optfeature "static C++ Qt code analysis" dev-util/clazy
+ optfeature "static C/C++ code analysis" dev-util/cppcheck
+ optfeature "heap memory profiling" "dev-util/heaptrack[gui]"
+ optfeature "meson project manager plugin" dev-util/meson
+ optfeature "formatting configurations via customscript plugin" dev-util/indent
+ optfeature "formatting configurations via customscript plugin" dev-util/uncrustify
+ fi
+ ecm_pkg_postinst
+}