summaryrefslogtreecommitdiff
path: root/kde-apps/cantor
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-14.12.0.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/kde-apps/cantor/Manifest b/kde-apps/cantor/Manifest
index bfa8fbab9b8..856c59f1de0 100644
--- a/kde-apps/cantor/Manifest
+++ b/kde-apps/cantor/Manifest
@@ -1 +1,2 @@
DIST cantor-14.11.97.tar.xz 343260 SHA256 c78b747ea9060e147bf854a19eefe21a340edb67c40d35acac5c50ca0073b171 SHA512 af75e45faa4dd10bee1f1a67ffb875334de249033aae13693510e49b9e344b0060fcec67f8a665f70c65a17924afff323e65dab33d6d4dcf8155023afc349b45 WHIRLPOOL bd10d423fe542dfe19054d1267714e80cc3ac8224e272b477ec64ed6956bb08a13f68f00986078d1e0c2d03a06c3374fd2b83cfa2154d64a0decf402958ec45f
+DIST cantor-14.12.0.tar.xz 343308 SHA256 59356125a1c71ea8b60e7be847a3d0c3d4fcf4e788fb5ac17a40f05914515be0 SHA512 6bdb75fb7873bc5a226ba3f2f843de73a2ef955db909548d79bc78753d735838a4d30ce7f203f450631916ec3fef42bb71748bb10437923e87c15ad035b3b152 WHIRLPOOL 8c3ad1f95f745ab5e61cc22684a590a92743b506b3160af86beb2be97f6526f5e32cfa4c469852317b0a7e8a5f27476bcf05e37a92ca5df4b1a6e2f9524ac3ab
diff --git a/kde-apps/cantor/cantor-14.12.0.ebuild b/kde-apps/cantor/cantor-14.12.0.ebuild
new file mode 100644
index 00000000000..1f251becc48
--- /dev/null
+++ b/kde-apps/cantor/cantor-14.12.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+PYTHON_COMPAT=( python2_7 )
+inherit kde4-base python-single-r1
+
+DESCRIPTION="KDE4 interface for doing mathematics and scientific computing"
+HOMEPAGE="http://www.kde.org/applications/education/cantor http://edu.kde.org/cantor"
+KEYWORDS=" ~amd64 ~x86"
+IUSE="analitza debug postscript python qalculate +R"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# TODO Add Sage Mathematics Software backend (http://www.sagemath.org)
+RDEPEND="
+ analitza? ( $(add_kdebase_dep analitza) )
+ qalculate? (
+ sci-libs/cln
+ sci-libs/libqalculate
+ )
+ postscript? ( app-text/libspectre )
+ python? ( ${PYTHON_DEPS} )
+ R? ( dev-lang/R )
+ dev-qt/qtxmlpatterns:4
+"
+DEPEND="${RDEPEND}
+ >=dev-cpp/eigen-2.0.3:2
+"
+
+RESTRICT="test"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ kde4-base_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with analitza)
+ $(cmake-utils_use_with postscript LibSpectre)
+ $(cmake-utils_use_with python PythonLibs)
+ $(cmake-utils_use_with qalculate)
+ $(cmake-utils_use_with R)
+ )
+ kde4-base_src_configure
+}
+
+pkg_postinst() {
+ kde4-base_pkg_postinst
+
+ if ! use analitza && ! 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', 'python', 'qalculate' or 'R' USE flag enabled"
+ ewarn " # emerge -vaDu sci-mathematics/maxima"
+ echo
+ fi
+}