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 3389D1382C5 for ; Tue, 29 Dec 2020 19:54:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6110DE0C5C; Tue, 29 Dec 2020 19:54:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 4289AE0C57 for ; Tue, 29 Dec 2020 19:54:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 41F1734176D for ; Tue, 29 Dec 2020 19:54:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFF7046F for ; Tue, 29 Dec 2020 19:54:20 +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: <1609271647.1316e9572318eef731d853e32bfae5ad15c648f3.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/cantor/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/cantor/cantor-20.12.0.ebuild X-VCS-Directories: kde-apps/cantor/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 1316e9572318eef731d853e32bfae5ad15c648f3 X-VCS-Branch: master Date: Tue, 29 Dec 2020 19:54:20 +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: 7d18bee9-a6a7-45eb-b5f0-1501c2f82aad X-Archives-Hash: 83be6ba68e76f8100e5121c7116d0260 commit: 1316e9572318eef731d853e32bfae5ad15c648f3 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Dec 28 15:59:11 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Dec 29 19:54:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1316e957 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.0.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kde-apps/cantor/cantor-20.12.0.ebuild b/kde-apps/cantor/cantor-20.12.0.ebuild index f8c2cd2064c..066493ac4f7 100644 --- a/kde-apps/cantor/cantor-20.12.0.ebuild +++ b/kde-apps/cantor/cantor-20.12.0.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="~amd64 ~arm64 ~x86" 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 }