forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kde-apps/cantor: 23.08.1 version bump
Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST cantor-23.04.3.tar.xz 9266560 BLAKE2B 3daf3041af51d4d523c3f31334f6f77d0f34c1c7086eacac451c140e68de5123d9aeb904b90fd6bed6443146fb3eda50e9b39e4f276704b6111a110b46f0a8a1 SHA512 579e1c79f50540b212fe6a26beac7af9367b9d87a9d364e37828e8a72aa6c0915c1a5da10769df0fa3fd726e3f7c78bb0b05a29dfd0bbbf520f73abb78793f2f | ||
DIST cantor-23.08.0.tar.xz 9280464 BLAKE2B 9090cddeea83afc59fa6bea096ab94cabe6a7702343fda45cd1b70038c922db9c7e2dea022147e3ad78346c0ee72951f56ea3aca813d16752b5769602dcc0153 SHA512 dd3c4068691bf8706b6afdb1903b5592cd16de553be503ad11a39c8dce74c10f8be82c8195f26329996a5bc53b8df354868428b691ba82d68cca8ceb0aa015f8 | ||
DIST cantor-23.08.1.tar.xz 9280804 BLAKE2B 86be10b8cd96c6ee040a634ac39072ba873410f6026b8c55a5a0848a9d44389fd24dfc7bd991b122c645ca4fa39fbb19903ab244fd28f1552a5251828a1f590d SHA512 547ee87c274296975859c27a32a427b654507c477ae6bb2e4b5854bab220c075dcdab1dc76131f993e74d4c882533dd322d9bc85e1be233a8edf070201a12a64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
CMAKE_MAKEFILE_GENERATOR="emake" | ||
ECM_HANDBOOK="forceoptional" | ||
ECM_TEST="forceoptional" | ||
LUA_COMPAT=( luajit ) | ||
PYTHON_COMPAT=( python3_{10..12} ) | ||
PVCUT=$(ver_cut 1-3) | ||
KFMIN=5.106.0 | ||
QTMIN=5.15.9 | ||
inherit ecm gear.kde.org lua-single optfeature python-single-r1 | ||
|
||
DESCRIPTION="Interface for doing mathematics and scientific computing" | ||
HOMEPAGE="https://apps.kde.org/cantor/ https://edu.kde.org/cantor/" | ||
|
||
LICENSE="GPL-2" # TODO: CHECK | ||
SLOT="5" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
IUSE="+analitza julia lua postscript python qalculate R" | ||
|
||
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )" | ||
RESTRICT="test" | ||
|
||
# TODO Add Sage Mathematics Software backend (https://www.sagemath.org) | ||
DEPEND=" | ||
app-text/poppler[qt5] | ||
>=dev-qt/qtgui-${QTMIN}:5 | ||
>=dev-qt/qthelp-${QTMIN}:5 | ||
>=dev-qt/qtprintsupport-${QTMIN}:5 | ||
>=dev-qt/qtsvg-${QTMIN}:5 | ||
>=dev-qt/qtwebengine-${QTMIN}:5[widgets] | ||
>=dev-qt/qtwidgets-${QTMIN}:5 | ||
>=dev-qt/qtxml-${QTMIN}:5 | ||
>=dev-qt/qtxmlpatterns-${QTMIN}:5 | ||
>=kde-frameworks/karchive-${KFMIN}:5 | ||
>=kde-frameworks/kcompletion-${KFMIN}:5 | ||
>=kde-frameworks/kconfig-${KFMIN}:5 | ||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5 | ||
>=kde-frameworks/kcoreaddons-${KFMIN}:5 | ||
>=kde-frameworks/kcrash-${KFMIN}:5 | ||
>=kde-frameworks/ki18n-${KFMIN}:5 | ||
>=kde-frameworks/kiconthemes-${KFMIN}:5 | ||
>=kde-frameworks/kio-${KFMIN}:5 | ||
>=kde-frameworks/knewstuff-${KFMIN}:5 | ||
>=kde-frameworks/kparts-${KFMIN}:5 | ||
>=kde-frameworks/ktexteditor-${KFMIN}:5 | ||
>=kde-frameworks/ktextwidgets-${KFMIN}:5 | ||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5 | ||
>=kde-frameworks/kxmlgui-${KFMIN}:5 | ||
>=kde-frameworks/syntax-highlighting-${KFMIN}:5 | ||
analitza? ( >=kde-apps/analitza-${PVCUT}:5 ) | ||
julia? ( dev-lang/julia ) | ||
lua? ( ${LUA_DEPS} ) | ||
qalculate? ( | ||
sci-libs/cln | ||
sci-libs/libqalculate:= | ||
) | ||
postscript? ( app-text/libspectre ) | ||
python? ( | ||
${PYTHON_DEPS} | ||
>=dev-qt/qtdbus-${QTMIN}:5 | ||
) | ||
R? ( dev-lang/R ) | ||
" | ||
RDEPEND="${DEPEND} | ||
!analitza? ( !julia? ( !lua? ( !python? ( !qalculate? ( !R? ( | ||
|| ( | ||
sci-mathematics/maxima | ||
sci-mathematics/octave | ||
) | ||
) ) ) ) ) ) | ||
" | ||
BDEPEND="x11-misc/shared-mime-info" | ||
|
||
pkg_setup() { | ||
use lua && lua-single_pkg_setup | ||
use python && python-single-r1_pkg_setup | ||
ecm_pkg_setup | ||
} | ||
|
||
src_configure() { | ||
use julia && addpredict /proc/self/mem # bug 602894 | ||
|
||
local mycmakeargs=( | ||
$(cmake_use_find_package analitza Analitza5) | ||
$(cmake_use_find_package julia Julia) | ||
$(cmake_use_find_package lua LuaJIT) | ||
-DUSE_LIBSPECTRE=$(usex postscript) | ||
$(cmake_use_find_package python Python3) | ||
$(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)" | ||
) | ||
ecm_src_configure | ||
} | ||
|
||
pkg_postinst() { | ||
if [[ -z "${REPLACING_VERSIONS}" ]]; then | ||
optfeature "Maxima backend" sci-mathematics/maxima | ||
optfeature "Octave backend" sci-mathematics/octave | ||
optfeature "LaTeX support" virtual/latex-base | ||
fi | ||
ecm_pkg_postinst | ||
} |