From 7c203693e7f60840551f51a2284ea31dcfc348e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 16:52:37 +0700 Subject: [PATCH] python-matplotlib: drop package --- srcpkgs/python-matplotlib/INSTALL.msg | 21 -------- .../20_matplotlibrc_path_search_fix.patch | 21 -------- srcpkgs/python-matplotlib/template | 54 ------------------- srcpkgs/python-matplotlib/update | 1 - 4 files changed, 97 deletions(-) delete mode 100644 srcpkgs/python-matplotlib/INSTALL.msg delete mode 100644 srcpkgs/python-matplotlib/patches/20_matplotlibrc_path_search_fix.patch delete mode 100644 srcpkgs/python-matplotlib/template delete mode 100644 srcpkgs/python-matplotlib/update diff --git a/srcpkgs/python-matplotlib/INSTALL.msg b/srcpkgs/python-matplotlib/INSTALL.msg deleted file mode 100644 index 2bad285bd9e..00000000000 --- a/srcpkgs/python-matplotlib/INSTALL.msg +++ /dev/null @@ -1,21 +0,0 @@ -By default, this package supports only non-interactive graphics output. -For interactive graphics, install: - -- pygtk python-cairocffi (for GTK/GTKAgg/GTKCairo backend) -- gtk+3 gir-freedesktop python-gobject python-cairocffi - (for GTK3Agg/GTK3Cairo backend) -- python-PyQt5 (for Qt5Agg backend) -- python-tkinter (for TkAgg backend) -- python-tornado (for webagg backend) -- python-wxPython (for WX/WXAgg backend) - -To change the backend, you have two ways: - -- /etc/matplotlibrc (system-wide) -- $HOME/.config/matplotlib/matplotlibrc (per-user basis) - -Natively, matplotlib only supports PNG images. Install python-Pillow -to support more file formats. - -Matplotlib’s LaTeX support requires a working LaTeX installation and -ghostscript. diff --git a/srcpkgs/python-matplotlib/patches/20_matplotlibrc_path_search_fix.patch b/srcpkgs/python-matplotlib/patches/20_matplotlibrc_path_search_fix.patch deleted file mode 100644 index 9742971f81d..00000000000 --- a/srcpkgs/python-matplotlib/patches/20_matplotlibrc_path_search_fix.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- ./lib/matplotlib/__init__.py -+++ ./lib/matplotlib/__init__.py -@@ -663,6 +663,10 @@ - if os.path.isdir(path): - return path - -+ path = '/usr/share/matplotlib/mpl-data' -+ if os.path.isdir(path): -+ return path -+ - raise RuntimeError('Could not find the matplotlib data files') - - -@@ -732,6 +736,7 @@ - yield os.path.join(matplotlibrc, 'matplotlibrc') - yield os.path.join(_get_configdir(), 'matplotlibrc') - yield os.path.join(get_data_path(), 'matplotlibrc') -+ yield os.path.join('/etc', 'matplotlibrc') - - for fname in gen_candidates(): - if os.path.isfile(fname): diff --git a/srcpkgs/python-matplotlib/template b/srcpkgs/python-matplotlib/template deleted file mode 100644 index b155d980569..00000000000 --- a/srcpkgs/python-matplotlib/template +++ /dev/null @@ -1,54 +0,0 @@ -# Template file for 'python-matplotlib' -pkgname=python-matplotlib -version=2.2.4 -revision=2 -wrksrc="matplotlib-${version}" -build_style=python2-module -pycompile_module="matplotlib mpl_toolkits pylab.py" -hostmakedepends="pkg-config python-setuptools" -# XXX: use internal copy of agg, highly patched -makedepends="python-devel python-numpy python-PyQt5-devel python-cairocffi - python-gobject-devel pygtk-devel gtk+3-devel wxPython-devel freetype-devel - libpng-devel libqhull-devel" -depends="python-matplotlib-data>=${version}_${revision} python-numpy python-six - python-dateutil python-parsing python-pytz python-cycler python-kiwisolver - python-backports.functools_lru_cache python-subprocess32" -short_desc="Python2 2D/3D plotting library" -maintainer="Alessio Sergi " -license="custom: matplotlib, BSD-3-Clause, MIT" -homepage="https://matplotlib.org/" -distfiles="https://github.com/matplotlib/matplotlib/archive/v${version}.tar.gz" -checksum=601a3bf5c1b08710edbe00347d97619f43f2d1edcd7aa94119ff837e6327c7f7 - -export XDG_RUNTIME_DIR=/tmp - -pre_build() { - # set Agg as default backend - cat > setup.cfg <<-EOF - [rc_options] - backend = Agg - EOF - # adjust path - sed -i 's,\(site-packages/matplotlib/mpl-data\),/etc,' matplotlibrc.template - # adjust qhull path - sed -i "s|'libqhull',|'qhull',|" setupext.py -} - -post_install() { - vlicense LICENSE/LICENSE - # remove data files - rm -rf ${DESTDIR}/usr/lib/python2*/site-packages/matplotlib/mpl-data -} - -python-matplotlib-data_package() { - archs=noarch - conf_files="/etc/matplotlibrc" - short_desc+=" - data files" - pkg_install() { - vmkdir usr/share/matplotlib - vcopy ${wrksrc}/lib/matplotlib/mpl-data usr/share/matplotlib - vsconf ${wrksrc}/matplotlibrc.template - vconf ${PKGDESTDIR}/usr/share/matplotlib/mpl-data/matplotlibrc - rm -f ${PKGDESTDIR}/usr/share/matplotlib/mpl-data/matplotlibrc - } -} diff --git a/srcpkgs/python-matplotlib/update b/srcpkgs/python-matplotlib/update deleted file mode 100644 index 9802cfc2cb8..00000000000 --- a/srcpkgs/python-matplotlib/update +++ /dev/null @@ -1 +0,0 @@ -ignore="*b* *rc*"