commit:     fb066446eff1e70627938a2f414b989eaae8466f
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Feb  9 14:21:37 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Feb  9 14:22:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fb066446

app-office/pyspread: add 2.3.1

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 app-office/pyspread/Manifest              |  1 +
 app-office/pyspread/pyspread-2.3.1.ebuild | 49 +++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/app-office/pyspread/Manifest b/app-office/pyspread/Manifest
index e1aee92e8..33f6f5ed6 100644
--- a/app-office/pyspread/Manifest
+++ b/app-office/pyspread/Manifest
@@ -1 +1,2 @@
 DIST pyspread-v2.1.1.tar.bz2 2071618 BLAKE2B 
da8ca4f9c162faa3e8fe615aeb2b082266be1e38e33623475f37ad36eda94a1d054a6469df8803944c3edc334f293690007d68e206b56bbe5ad2f17ad8a927ee
 SHA512 
5b157999f307be082110df2c96a608702d3924bf0b4d8f01fabdb681475b43665c158ba5c1c73c653f161d55acdfdfa763291f6740bd5f69fd4c33dec766a4ec
+DIST pyspread-2.3.1.gh.tar.bz2 2102020 BLAKE2B 
73a40ad9f480fa9e879eb0141ce99c686436c86411ee5a55f6ddac67fb2b65808374754eb2e8db68727eb2b723ebcb28aedd86d0f496112bce86fcdb4b5b5410
 SHA512 
903449c1bc86e9effddd5d43f609a43af5098f604d34c2ffd7cfdafd93f2b9fa8dad3e2e36a95fa1ad15845edf6414a407506333f3ba9768c373b1d45200e5f0

diff --git a/app-office/pyspread/pyspread-2.3.1.ebuild 
b/app-office/pyspread/pyspread-2.3.1.ebuild
new file mode 100644
index 000000000..8e0530fbd
--- /dev/null
+++ b/app-office/pyspread/pyspread-2.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+# csv import is broken in python3_13
+# https://gitlab.com/pyspread/pyspread/-/issues/132
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit desktop distutils-r1 optfeature xdg
+
+DESCRIPTION="Pyspread is a non-traditional spreadsheet written in Python"
+HOMEPAGE="https://pyspread.gitlab.io";
+SRC_URI="https://gitlab.com/pyspread/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2
 -> ${P}.gh.tar.bz2"
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/markdown2-2.3[${PYTHON_USEDEP}]
+       >=dev-python/matplotlib-1.1.1[${PYTHON_USEDEP}]
+       >=dev-python/numpy-1.1[${PYTHON_USEDEP}]
+       >=dev-python/pyqt6-6.4[gui,printsupport,svg,widgets,${PYTHON_USEDEP}]
+       >=dev-python/pyenchant-1.1.0[${PYTHON_USEDEP}]
+       >=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_install() {
+       distutils-r1_src_install
+       rm -r "${ED}/usr/pyspread" || die
+       doicon "${PN}/share/icons/hicolor/64x64/${PN}.ico"
+       doicon "${PN}/share/icons/hicolor/svg/${PN}.svg"
+       domenu "${PN}.desktop"
+}
+
+src_test() {
+       export QT_QPA_PLATFORM=offscreen
+       distutils-r1_src_test
+}
+
+pkg_postint() {
+       xdg_pkg_postint
+       optfeature "R chart support" "dev-python/rpy2"
+}

Reply via email to