From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D6701382C5 for ; Mon, 28 Dec 2020 16:00:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99EBCE0C9D; Mon, 28 Dec 2020 16:00:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 702D6E0C9D for ; Mon, 28 Dec 2020 16:00:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D2A2341580 for ; Mon, 28 Dec 2020 16:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9293FCC for ; Mon, 28 Dec 2020 16:00:30 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1609171151.005287b8721073d616f9aa294c81d7d32d0c44c7.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/cantor/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/cantor/cantor-20.12.49.9999.ebuild kde-apps/cantor/cantor-9999.ebuild X-VCS-Directories: kde-apps/cantor/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 005287b8721073d616f9aa294c81d7d32d0c44c7 X-VCS-Branch: master Date: Mon, 28 Dec 2020 16:00:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 50440377-01d4-49b3-8e81-24845ded6c10 X-Archives-Hash: 7af133bd158d46734e456f99a82dc812 commit: 005287b8721073d616f9aa294c81d7d32d0c44c7 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Dec 28 15:59:11 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Dec 28 15:59:11 2020 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=005287b8 kde-apps/cantor: Migrate to lua-single.eclass Bug: https://bugs.gentoo.org/752735 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> kde-apps/cantor/cantor-20.12.49.9999.ebuild | 14 ++++++++++---- kde-apps/cantor/cantor-9999.ebuild | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/kde-apps/cantor/cantor-20.12.49.9999.ebuild b/kde-apps/cantor/cantor-20.12.49.9999.ebuild index 022dd14d94..c9d06f1a21 100644 --- a/kde-apps/cantor/cantor-20.12.49.9999.ebuild +++ b/kde-apps/cantor/cantor-20.12.49.9999.ebuild @@ -6,11 +6,12 @@ EAPI=7 CMAKE_MAKEFILE_GENERATOR="emake" ECM_HANDBOOK="forceoptional" ECM_TEST="forceoptional" +LUA_COMPAT=( luajit ) PYTHON_COMPAT=( python3_{7,8,9} ) PVCUT=$(ver_cut 1-3) KFMIN=5.75.0 QTMIN=5.15.1 -inherit ecm kde.org optfeature python-single-r1 +inherit ecm kde.org lua-single optfeature python-single-r1 DESCRIPTION="Interface for doing mathematics and scientific computing" HOMEPAGE="https://apps.kde.org/en/cantor https://edu.kde.org/cantor/" @@ -20,9 +21,9 @@ SLOT="5" KEYWORDS="" IUSE="+analitza julia lua postscript python qalculate R" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )" -# TODO Add Sage Mathematics Software backend (http://www.sagemath.org) +# TODO Add Sage Mathematics Software backend (https://www.sagemath.org) DEPEND=" app-text/poppler[qt5] >=dev-qt/qtgui-${QTMIN}:5 @@ -50,7 +51,7 @@ DEPEND=" >=kde-frameworks/syntax-highlighting-${KFMIN}:5 analitza? ( >=kde-apps/analitza-${PVCUT}:5 ) julia? ( dev-lang/julia ) - lua? ( dev-lang/luajit:2 ) + lua? ( ${LUA_DEPS} ) qalculate? ( sci-libs/cln sci-libs/libqalculate:= @@ -74,6 +75,7 @@ RDEPEND="${DEPEND} RESTRICT+=" test" pkg_setup() { + use lua && lua-single_pkg_setup use python && python-single-r1_pkg_setup ecm_pkg_setup } @@ -90,6 +92,10 @@ src_configure() { $(cmake_use_find_package qalculate Qalculate) $(cmake_use_find_package R R) ) + use lua && mycmakeargs+=( + -DLUAJIT_INCLUDEDIR="${EPREFIX}/$(lua_get_include_dir)" + -DLUAJIT_LIBDIR="${EPREFIX}/$(lua_get_cmod_dir)" + ) use python && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) ecm_src_configure } diff --git a/kde-apps/cantor/cantor-9999.ebuild b/kde-apps/cantor/cantor-9999.ebuild index 022dd14d94..c9d06f1a21 100644 --- a/kde-apps/cantor/cantor-9999.ebuild +++ b/kde-apps/cantor/cantor-9999.ebuild @@ -6,11 +6,12 @@ EAPI=7 CMAKE_MAKEFILE_GENERATOR="emake" ECM_HANDBOOK="forceoptional" ECM_TEST="forceoptional" +LUA_COMPAT=( luajit ) PYTHON_COMPAT=( python3_{7,8,9} ) PVCUT=$(ver_cut 1-3) KFMIN=5.75.0 QTMIN=5.15.1 -inherit ecm kde.org optfeature python-single-r1 +inherit ecm kde.org lua-single optfeature python-single-r1 DESCRIPTION="Interface for doing mathematics and scientific computing" HOMEPAGE="https://apps.kde.org/en/cantor https://edu.kde.org/cantor/" @@ -20,9 +21,9 @@ SLOT="5" KEYWORDS="" IUSE="+analitza julia lua postscript python qalculate R" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )" -# TODO Add Sage Mathematics Software backend (http://www.sagemath.org) +# TODO Add Sage Mathematics Software backend (https://www.sagemath.org) DEPEND=" app-text/poppler[qt5] >=dev-qt/qtgui-${QTMIN}:5 @@ -50,7 +51,7 @@ DEPEND=" >=kde-frameworks/syntax-highlighting-${KFMIN}:5 analitza? ( >=kde-apps/analitza-${PVCUT}:5 ) julia? ( dev-lang/julia ) - lua? ( dev-lang/luajit:2 ) + lua? ( ${LUA_DEPS} ) qalculate? ( sci-libs/cln sci-libs/libqalculate:= @@ -74,6 +75,7 @@ RDEPEND="${DEPEND} RESTRICT+=" test" pkg_setup() { + use lua && lua-single_pkg_setup use python && python-single-r1_pkg_setup ecm_pkg_setup } @@ -90,6 +92,10 @@ src_configure() { $(cmake_use_find_package qalculate Qalculate) $(cmake_use_find_package R R) ) + use lua && mycmakeargs+=( + -DLUAJIT_INCLUDEDIR="${EPREFIX}/$(lua_get_include_dir)" + -DLUAJIT_LIBDIR="${EPREFIX}/$(lua_get_cmod_dir)" + ) use python && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) ecm_src_configure }