diff options
| author | Alfred Wingate <parona@protonmail.com> | 2025-08-07 15:51:53 +0300 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2025-08-07 20:26:14 +0200 |
| commit | cdcf4563f6cb0e4c0b0c8ad27a37e1dd0ca5e890 (patch) | |
| tree | aea02a61e255ed47d417b6ebcc6adfe937576dc6 | |
| parent | 1abf5c9f109872d4cd4bf96f320366e44ab03ab8 (diff) | |
| download | kde-cdcf4563f6cb0e4c0b0c8ad27a37e1dd0ca5e890.tar.gz kde-cdcf4563f6cb0e4c0b0c8ad27a37e1dd0ca5e890.tar.bz2 kde-cdcf4563f6cb0e4c0b0c8ad27a37e1dd0ca5e890.zip | |
kde-apps/kig: modify patch to apply again (again) after upstream changes
Upstream commit: d23d4691ff06ad5b62984a791e80cffcf59edf54
Upstream commit (25.08): 01e0bec7a9a78346a7cb5da85823a5aebb23d959
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/kde/pull/1062
Closes: https://github.com/gentoo/kde/pull/1062
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rw-r--r-- | kde-apps/kig/files/kig-25.08.0-cmake-boostpython.patch | 75 | ||||
| -rw-r--r-- | kde-apps/kig/kig-25.08.49.9999.ebuild | 2 | ||||
| -rw-r--r-- | kde-apps/kig/kig-9999.ebuild | 2 |
3 files changed, 77 insertions, 2 deletions
diff --git a/kde-apps/kig/files/kig-25.08.0-cmake-boostpython.patch b/kde-apps/kig/files/kig-25.08.0-cmake-boostpython.patch new file mode 100644 index 00000000000..9fe94c49b34 --- /dev/null +++ b/kde-apps/kig/files/kig-25.08.0-cmake-boostpython.patch @@ -0,0 +1,75 @@ +From e81b46476ba18c6b4c098dec37e527f00a6af193 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +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 <asturm@gentoo.org> +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,7 +55,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 ) +@@ -67,7 +68,9 @@ add_subdirectory( mimetypes ) + add_subdirectory( macros ) + 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) + get_filename_component(PYTHON_LIBRARY_REALPATH "${PYTHON_LIBRARY}" REALPATH) +@@ -76,9 +79,7 @@ if(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" + ) +@@ -96,9 +97,6 @@ endif() + feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) + + include_directories( ${CMAKE_SOURCE_DIR}/modes ) +-if(BoostPython_FOUND) +- include_directories(${BoostPython_INCLUDE_DIRS}) +-endif() + + # kigpart + +@@ -348,7 +346,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 +@@ -379,8 +377,8 @@ target_link_libraries(kigpart + KF6::Archive + ) + +-if(BoostPython_FOUND) +- target_link_libraries(kigpart ${BoostPython_LIBRARIES} KF6::TextEditor) ++if(Boost_FOUND) ++ target_link_libraries(kigpart Boost::${BOOSTPYTHON_VERSION_MAJOR_MINOR} ${PYTHON_LIBRARIES} KF6::TextEditor) + endif() + + if (Qt${QT_MAJOR_VERSION}XmlPatterns_FOUND) +-- +2.50.1 + diff --git a/kde-apps/kig/kig-25.08.49.9999.ebuild b/kde-apps/kig/kig-25.08.49.9999.ebuild index eb7b4735291..751c054b2c1 100644 --- a/kde-apps/kig/kig-25.08.49.9999.ebuild +++ b/kde-apps/kig/kig-25.08.49.9999.ebuild @@ -45,7 +45,7 @@ DEPEND="${RDEPEND} >=kde-frameworks/ktexteditor-${KFMIN}:6 " -PATCHES=( "${FILESDIR}"/${PN}-25.07.80-cmake-boostpython.patch ) +PATCHES=( "${FILESDIR}"/${PN}-25.08.0-cmake-boostpython.patch ) src_prepare() { ecm_src_prepare diff --git a/kde-apps/kig/kig-9999.ebuild b/kde-apps/kig/kig-9999.ebuild index eb7b4735291..751c054b2c1 100644 --- a/kde-apps/kig/kig-9999.ebuild +++ b/kde-apps/kig/kig-9999.ebuild @@ -45,7 +45,7 @@ DEPEND="${RDEPEND} >=kde-frameworks/ktexteditor-${KFMIN}:6 " -PATCHES=( "${FILESDIR}"/${PN}-25.07.80-cmake-boostpython.patch ) +PATCHES=( "${FILESDIR}"/${PN}-25.08.0-cmake-boostpython.patch ) src_prepare() { ecm_src_prepare |
