From 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 22 Apr 2018 14:25:03 +0100 Subject: gentoo resync : 22.04.2018 --- kde-apps/cantor/Manifest | 2 + kde-apps/cantor/cantor-18.04.0.ebuild | 107 ++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 kde-apps/cantor/cantor-18.04.0.ebuild (limited to 'kde-apps/cantor') diff --git a/kde-apps/cantor/Manifest b/kde-apps/cantor/Manifest index 304f18f6e07e..0aa8ef323bb0 100644 --- a/kde-apps/cantor/Manifest +++ b/kde-apps/cantor/Manifest @@ -1,3 +1,5 @@ DIST cantor-17.12.3.tar.xz 1066992 BLAKE2B fdaaa42adf45b3013337374b83b6da77d6adfd610e233d56a80965f35f3433b412d4f1279a3c2c3e257a57a69b44d7e190f42e325f0fd3fa5ef4223ce6ddbfb7 SHA512 37d080fa3e87cbd105e33c687b5bc670c0833639873c41e1dcc519577103186ec629c85b5a1875af915267eb7ca3d13f170894bb9c0c882c964ccc02a24cfa3b +DIST cantor-18.04.0.tar.xz 1068836 BLAKE2B 909f78fd5c19f95caa26633906c36e1b75e8009adb5e336e1a065e168bb8988c8875061d3699845c5188edff7db106b79bd187b0ab419d2b327789c44c904883 SHA512 a53d51aa1a095aad1ab0da21535b8409c51e246fa6fc08f30bb641d04e48783e6b2f610d282e1628471c99a547afe0c63bf795b7450bce9f28c8ba7aa2550617 EBUILD cantor-17.12.3.ebuild 3179 BLAKE2B f65cd049ec6997ea90b23d95ceb780f253abba21471f951cf42c1e9f6d5800261743ff40307c754486ce50f976da3ece31acfa28573bd75ad2834dc86002962b SHA512 6f6c02bceb62668e6deae92804f6de12a842234a8bc2597f65b93f202ae756f18fc91ab4fda4bc82d396030bdc9bbe8b76cb425386293a2f09676c5d12740e49 +EBUILD cantor-18.04.0.ebuild 3181 BLAKE2B 0261eb7e7526a73152dbfc6474218b6ec81eb8a6d612f8de2be2a53e0871492303704b93ee74d57b8ffedd2f5fcd7900f199c2016656693cb3da7fcbcb2290ca SHA512 c6acfee7b2aa258b16d66d885f6ff231ca3eb5c5d58dd4939e15f444bd33273610bada28119e8252e3c5e67c8d9dee81bbf2e4fe0b2a6576b538f1c0ef6e4200 MISC metadata.xml 581 BLAKE2B 7cfc048a2cf032149544315ef1f9925a2a98908f052cbabc3964d97a76d4cb7f9d7b5adc0eacd10b6b85b5bb32546b005329940f092013b38840f8b4bd266baa SHA512 708d09a5c43b10211c5eeac3458c4803a9956e62b25c58f4bc360fb1037c83554780eae6c85fa8fbff9ddef12c2f48159308b8a29f1882ca066d87997c474e53 diff --git a/kde-apps/cantor/cantor-18.04.0.ebuild b/kde-apps/cantor/cantor-18.04.0.ebuild new file mode 100644 index 000000000000..cd2bf41394b4 --- /dev/null +++ b/kde-apps/cantor/cantor-18.04.0.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_HANDBOOK="forceoptional" +KDE_TEST="forceoptional" +PYTHON_COMPAT=( python2_7 ) +# FIXME: PYTHON_COMPAT=( python{2_7,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 julia 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*') +DEPEND=" + $(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 ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep knewstuff) + $(add_frameworks_dep kparts) + $(add_frameworks_dep kpty) + $(add_frameworks_dep ktexteditor) + $(add_frameworks_dep ktextwidgets) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtsvg) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + $(add_qt_dep qtxmlpatterns) + analitza? ( $(add_kdeapps_dep analitza) ) + julia? ( dev-lang/julia ) + lua? ( dev-lang/luajit:2 ) + qalculate? ( + sci-libs/cln + sci-libs/libqalculate:= + ) + postscript? ( app-text/libspectre ) + python? ( ${PYTHON_DEPS} ) + R? ( dev-lang/R ) +" +RDEPEND="${DEPEND}" + +RESTRICT+=" test" + +pkg_pretend() { + kde5_pkg_pretend + + if ! has_version sci-mathematics/maxima && ! has_version sci-mathematics/octave && \ + ! use analitza && ! use julia && ! use lua && ! use python && ! use qalculate && ! use R; then + einfo "You have decided to build ${PN} with no backend." + einfo "To have this application functional, please enable one of the backends via USE flag:" + einfo " analitza, lua, python, qalculate" + einfo "Alternatively, install one of these:" + einfo " # emerge sci-mathematics/maxima (bug #619534)" + einfo " # emerge sci-mathematics/octave" + einfo "Experimental available USE flags:" + einfo " julia (not stable, bug #613576), R (bug #619534)" + einfo + fi + + if ! has_version virtual/latex-base; then + einfo "For LaTeX support:" + einfo " # emerge virtual/latex-base" + fi +} + +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 +} + +src_configure() { + use julia && addpredict /proc/self/mem # bug 602894 + + local mycmakeargs=( + $(cmake-utils_use_find_package analitza Analitza5) + $(cmake-utils_use_find_package julia Julia) + $(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 +} -- cgit v1.2.3