commit:     5035ce251b84571124311541bf38187e2ace9c0e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 10 19:54:50 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 10 20:21:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5035ce25

kde-apps/kig: add 25.07.70_p20250610

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kig/Manifest                              |  1 +
 .../kig/files/kig-25.07.70-cmake-boostpython.patch | 91 ++++++++++++++++++++++
 kde-apps/kig/kig-25.07.70_p20250610.ebuild         | 63 +++++++++++++++
 3 files changed, 155 insertions(+)

diff --git a/kde-apps/kig/Manifest b/kde-apps/kig/Manifest
index e455e867d682..abbfa4713e02 100644
--- a/kde-apps/kig/Manifest
+++ b/kde-apps/kig/Manifest
@@ -1 +1,2 @@
 DIST kig-25.04.0.tar.xz 3253632 BLAKE2B 
f721c103bff1e3dd45e465bcc778c657b9327346dc6ec65161064d3fd60a834a867eba5e510bd8ba44e899447dbb97894a2670f224422c1a948339c28db3f342
 SHA512 
7431d495646645ea5ce2a8eb4eff169d017c62c865bc9fbd73762a501f183f3a288d0d7d504a00be2fd48e69a755c43b892205c42723a724ca4295cf0e369b32
+DIST kig-25.07.70_p20250610-e962bde7.tar.gz 4793685 BLAKE2B 
0a90daf63ca2032b2a7c4bcdf0173b059dba00bc7798960f432226600570119ede53e4094366662b22c7d985e51637ebb795dcf1a86fd09a2b7a7f58ca378d18
 SHA512 
365f694672cc5bb8af43cdf63286880be4366ab5f5b6cc10f99346340ef324d74782eb84655a4bb6d10eddffe904883af3fd78101e26818d7cd0a34c9c2cc7f9

diff --git a/kde-apps/kig/files/kig-25.07.70-cmake-boostpython.patch 
b/kde-apps/kig/files/kig-25.07.70-cmake-boostpython.patch
new file mode 100644
index 000000000000..f0da50cfc31a
--- /dev/null
+++ b/kde-apps/kig/files/kig-25.07.70-cmake-boostpython.patch
@@ -0,0 +1,91 @@
+From 39bf05d48f899612dffa07c73ac276f52820a7c9 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Mon, 13 Jul 2020 00:41:25 +0200
+Subject: [PATCH] Use CMake's own FindBoost module to detect Boost Python
+
+Introduces BOOSTPYTHON_VERSION_MAJOR_MINOR for packaging.
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt | 26 ++++++++++++--------------
+ 1 file changed, 12 insertions(+), 14 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e65585fb..e07a4dc6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -51,7 +51,8 @@ endif()
+ 
+ include(KigConfigureChecks.cmake)
+ 
+-find_package(BoostPython)
++set(BOOSTPYTHON_VERSION_MAJOR_MINOR python37 CACHE STRING "Version of 
BoostPython to feed CMake's FindBoost")
++find_package(Boost 1.70 COMPONENTS ${BOOSTPYTHON_VERSION_MAJOR_MINOR})
+ 
+ if(KF6DocTools_FOUND)
+   add_subdirectory( doc )
+@@ -61,15 +62,15 @@ add_subdirectory( macros )
+ add_subdirectory( data )
+ add_subdirectory( pykig )
+ 
+-if(BoostPython_FOUND)
++if(Boost_FOUND)
++  find_package(PythonLibs 3 REQUIRED)
++  include_directories(${PYTHON_INCLUDE_DIRS})
+   add_subdirectory( scripting )
+   add_definitions(-DKIG_ENABLE_PYTHON_SCRIPTING)
+-endif(BoostPython_FOUND)
++endif()
+ 
+ set_package_properties(
+-   BoostPython PROPERTIES
+-   DESCRIPTION "Python scripting support in Boost"
+-   URL "https://www.boost.org/";
++   Boost PROPERTIES
+    TYPE OPTIONAL
+    PURPOSE "Kig can optionally use Boost.Python for Python scripting"
+ )
+@@ -85,9 +86,6 @@ set_package_properties(
+ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+ 
+ include_directories( ${CMAKE_SOURCE_DIR}/modes )
+-if(BoostPython_FOUND)
+-  include_directories(${BoostPython_INCLUDE_DIRS})
+-endif(BoostPython_FOUND)
+ 
+ # kigpart
+ 
+@@ -225,7 +223,7 @@ ki18n_wrap_ui(kigpart_PART_SRCS
+    misc/kigcoordinateprecisiondialog.ui
+ )
+ 
+-if(BoostPython_FOUND)
++if(Boost_FOUND)
+   set(kigpart_PART_SRCS ${kigpart_PART_SRCS}
+      modes/popup/scriptactionsprovider.cc
+      scripting/newscriptwizard.cc
+@@ -236,7 +234,7 @@ if(BoostPython_FOUND)
+   )
+ 
+   kde_source_files_enable_exceptions(scripting/python_scripter.cc)
+-endif(BoostPython_FOUND)
++endif()
+ 
+ 
+ add_library(kigpart MODULE ${kigpart_PART_SRCS})
+@@ -256,9 +254,9 @@ target_link_libraries(kigpart
+   KF6::Archive
+ )
+ 
+-if(BoostPython_FOUND)
+-  target_link_libraries(kigpart ${BoostPython_LIBRARIES} KF6::TextEditor)
+-endif(BoostPython_FOUND)
++if(Boost_FOUND)
++  target_link_libraries(kigpart Boost::${BOOSTPYTHON_VERSION_MAJOR_MINOR} 
${PYTHON_LIBRARIES} KF6::TextEditor)
++endif()
+ 
+ if (Qt${QT_MAJOR_VERSION}XmlPatterns_FOUND)
+   target_link_libraries(kigpart Qt::XmlPatterns)
+-- 
+2.27.0
+

diff --git a/kde-apps/kig/kig-25.07.70_p20250610.ebuild 
b/kde-apps/kig/kig-25.07.70_p20250610.ebuild
new file mode 100644
index 000000000000..acf4b9022128
--- /dev/null
+++ b/kde-apps/kig/kig-25.07.70_p20250610.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="true"
+KDE_ORG_COMMIT="e962bde77de038e857d194bb1104150a4a49f654"
+PYTHON_COMPAT=( python3_{11..13} )
+KFMIN=6.13.0
+QTMIN=6.8.1
+inherit python-single-r1 ecm gear.kde.org xdg
+
+DESCRIPTION="KDE Interactive Geometry tool"
+HOMEPAGE="https://apps.kde.org/kig/";
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="scripting"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       >=dev-qt/qtbase-${QTMIN}:6[gui,widgets,xml]
+       >=dev-qt/qtsvg-${QTMIN}:6
+       >=kde-frameworks/karchive-${KFMIN}:6
+       >=kde-frameworks/kcompletion-${KFMIN}:6
+       >=kde-frameworks/kconfig-${KFMIN}:6
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+       >=kde-frameworks/kcoreaddons-${KFMIN}:6
+       >=kde-frameworks/kcrash-${KFMIN}:6
+       >=kde-frameworks/ki18n-${KFMIN}:6
+       >=kde-frameworks/kiconthemes-${KFMIN}:6
+       >=kde-frameworks/kparts-${KFMIN}:6
+       >=kde-frameworks/kservice-${KFMIN}:6
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+       >=kde-frameworks/kxmlgui-${KFMIN}:6
+       scripting? (
+               $(python_gen_cond_dep '
+                       >=dev-libs/boost-1.70:=[python,${PYTHON_USEDEP}]
+               ')
+       )
+"
+DEPEND="${RDEPEND}
+       >=kde-frameworks/ktexteditor-${KFMIN}:6
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-25.07.70-cmake-boostpython.patch )
+
+src_prepare() {
+       ecm_src_prepare
+       python_fix_shebang .
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DBOOSTPYTHON_VERSION_MAJOR_MINOR=${EPYTHON}
+               $(cmake_use_find_package scripting Boost)
+       )
+
+       ecm_src_configure
+}

Reply via email to