summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-apps/cantor')
-rw-r--r--kde-apps/cantor/Manifest1
-rw-r--r--kde-apps/cantor/cantor-15.12.3-r1.ebuild107
-rw-r--r--kde-apps/cantor/files/cantor-15.12.3-qt56.patch27
-rw-r--r--kde-apps/cantor/files/cantor-15.12.3-tests.patch49
4 files changed, 0 insertions, 184 deletions
diff --git a/kde-apps/cantor/Manifest b/kde-apps/cantor/Manifest
index 1169ae606943..4bc55b311ede 100644
--- a/kde-apps/cantor/Manifest
+++ b/kde-apps/cantor/Manifest
@@ -1,2 +1 @@
-DIST cantor-15.12.3.tar.xz 350924 SHA256 0c67d99038cc7b2f59de6f001337267131e3d420035dd10a05b860859afe423b SHA512 0544574803085fdad61eb2a6896fa7b5b7fc8bd96ebb251f3b3c5efafcb9dc0e30cf8a8719c3bd8e77bcbf140e7798b8cce498ccb92db415e4e816dd19ecd0d8 WHIRLPOOL 62e637230e997bd65c098f9f92245e50c0c67d790d4b6138133188ddbedbc102254701626b9e7828c7ad8dc25602e39c00fd3a42429c580dd5ba9eeffd01aa00
DIST cantor-16.04.3.tar.xz 351024 SHA256 eae03b97912a193ebe2207f45dcd581ab537ef6c5feb849492fb95dec2aa0cd7 SHA512 01f8cd1ed1209a182ad798dbdaaebf5fd8cf4a29459b8bcb605108cf44382c49757ab94189080ebdca0c9c1de6036f7c9bfd4ba68c2171aff245124cf0074a5c WHIRLPOOL 7ff4ce453762885d4dca27e272e9082f45897a94b1fe11b3c844d27f9a07ae703e867d28ea665a8212218d79a91b37f34c19465b82cb31e9ea8a1f3a7b80448b
diff --git a/kde-apps/cantor/cantor-15.12.3-r1.ebuild b/kde-apps/cantor/cantor-15.12.3-r1.ebuild
deleted file mode 100644
index 1d0a335b5831..000000000000
--- a/kde-apps/cantor/cantor-15.12.3-r1.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-KDE_HANDBOOK="forceoptional"
-KDE_TEST="forceoptional"
-PYTHON_COMPAT=( python2_7 )
-# FIXME: PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
-inherit kde5 python-r1
-
-DESCRIPTION="Interface for doing mathematics and scientific computing"
-HOMEPAGE="https://www.kde.org/applications/education/cantor https://edu.kde.org/cantor"
-KEYWORDS="amd64 x86"
-IUSE="analitza lua postscript python qalculate +R"
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-# TODO Add Sage Mathematics Software backend (http://www.sagemath.org)
-# FIXME: $(python_gen_cond_dep 'dev-qt/qtdbus:5' 'python3*')
-RDEPEND="
- $(add_frameworks_dep karchive)
- $(add_frameworks_dep kcompletion)
- $(add_frameworks_dep kconfig)
- $(add_frameworks_dep kconfigwidgets)
- $(add_frameworks_dep kcoreaddons)
- $(add_frameworks_dep kcrash)
- $(add_frameworks_dep kdelibs4support)
- $(add_frameworks_dep ki18n)
- $(add_frameworks_dep kio)
- $(add_frameworks_dep knewstuff)
- $(add_frameworks_dep kparts)
- $(add_frameworks_dep kpty)
- $(add_frameworks_dep ktexteditor)
- $(add_frameworks_dep kwidgetsaddons)
- $(add_frameworks_dep kxmlgui)
- $(add_qt_dep qtgui)
- $(add_qt_dep qtsvg)
- $(add_qt_dep qtwidgets)
- $(add_qt_dep qtxml)
- $(add_qt_dep qtxmlpatterns)
- analitza? ( $(add_kdeapps_dep analitza) )
- lua? ( dev-lang/luajit:2 )
- qalculate? (
- sci-libs/cln
- sci-libs/libqalculate
- )
- postscript? ( app-text/libspectre )
- python? ( ${PYTHON_DEPS} )
- R? ( dev-lang/R )
-"
-DEPEND="${RDEPEND}
- >=dev-cpp/eigen-2.0.3:2
-"
-
-RESTRICT="test"
-
-PATCHES=(
- "${FILESDIR}/${P}-tests.patch"
- "${FILESDIR}/${P}-qt56.patch"
-)
-
-pkg_setup() {
- use python && python_setup
- kde5_pkg_setup
-}
-
-src_prepare() {
- kde5_src_prepare
-
- # FIXME: shipped FindPythonLibs3.cmake does not work for Gentoo
- sed -e "/^find_package(PythonLibs3)/ s/^/#/" \
- -i src/backends/CMakeLists.txt || die
-
- if ! use test ; then
- sed -e "/add_subdirectory(test)/ s/^/#DONT/" \
- -i src/lib/CMakeLists.txt || die
- sed -e "/add_subdirectory(tests)/ s/^/#DONT/" \
- -i src/backends/python3/CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- $(cmake-utils_use_find_package analitza Analitza5)
- $(cmake-utils_use_find_package lua LuaJIT)
- $(cmake-utils_use_find_package postscript LibSpectre)
- $(cmake-utils_use_find_package python PythonLibs)
- $(cmake-utils_use_find_package qalculate Qalculate)
- $(cmake-utils_use_find_package R R)
- )
- kde5_src_configure
-}
-
-pkg_postinst() {
- kde5_pkg_postinst
-
- if ! use analitza && ! use lua && ! use python && ! use qalculate && ! use R; then
- echo
- ewarn "You have decided to build ${PN} with no backend."
- ewarn "To have this application functional, please do one of below:"
- ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'lua', 'python', 'qalculate' or 'R' USE flag enabled"
- ewarn " # emerge -vaDu sci-mathematics/maxima"
- echo
- fi
-}
diff --git a/kde-apps/cantor/files/cantor-15.12.3-qt56.patch b/kde-apps/cantor/files/cantor-15.12.3-qt56.patch
deleted file mode 100644
index 6434f6592884..000000000000
--- a/kde-apps/cantor/files/cantor-15.12.3-qt56.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 683418b3663ddc588c44063cc11abb20970e8e08 Mon Sep 17 00:00:00 2001
-From: David Faure <faure@kde.org>
-Date: Thu, 2 Jun 2016 08:56:43 +0200
-Subject: [PATCH] Fix compilation error "qobject.h:300:9: error: static
- assertion failed: Signal and slot arguments are not compatible."
-
-(cherry picked from commit 841b6f6e19d829d6ab9ee13a5d4b0bcc9f1ee2df)
----
- src/worksheettextitem.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/worksheettextitem.cpp b/src/worksheettextitem.cpp
-index 503153c..493ed48 100644
---- a/src/worksheettextitem.cpp
-+++ b/src/worksheettextitem.cpp
-@@ -180,7 +180,7 @@ void WorksheetTextItem::populateMenu(QMenu *menu, const QPointF& pos)
- QKeyEvent* WorksheetTextItem::eventForStandardAction(KStandardAction::StandardAction actionID)
- {
- // there must be a better way to get the shortcut...
-- QAction * action = KStandardAction::create(actionID, this, 0, this);
-+ QAction * action = KStandardAction::create(actionID, this, SLOT(copy()), this);
- QKeySequence keySeq = action->shortcut();
- // we do not support key sequences with multiple keys here
- int code = keySeq[0];
---
-2.7.3
-
diff --git a/kde-apps/cantor/files/cantor-15.12.3-tests.patch b/kde-apps/cantor/files/cantor-15.12.3-tests.patch
deleted file mode 100644
index 5cea78d6c3a6..000000000000
--- a/kde-apps/cantor/files/cantor-15.12.3-tests.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- a/src/backends/maxima/CMakeLists.txt 2016-03-21 02:16:05.549024821 +0100
-+++ b/src/backends/maxima/CMakeLists.txt 2016-03-21 02:22:07.951014021 +0100
-@@ -21,12 +21,14 @@
- target_link_libraries(cantor_maximabackend KF5::Pty)
- endif(NOT WIN32)
-
-+if (BUILD_TESTING)
- add_executable( testmaxima testmaxima.cpp)
- target_link_libraries( testmaxima
- cantorlibs
- cantortest
- ${QTTEST_LIBRARY}
- )
-+endif()
-
- install( FILES cantor_maxima.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
- install( FILES keywords.xml cantor-initmaxima.lisp DESTINATION ${KDE_INSTALL_DATADIR}/cantor/maximabackend)
---- a/src/backends/sage/CMakeLists.txt 2016-03-21 01:23:19.251791138 +0100
-+++ b/src/backends/sage/CMakeLists.txt 2016-03-21 01:27:16.300827617 +0100
-@@ -17,12 +17,14 @@
-
- target_link_libraries( cantor_sagebackend KF5::Pty)
-
-+if (BUILD_TESTING)
- add_executable( testsage testsage.cpp)
- target_link_libraries( testsage
- ${QT_QTTEST_LIBRARY}
- cantorlibs
- cantortest
- )
-+endif()
-
- install( FILES cantor_sage.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
- install( FILES keywords.xml DESTINATION ${KDE_INSTALL_DATADIR}/cantor/sagebackend)
---- a/src/backends/python2/CMakeLists.txt 2016-03-21 01:28:39.055793038 +0100
-+++ b/src/backends/python2/CMakeLists.txt 2016-03-21 01:35:01.451012440 +0100
-@@ -20,10 +20,12 @@
- cantor_pythonbackend
- )
-
-+if (BUILD_TESTING)
- add_executable(testpython2 testpython2.cpp)
- target_link_libraries(testpython2 ${QT_QTTEST_LIBRARY} cantorlibs cantortest)
-
- add_test(NAME testpython2 COMMAND testpython2)
-+endif()
-
- install(FILES cantor_python2.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})
- install(FILES python2backend.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})