Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-office/pyspread/
Date: Sun, 29 Jan 2023 10:40:32
Message-Id: 1674964765.0bc56da7e00320440302f5062c4391238c776fb7.ceamac@gentoo
1 commit: 0bc56da7e00320440302f5062c4391238c776fb7
2 Author: Julien Roy <julien <AT> jroy <DOT> ca>
3 AuthorDate: Sun Jan 29 03:59:25 2023 +0000
4 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 03:59:25 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0bc56da7
7
8 app-office/pyspread: drop 1.99.6, add 2.1.1
9
10 Closes: https://bugs.gentoo.org/848102
11 Closes: https://bugs.gentoo.org/309667
12 Signed-off-by: Julien Roy <julien <AT> jroy.ca>
13
14 app-office/pyspread/Manifest | 2 +-
15 app-office/pyspread/metadata.xml | 2 +
16 app-office/pyspread/pyspread-1.99.6.ebuild | 60 ------------------------------
17 app-office/pyspread/pyspread-2.1.1.ebuild | 49 ++++++++++++++++++++++++
18 4 files changed, 52 insertions(+), 61 deletions(-)
19
20 diff --git a/app-office/pyspread/Manifest b/app-office/pyspread/Manifest
21 index de6471a30..e1aee92e8 100644
22 --- a/app-office/pyspread/Manifest
23 +++ b/app-office/pyspread/Manifest
24 @@ -1 +1 @@
25 -DIST pyspread-v1.99.6.tar.gz 2336389 BLAKE2B 0c5e41bacd79c5357f29c53581f551ea8b09cb1d518a5217e55448109bf87422c485b437cba54ee3482bc5107aea6a23a2e55b953f40f64dc29fab253a973eed SHA512 e569ff2de5fcc3ecf0cb20c20c815093f5eaab05e0db2b7509aeb3d8a7ea982237c6ca7d0004a372d829e444a50e1fcee250cd5fdeb6d03995a2b7ca6fb75a8f
26 +DIST pyspread-v2.1.1.tar.bz2 2071618 BLAKE2B da8ca4f9c162faa3e8fe615aeb2b082266be1e38e33623475f37ad36eda94a1d054a6469df8803944c3edc334f293690007d68e206b56bbe5ad2f17ad8a927ee SHA512 5b157999f307be082110df2c96a608702d3924bf0b4d8f01fabdb681475b43665c158ba5c1c73c653f161d55acdfdfa763291f6740bd5f69fd4c33dec766a4ec
27
28 diff --git a/app-office/pyspread/metadata.xml b/app-office/pyspread/metadata.xml
29 index ba1723dd9..391371362 100644
30 --- a/app-office/pyspread/metadata.xml
31 +++ b/app-office/pyspread/metadata.xml
32 @@ -4,5 +4,7 @@
33 <!-- maintainer-needed -->
34 <upstream>
35 <remote-id type="gitlab">pyspread/pyspread</remote-id>
36 + <doc>https://pyspread.gitlab.io/docs.html</doc>
37 + <bugs-to>https://gitlab.com/pyspread/pyspread/issues</bugs-to>
38 </upstream>
39 </pkgmetadata>
40
41 diff --git a/app-office/pyspread/pyspread-1.99.6.ebuild b/app-office/pyspread/pyspread-1.99.6.ebuild
42 deleted file mode 100644
43 index 3295d6c09..000000000
44 --- a/app-office/pyspread/pyspread-1.99.6.ebuild
45 +++ /dev/null
46 @@ -1,60 +0,0 @@
47 -# Copyright 2020 Gentoo Authors
48 -# Distributed under the terms of the GNU General Public License v2
49 -
50 -EAPI=7
51 -
52 -PYTHON_COMPAT=( python3_{8..9} )
53 -
54 -inherit xdg desktop distutils-r1
55 -
56 -DESCRIPTION="Pyspread is a non-traditional spreadsheet written in Python"
57 -HOMEPAGE="https://pyspread.gitlab.io"
58 -
59 -if [[ ${PV} == *9999* ]]; then
60 - inherit git-r3
61 - EGIT_REPO_URI="https://gitlab.com/pyspread/${PN}.git"
62 -else
63 - SRC_URI="https://gitlab.com/pyspread/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
64 - KEYWORDS="~amd64"
65 - S="${WORKDIR}/${PN}-v${PV}"
66 -fi
67 -
68 -LICENSE="GPL-3"
69 -SLOT="0"
70 -
71 -RDEPEND="
72 - >=dev-python/PyQt5-5.10.0[gui,printsupport,svg,widgets,${PYTHON_USEDEP}]
73 - >=dev-python/markdown2-2.3[${PYTHON_USEDEP}]
74 - >=dev-python/matplotlib-1.1.1[${PYTHON_USEDEP}]
75 - >=dev-python/numpy-1.1.1[${PYTHON_USEDEP}]
76 - >=dev-python/pyenchant-1.1.0[${PYTHON_USEDEP}]
77 - >=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}]
78 -"
79 -
80 -distutils_enable_tests pytest
81 -
82 -# TODO: package sphinxbootstrap4theme
83 -#distutils_enable_sphinx apidocs \
84 -# "dev-python/sphinx-autodoc-typehints" \
85 -# "dev-python/recommonmark" \
86 -# "dev-python/sphinxbootstrap4theme"
87 -
88 -python_prepare_all() {
89 - distutils-r1_python_prepare_all
90 -
91 - # Fix the provided desktop file
92 - sed -i -e '/Path/d' "${PN}.desktop" || die
93 -}
94 -
95 -python_install() {
96 - distutils-r1_python_install
97 -
98 - doicon "${PN}"/share/icons/"${PN}.ico"
99 - doicon "${PN}"/share/icons/"${PN}.svg"
100 - domenu "${PN}.desktop"
101 -}
102 -
103 -python_test() {
104 - export QT_QPA_PLATFORM=offscreen
105 - epytest
106 -}
107
108 diff --git a/app-office/pyspread/pyspread-2.1.1.ebuild b/app-office/pyspread/pyspread-2.1.1.ebuild
109 new file mode 100644
110 index 000000000..e3f09b165
111 --- /dev/null
112 +++ b/app-office/pyspread/pyspread-2.1.1.ebuild
113 @@ -0,0 +1,49 @@
114 +# Copyright 2020-2023 Gentoo Authors
115 +# Distributed under the terms of the GNU General Public License v2
116 +
117 +EAPI=8
118 +
119 +DISTUTILS_USE_PEP517=setuptools
120 +PYTHON_COMPAT=( python3_{9..11} )
121 +
122 +inherit xdg desktop distutils-r1
123 +
124 +DESCRIPTION="Pyspread is a non-traditional spreadsheet written in Python"
125 +HOMEPAGE="https://pyspread.gitlab.io"
126 +
127 +SRC_URI="https://gitlab.com/pyspread/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
128 +KEYWORDS="~amd64"
129 +S="${WORKDIR}/${PN}-v${PV}"
130 +
131 +LICENSE="GPL-3"
132 +SLOT="0"
133 +
134 +RDEPEND="
135 + >=dev-python/PyQt5-5.10.0[gui,printsupport,svg,widgets,${PYTHON_USEDEP}]
136 + >=dev-python/markdown2-2.3[${PYTHON_USEDEP}]
137 + >=dev-python/matplotlib-1.1.1[${PYTHON_USEDEP}]
138 + >=dev-python/numpy-1.1.1[${PYTHON_USEDEP}]
139 + >=dev-python/pyenchant-1.1.0[${PYTHON_USEDEP}]
140 + >=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}]
141 +"
142 +
143 +distutils_enable_tests pytest
144 +
145 +src_compile() {
146 + distutils-r1_src_compile
147 + echo rm -rf "${WORKDIR}/${P}-${EPYTHON/./_}/install/usr/pyspread"
148 + rm -rf "${WORKDIR}/${P}-${EPYTHON/./_}/install/usr/pyspread"
149 +}
150 +
151 +src_install() {
152 + distutils-r1_src_install
153 + rm -rf "${ED}/usr/pyspread"
154 + doicon "${PN}/share/icons/hicolor/64x64/${PN}.ico"
155 + doicon "${PN}/share/icons/hicolor/svg/${PN}.svg"
156 + domenu "${PN}.desktop"
157 +}
158 +
159 +src_test() {
160 + export QT_QPA_PLATFORM=offscreen
161 + distutils-r1_src_test
162 +}