mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
kde-apps/cantor: drop 20.08.3*
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST cantor-20.08.3.tar.xz 9082332 BLAKE2B 7ea84959559e109a28794d1f610e07936de353c08e7732a90c6f8145828df99d6b408006580e367208e135c3d76530bdb02716c873a4adf491912ef07b470350 SHA512 8558bb6b3e6641c1c575a4f5f0b1db7f6d6003ed011432f555ee0954586f0cd3a0d1d897d55114dd29cd9aa58d7e6d7ffb9a2357b1e96c01bbf2b4f3623174dd
|
||||
DIST cantor-20.12.3.tar.xz 9128948 BLAKE2B 9cc4c6b28ea1f9946ad6d4eeac98b5c47b17b16efc434f355ba2a0f71b23afd4a58ab31df12a881e2a35e836901075d197ad9550409a97f025efdbd21ac919de SHA512 35461a47c9ce4aa4de8ca8496ca33c42691db6be927f30018e174f3234a485c436cca90b6362c8ba325f8bc220a09079069278bdfd08f4510dd7d12ee1a39ed7
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
ECM_TEST="forceoptional"
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.74.0
|
||||
QTMIN=5.15.1
|
||||
inherit ecm kde.org optfeature python-single-r1
|
||||
|
||||
DESCRIPTION="Interface for doing mathematics and scientific computing"
|
||||
HOMEPAGE="https://apps.kde.org/en/cantor https://edu.kde.org/cantor/"
|
||||
|
||||
LICENSE="GPL-2" # TODO: CHECK
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64 arm64 x86"
|
||||
IUSE="+analitza julia lua postscript python qalculate R"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# TODO Add Sage Mathematics Software backend (http://www.sagemath.org)
|
||||
DEPEND="
|
||||
app-text/poppler[qt5]
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtxml-${QTMIN}:5
|
||||
>=dev-qt/qtxmlpatterns-${QTMIN}:5
|
||||
>=kde-frameworks/karchive-${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/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/knewstuff-${KFMIN}:5
|
||||
>=kde-frameworks/kparts-${KFMIN}:5
|
||||
>=kde-frameworks/kpty-${KFMIN}:5
|
||||
>=kde-frameworks/ktexteditor-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
>=kde-frameworks/syntax-highlighting-${KFMIN}:5
|
||||
analitza? ( >=kde-apps/analitza-${PVCUT}:5 )
|
||||
julia? ( dev-lang/julia )
|
||||
lua? ( dev-lang/luajit:2 )
|
||||
qalculate? (
|
||||
sci-libs/cln
|
||||
sci-libs/libqalculate:=
|
||||
)
|
||||
postscript? ( app-text/libspectre )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
)
|
||||
R? ( dev-lang/R )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!analitza? ( !julia? ( !lua? ( !python? ( !qalculate? ( !R? (
|
||||
|| (
|
||||
sci-mathematics/maxima
|
||||
sci-mathematics/octave
|
||||
)
|
||||
) ) ) ) ) )
|
||||
"
|
||||
|
||||
RESTRICT+=" test"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-20.08.3-python.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
ecm_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use julia && addpredict /proc/self/mem # bug 602894
|
||||
|
||||
local mycmakeargs=(
|
||||
$(cmake_use_find_package analitza Analitza5)
|
||||
$(cmake_use_find_package julia Julia)
|
||||
$(cmake_use_find_package lua LuaJIT)
|
||||
-DUSE_LIBSPECTRE=$(usex postscript)
|
||||
$(cmake_use_find_package python Python3)
|
||||
$(cmake_use_find_package qalculate Qalculate)
|
||||
$(cmake_use_find_package R R)
|
||||
)
|
||||
use python && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" )
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
optfeature "Maxima backend" sci-mathematics/maxima
|
||||
optfeature "Octave backend" sci-mathematics/octave
|
||||
optfeature "LaTeX support" virtual/latex-base
|
||||
fi
|
||||
ecm_pkg_postinst
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
From c794fb5f0f616ce2d9e4004fc459a1c50f077470 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Sun, 11 Oct 2020 22:47:55 +0200
|
||||
Subject: [PATCH] Use CMake FindPython3 module, raises minimum CMake to 3.12
|
||||
|
||||
Gives us out-of-the-box future proof python detection (python-3.9 right now).
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
src/backends/CMakeLists.txt | 10 ++++------
|
||||
src/backends/python/CMakeLists.txt | 4 +---
|
||||
3 files changed, 6 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e96e6df0..a90328b5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
|
||||
+cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
diff --git a/src/backends/CMakeLists.txt b/src/backends/CMakeLists.txt
|
||||
index e99e1731..9b6b615e 100644
|
||||
--- a/src/backends/CMakeLists.txt
|
||||
+++ b/src/backends/CMakeLists.txt
|
||||
@@ -50,15 +50,13 @@ if(QALCULATE_FOUND)
|
||||
add_subdirectory(qalculate)
|
||||
endif(QALCULATE_FOUND)
|
||||
|
||||
-set_package_properties(PythonLibs3 PROPERTIES DESCRIPTION "A powerful dynamic programming language."
|
||||
- URL "https://www.python.org/"
|
||||
- TYPE OPTIONAL
|
||||
+set_package_properties(Python3 PROPERTIES TYPE OPTIONAL
|
||||
PURPOSE "Backend to use Python with Cantor.")
|
||||
|
||||
-find_package(PythonLibs3)
|
||||
-if(PYTHONLIBS3_FOUND)
|
||||
+find_package(Python3 COMPONENTS Interpreter Development)
|
||||
+if(Python3_FOUND)
|
||||
add_subdirectory(python)
|
||||
-endif(PYTHONLIBS3_FOUND)
|
||||
+endif()
|
||||
|
||||
set_package_properties(LuaJIT PROPERTIES DESCRIPTION "A lightweight, extensible programming language (luajit implementation)."
|
||||
URL "https://www.lua.org/"
|
||||
diff --git a/src/backends/python/CMakeLists.txt b/src/backends/python/CMakeLists.txt
|
||||
index 04b4c313..c7868561 100644
|
||||
--- a/src/backends/python/CMakeLists.txt
|
||||
+++ b/src/backends/python/CMakeLists.txt
|
||||
@@ -14,8 +14,6 @@ set(PythonServer_SRCS
|
||||
pythonserver.cpp
|
||||
)
|
||||
|
||||
-include_directories(${PYTHONLIBS3_INCLUDE_DIRS})
|
||||
-
|
||||
qt5_add_resources(PythonBackend_RSCS python.qrc)
|
||||
ki18n_wrap_ui(PythonBackend_SRCS settings.ui)
|
||||
kconfig_add_kcfg_files(PythonBackend_SRCS settings.kcfgc)
|
||||
@@ -34,7 +32,7 @@ set_target_properties(cantor_pythonserver PROPERTIES INSTALL_RPATH_USE_LINK_PATH
|
||||
if(MSVC)
|
||||
set_property(TARGET cantor_pythonserver PROPERTY LINK_FLAGS "/SUBSYSTEM:CONSOLE")
|
||||
endif()
|
||||
-target_link_libraries(cantor_pythonserver ${PYTHONLIBS3_LIBRARIES})
|
||||
+target_link_libraries(cantor_pythonserver Python3::Python)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_executable(testpython testpython.cpp settings.cpp)
|
||||
--
|
||||
2.28.0
|
||||
|
||||
Reference in New Issue
Block a user