summaryrefslogtreecommitdiff
path: root/kde-apps/cantor
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-06-03 18:09:10 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-06-03 18:09:10 +0200
commit704417694263252c01f14d0fbef3356a3e76164e (patch)
tree131369fbca49e205057d2d3795221b0888297351 /kde-apps/cantor
parente99538ae6f02e22f0ac263480df46ba2dc9ad399 (diff)
downloadkde-704417694263252c01f14d0fbef3356a3e76164e.tar.gz
kde-704417694263252c01f14d0fbef3356a3e76164e.tar.bz2
kde-704417694263252c01f14d0fbef3356a3e76164e.zip
kde-apps/cantor: 25.04.2 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/cantor')
-rw-r--r--kde-apps/cantor/Manifest1
-rw-r--r--kde-apps/cantor/cantor-25.04.2.ebuild116
2 files changed, 117 insertions, 0 deletions
diff --git a/kde-apps/cantor/Manifest b/kde-apps/cantor/Manifest
new file mode 100644
index 00000000000..3b4736dd670
--- /dev/null
+++ b/kde-apps/cantor/Manifest
@@ -0,0 +1 @@
+DIST cantor-25.04.2.tar.xz 10906092 BLAKE2B d91d643d67a04af0a5ecf55e80ca49b79d00d31b267ea8f9015472730a2aa7597d07a2df28a697654883e0d5fbc1716d30b5b45632685bc6ffe32bb30a45540a SHA512 46e2c50d4e019b04d3498a2e9c737cb6c7d5ad4e56bf22c3043ee02b000a79c1bd6e9ffafc65ad0889b700fc7116dee58109dc863d759e45e3c35588612cae09
diff --git a/kde-apps/cantor/cantor-25.04.2.ebuild b/kde-apps/cantor/cantor-25.04.2.ebuild
new file mode 100644
index 00000000000..9b6f32ceb66
--- /dev/null
+++ b/kde-apps/cantor/cantor-25.04.2.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+LUA_COMPAT=( luajit )
+PYTHON_COMPAT=( python3_{11..13} )
+PVCUT=$(ver_cut 1-3)
+KFMIN=6.13.0
+QTMIN=6.7.2
+inherit ecm gear.kde.org lua-single optfeature python-single-r1 xdg
+
+DESCRIPTION="Interface for doing mathematics and scientific computing"
+HOMEPAGE="https://apps.kde.org/cantor/"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="6"
+KEYWORDS="~amd64 ~arm64"
+IUSE="+analitza julia lua postscript python qalculate R webengine"
+
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="test"
+
+# TODO Add Sage Mathematics Software backend (https://www.sagemath.org)
+DEPEND="
+ >=app-text/poppler-23.12.0[qt6]
+ dev-libs/libxml2:2=
+ dev-libs/libxslt
+ >=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/kio-${KFMIN}:6
+ >=kde-frameworks/knewstuff-${KFMIN}:6
+ >=kde-frameworks/kparts-${KFMIN}:6
+ >=kde-frameworks/ktexteditor-${KFMIN}:6
+ >=kde-frameworks/ktextwidgets-${KFMIN}:6
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+ >=kde-frameworks/kxmlgui-${KFMIN}:6
+ >=kde-frameworks/syntax-highlighting-${KFMIN}:6
+ analitza? ( >=kde-apps/analitza-${PVCUT}:6 )
+ julia? ( dev-lang/julia )
+ lua? ( ${LUA_DEPS} )
+ qalculate? (
+ sci-libs/cln
+ sci-libs/libqalculate:=
+ )
+ postscript? ( app-text/libspectre )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-qt/qtbase-${QTMIN}:6[dbus]
+ )
+ R? ( dev-lang/R )
+ webengine? (
+ >=dev-qt/qttools-${QTMIN}:6[assistant]
+ >=dev-qt/qtwebengine-${QTMIN}:6[widgets]
+ )
+"
+# !analitza?
+RDEPEND="${DEPEND}
+ !analitza? ( !julia? ( !lua? ( !python? ( !qalculate? ( !R? (
+ || (
+ sci-mathematics/maxima
+ sci-mathematics/octave
+ )
+ ) ) ) ) ) )
+"
+BDEPEND="x11-misc/shared-mime-info"
+
+pkg_setup() {
+ use lua && lua-single_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ use julia && addpredict /proc/self/mem # bug 602894
+
+ local mycmakeargs=(
+ $(cmake_use_find_package analitza Analitza6)
+ $(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)
+ -DENABLE_EMBEDDED_DOCUMENTATION=$(usex webengine)
+ )
+ use lua && mycmakeargs+=(
+ -DLUAJIT_INCLUDEDIR="${EPREFIX}/$(lua_get_include_dir)"
+ -DLUAJIT_LIBDIR="${EPREFIX}/$(lua_get_cmod_dir)"
+ )
+ ecm_src_configure
+}
+
+src_compile() {
+ # -j1 for bug #919576
+ MAKEOPTS="-j1" ecm_src_compile
+}
+
+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
+ xdg_pkg_postinst
+}