diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-01-16 20:40:14 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-01-16 20:40:14 +1100 |
| commit | b307d5142d2489770953f97c0917dab54630fdfd (patch) | |
| tree | 1c0cea9681babc832e8f5ccf1108b6ba9a1952f9 | |
| parent | dbb1147b72ce3d507a32b094f6238755fa8380e7 (diff) | |
| download | kde-b307d5142d2489770953f97c0917dab54630fdfd.tar.gz kde-b307d5142d2489770953f97c0917dab54630fdfd.tar.bz2 kde-b307d5142d2489770953f97c0917dab54630fdfd.zip | |
[kde-base/cantor] Add support for python backend wrt bug #493262.
Package-Manager: portage-2.2.7
| -rw-r--r-- | kde-base/cantor/cantor-4.12.1.ebuild | 13 | ||||
| -rw-r--r-- | kde-base/cantor/cantor-4.12.49.9999.ebuild | 13 | ||||
| -rw-r--r-- | kde-base/cantor/cantor-9999.ebuild | 13 |
3 files changed, 27 insertions, 12 deletions
diff --git a/kde-base/cantor/cantor-4.12.1.ebuild b/kde-base/cantor/cantor-4.12.1.ebuild index cb07cc74230..a279e966bb3 100644 --- a/kde-base/cantor/cantor-4.12.1.ebuild +++ b/kde-base/cantor/cantor-4.12.1.ebuild @@ -5,12 +5,15 @@ EAPI=5 KDE_HANDBOOK="optional" -inherit kde4-base +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 ~amd64-linux ~x86-linux" -IUSE="analitza debug postscript qalculate +R" +IUSE="analitza debug postscript python qalculate +R" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" # TODO Add Sage Mathematics Software backend (http://www.sagemath.org) RDEPEND=" @@ -20,6 +23,7 @@ RDEPEND=" sci-libs/libqalculate ) postscript? ( app-text/libspectre ) + python? ( ${PYTHON_DEPS} ) R? ( dev-lang/R ) dev-qt/qtxmlpatterns:4 " @@ -33,6 +37,7 @@ src_configure() { 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) ) @@ -42,11 +47,11 @@ src_configure() { pkg_postinst() { kde4-base_pkg_postinst - if ! use analitza && ! use qalculate && ! use R; then + 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', 'qalculate' or 'R' USE flag enabled" + ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'python', 'qalculate' or 'R' USE flag enabled" ewarn " # emerge -vaDu sci-mathematics/maxima" echo fi diff --git a/kde-base/cantor/cantor-4.12.49.9999.ebuild b/kde-base/cantor/cantor-4.12.49.9999.ebuild index 300af29b863..6e4a22f6042 100644 --- a/kde-base/cantor/cantor-4.12.49.9999.ebuild +++ b/kde-base/cantor/cantor-4.12.49.9999.ebuild @@ -5,12 +5,15 @@ EAPI=5 KDE_HANDBOOK="optional" -inherit kde4-base +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="" -IUSE="analitza debug postscript qalculate +R" +IUSE="analitza debug postscript python qalculate +R" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" # TODO Add Sage Mathematics Software backend (http://www.sagemath.org) RDEPEND=" @@ -20,6 +23,7 @@ RDEPEND=" sci-libs/libqalculate ) postscript? ( app-text/libspectre ) + python? ( ${PYTHON_DEPS} ) R? ( dev-lang/R ) dev-qt/qtxmlpatterns:4 " @@ -33,6 +37,7 @@ src_configure() { 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) ) @@ -42,11 +47,11 @@ src_configure() { pkg_postinst() { kde4-base_pkg_postinst - if ! use analitza && ! use qalculate && ! use R; then + 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', 'qalculate' or 'R' USE flag enabled" + ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'python', 'qalculate' or 'R' USE flag enabled" ewarn " # emerge -vaDu sci-mathematics/maxima" echo fi diff --git a/kde-base/cantor/cantor-9999.ebuild b/kde-base/cantor/cantor-9999.ebuild index 300af29b863..6e4a22f6042 100644 --- a/kde-base/cantor/cantor-9999.ebuild +++ b/kde-base/cantor/cantor-9999.ebuild @@ -5,12 +5,15 @@ EAPI=5 KDE_HANDBOOK="optional" -inherit kde4-base +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="" -IUSE="analitza debug postscript qalculate +R" +IUSE="analitza debug postscript python qalculate +R" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" # TODO Add Sage Mathematics Software backend (http://www.sagemath.org) RDEPEND=" @@ -20,6 +23,7 @@ RDEPEND=" sci-libs/libqalculate ) postscript? ( app-text/libspectre ) + python? ( ${PYTHON_DEPS} ) R? ( dev-lang/R ) dev-qt/qtxmlpatterns:4 " @@ -33,6 +37,7 @@ src_configure() { 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) ) @@ -42,11 +47,11 @@ src_configure() { pkg_postinst() { kde4-base_pkg_postinst - if ! use analitza && ! use qalculate && ! use R; then + 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', 'qalculate' or 'R' USE flag enabled" + ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'python', 'qalculate' or 'R' USE flag enabled" ewarn " # emerge -vaDu sci-mathematics/maxima" echo fi |
