Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib-python2/files/, dev-python/matplotlib-python2/
Date: Sun, 11 Oct 2020 14:29:47
Message-Id: 1602426578.fb157138b11030afff7cde5b2a5636cb0f13d09d.zlogene@gentoo
1 commit: fb157138b11030afff7cde5b2a5636cb0f13d09d
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 14:28:13 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 14:29:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb157138
7
8 dev-python/matplotlib-python2: remove last-rited pkg.
9
10 Closes: https://bugs.gentoo.org/730246
11
12 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
13
14 dev-python/matplotlib-python2/Manifest | 1 -
15 .../files/matplotlib-2.2.4-doc-fix.patch | 18 --
16 .../matplotlib-python2-2.2.5-r2.ebuild | 208 ---------------------
17 dev-python/matplotlib-python2/metadata.xml | 26 ---
18 4 files changed, 253 deletions(-)
19
20 diff --git a/dev-python/matplotlib-python2/Manifest b/dev-python/matplotlib-python2/Manifest
21 deleted file mode 100644
22 index e15d4fa5867..00000000000
23 --- a/dev-python/matplotlib-python2/Manifest
24 +++ /dev/null
25 @@ -1 +0,0 @@
26 -DIST matplotlib-2.2.5.tar.gz 36678633 BLAKE2B fb3084a2d34a920413c44a23a956ffdcf7a31d521e2d1df50a68c9f17882cb87deebb403ec47154284593b39df24dad72e6352e1427091f795058db11f1d3a1b SHA512 f4771dca4b3c936e0d47f42630759207ccfe11586b3efadb401144b014a600914a6521af4fbe060fa80fd74132c92f1d3b37cac4fea9999ca90300c1dec8391b
27
28 diff --git a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch
29 deleted file mode 100644
30 index b6a01b097a6..00000000000
31 --- a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch
32 +++ /dev/null
33 @@ -1,18 +0,0 @@
34 -diff --git a/doc/conf.py b/doc/conf.py
35 -index 017ce210e..5a397082b 100644
36 ---- a/doc/conf.py
37 -+++ b/doc/conf.py
38 -@@ -170,10 +170,10 @@ source_encoding = "utf-8"
39 - master_doc = 'contents'
40 -
41 - # General substitutions.
42 --from matplotlib.compat.subprocess import check_output
43 --SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip()
44 -+#from matplotlib.compat.subprocess import check_output
45 -+#SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip()
46 -
47 --html_context = {'sha': SHA}
48 -+#html_context = {'sha': SHA}
49 -
50 - project = 'Matplotlib'
51 - copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '
52
53 diff --git a/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild b/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild
54 deleted file mode 100644
55 index 4d925d88348..00000000000
56 --- a/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild
57 +++ /dev/null
58 @@ -1,208 +0,0 @@
59 -# Copyright 1999-2020 Gentoo Authors
60 -# Distributed under the terms of the GNU General Public License v2
61 -
62 -EAPI=6
63 -
64 -PYTHON_COMPAT=( python2_7 )
65 -PYTHON_REQ_USE='tk?,threads(+)'
66 -
67 -inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix
68 -
69 -MY_PN=${PN/-python2}
70 -MY_P=${MY_PN}-${PV}
71 -
72 -DESCRIPTION="Pure python plotting library with matlab like syntax (py2 version)"
73 -HOMEPAGE="https://matplotlib.org/"
74 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
75 -S=${WORKDIR}/${MY_P}
76 -
77 -# Main license: matplotlib
78 -# Some modules: BSD
79 -# matplotlib/backends/qt4_editor: MIT
80 -# Fonts: BitstreamVera, OFL-1.1
81 -LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
82 -SLOT="0"
83 -KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86"
84 -IUSE="cairo excel gtk3 latex test tk wxwidgets"
85 -REQUIRED_USE="test? ( cairo gtk3 latex tk wxwidgets )"
86 -
87 -RESTRICT="!test? ( test )"
88 -
89 -# #456704 -- a lot of py2-only deps
90 -COMMON_DEPEND="
91 - dev-python/functools32[${PYTHON_USEDEP}]
92 - dev-python/subprocess32[${PYTHON_USEDEP}]
93 - dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]
94 - dev-python/cycler[${PYTHON_USEDEP}]
95 - || (
96 - dev-python/numpy-python2[${PYTHON_USEDEP}]
97 - >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
98 - )
99 - dev-python/python-dateutil:0[${PYTHON_USEDEP}]
100 - dev-python/pytz[${PYTHON_USEDEP}]
101 - >=dev-python/six-1.10[${PYTHON_USEDEP}]
102 - media-fonts/stix-fonts
103 - media-libs/freetype:2
104 - media-libs/libpng:0
105 - >=media-libs/qhull-2013
106 - >=dev-python/kiwisolver-1.0.0[${PYTHON_USEDEP}]
107 - cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] )
108 - wxwidgets? ( >=dev-python/wxpython-2.8:*[${PYTHON_USEDEP}] )"
109 -
110 -# internal copy of pycxx highly patched
111 -# dev-python/pycxx
112 -
113 -DEPEND="${COMMON_DEPEND}
114 - dev-python/versioneer[${PYTHON_USEDEP}]
115 - dev-python/setuptools[${PYTHON_USEDEP}]
116 - virtual/pkgconfig
117 - test? (
118 - dev-python/mock[${PYTHON_USEDEP}]
119 - >=dev-python/nose-0.11.1[${PYTHON_USEDEP}]
120 - )"
121 -
122 -RDEPEND="${COMMON_DEPEND}
123 - !<dev-python/matplotlib-3
124 - >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}]
125 - excel? ( dev-python/xlwt[${PYTHON_USEDEP}] )
126 - gtk3? (
127 - dev-python/pygobject:3[${PYTHON_USEDEP}]
128 - x11-libs/gtk+:3[introspection]
129 - )
130 - latex? (
131 - virtual/latex-base
132 - app-text/ghostscript-gpl
133 - app-text/dvipng
134 - app-text/poppler[utils]
135 - dev-texlive/texlive-fontsrecommended
136 - dev-texlive/texlive-latexextra
137 - dev-texlive/texlive-xetex
138 - )"
139 -
140 -# A few C++ source files are written to srcdir.
141 -# Other than that, the ebuild shall be fit for out-of-source build.
142 -DISTUTILS_IN_SOURCE_BUILD=1
143 -
144 -pkg_setup() {
145 - unset DISPLAY # bug #278524
146 -}
147 -
148 -use_setup() {
149 - local uword="${2:-${1}}"
150 - if use ${1}; then
151 - echo "${uword} = True"
152 - echo "${uword}agg = True"
153 - else
154 - echo "${uword} = False"
155 - echo "${uword}agg = False"
156 - fi
157 -}
158 -
159 -python_prepare_all() {
160 -# Generates test failures, but fedora does it
161 -# local PATCHES=(
162 -# "${FILESDIR}"/${P}-unbundle-pycxx.patch
163 -# "${FILESDIR}"/${P}-unbundle-agg.patch
164 -# )
165 -# rm -r agg24 CXX || die
166 -# rm -r agg24 || die
167 -
168 -# cat > lib/${PN}/externals/six.py <<-EOF
169 -# from __future__ import absolute_import
170 -# from six import *
171 -# EOF
172 -
173 - local PATCHES=(
174 - "${FILESDIR}"/${MY_PN}-2.2.4-doc-fix.patch
175 - )
176 -
177 - sed \
178 - -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \
179 - -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
180 - || die "sed pyparsing failed"
181 -
182 - hprefixify setupext.py
183 -
184 - export XDG_RUNTIME_DIR="${T}/runtime-dir"
185 - mkdir "${XDG_RUNTIME_DIR}" || die
186 - chmod 0700 "${XDG_RUNTIME_DIR}" || die
187 -
188 - distutils-r1_python_prepare_all
189 -}
190 -
191 -python_configure_all() {
192 - append-flags -fno-strict-aliasing
193 - append-cppflags -DNDEBUG # or get old trying to do triangulation
194 - tc-export PKG_CONFIG
195 -}
196 -
197 -python_configure() {
198 - mkdir -p "${BUILD_DIR}" || die
199 -
200 - # create setup.cfg (see setup.cfg.template for any changes).
201 -
202 - # common switches.
203 - cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die
204 - [directories]
205 - basedirlist = ${EPREFIX}/usr
206 - [provide_packages]
207 - pytz = False
208 - dateutil = False
209 - [packages]
210 - tests = $(usex test True False)
211 - [gui_support]
212 - agg = True
213 - pyside = False
214 - pysideagg = False
215 - qt4 = False
216 - qt4agg = False
217 - qt5 = False
218 - qt5agg = False
219 - $(use_setup cairo)
220 - $(use_setup gtk3)
221 - $(use_setup tk)
222 - EOF
223 -
224 - if use gtk3 && use cairo; then
225 - echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die
226 - else
227 - echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die
228 - fi
229 -
230 - cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die
231 - gtk = False
232 - gtkagg = False
233 - $(use_setup wxwidgets wx)
234 - EOF
235 -}
236 -
237 -wrap_setup() {
238 - local MAKEOPTS=-j1
239 - local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg
240 - unset DISPLAY
241 - "$@"
242 -}
243 -
244 -python_compile() {
245 - wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib
246 -}
247 -
248 -python_test() {
249 - wrap_setup distutils_install_for_testing
250 -
251 - virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)"
252 -}
253 -
254 -python_install() {
255 - wrap_setup distutils-r1_python_install
256 -
257 - # mpl_toolkits namespace
258 - python_moduleinto mpl_toolkits
259 - python_domodule lib/mpl_toolkits/__init__.py
260 -}
261 -
262 -python_install_all() {
263 - distutils-r1_python_install_all
264 -
265 - find "${D}" -name '*.pth' -delete || die
266 -}
267
268 diff --git a/dev-python/matplotlib-python2/metadata.xml b/dev-python/matplotlib-python2/metadata.xml
269 deleted file mode 100644
270 index f024fad1333..00000000000
271 --- a/dev-python/matplotlib-python2/metadata.xml
272 +++ /dev/null
273 @@ -1,26 +0,0 @@
274 -<?xml version="1.0" encoding="UTF-8"?>
275 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
276 -<pkgmetadata>
277 - <maintainer type="project">
278 - <email>sci@g.o</email>
279 - <name>Gentoo Science Project</name>
280 - </maintainer>
281 - <maintainer type="project">
282 - <email>python@g.o</email>
283 - <name>Python</name>
284 - </maintainer>
285 - <longdescription lang="en">
286 - matplotlib is an interactive library for plotting and doing basic
287 - data analysis in python with a syntax similar to matlab. It provides a
288 - variety of backends and hard copy formats for almost ready
289 - publication plots.
290 - </longdescription>
291 - <use>
292 - <flag name="excel">Pull <pkg>dev-python/xlwt</pkg> for the exceltools toolkit</flag>
293 - <flag name="gtk3">Enable <pkg>x11-libs/gtk+</pkg>:3 support</flag>
294 - </use>
295 - <upstream>
296 - <remote-id type="pypi">matplotlib</remote-id>
297 - <remote-id type="sourceforge">matplotlib</remote-id>
298 - </upstream>
299 -</pkgmetadata>