python-matplotlib: update to 2.0.0

This commit is contained in:
Alessio Sergi 2017-02-08 14:50:00 +01:00
parent 2c38eb2a9a
commit be64c790a9
1 changed files with 15 additions and 14 deletions

View File

@ -1,28 +1,30 @@
# Template file for 'python-matplotlib'
pkgname=python-matplotlib
version=1.5.3
revision=3
version=2.0.0
revision=1
wrksrc="matplotlib-${version}"
build_style=python-module
hostmakedepends="pkg-config python-setuptools python3-setuptools"
# XXX: use internal copy of agg, highly patched
makedepends="
python-devel python3-devel python-numpy python3-numpy
python-cycler python3-cycler python-dateutil python3-dateutil python-pytz
python3-pytz python-tornado python3-tornado python-parsing
python3-parsing python-PyQt4-devel python-PyQt5-devel python-pyside
python3-pyside python-cairocffi python3-cairocffi python-gobject-devel
pygtk-devel gtk+3-devel tk-devel python-tkinter python3-tkinter wxPython-devel
freetype-devel libpng-devel libqhull-devel"
depends="python-matplotlib-data>=${version}_${revision} python-numpy python-cycler
python-dateutil python-parsing python-pytz"
python-six python3-six python-dateutil python3-dateutil
python-functools32 python-subprocess32 python-pytz python3-pytz
python-cycler python3-cycler python-tornado python3-tornado
python-parsing python3-parsing python-PyQt5-devel python-PyQt4-devel
python-pyside python3-pyside python-cairocffi python3-cairocffi
python-gobject-devel pygtk-devel gtk+3-devel tk-devel python-tkinter
python3-tkinter wxPython-devel freetype-devel libpng-devel libqhull-devel"
depends="python-matplotlib-data>=${version}_${revision} python-numpy
python-six python-dateutil python-functools32 python-subprocess32
python-pytz python-cycler python-parsing"
pycompile_module="matplotlib mpl_toolkits pylab.py"
short_desc="Python2 2D/3D plotting library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://matplotlib.org/"
license="matplotlib, BSD, MIT"
distfiles="${PYPI_SITE}/m/matplotlib/matplotlib-${version}.tar.gz"
checksum=a0a5dc39f785014f2088fed2c6d2d129f0444f71afbb9c44f7bdf1b14d86ebbc
checksum=36cf0985829c1ab2b8b1dae5e2272e53ae681bf33ab8bedceed4f0565af5f813
export XDG_RUNTIME_DIR=/tmp
@ -39,7 +41,7 @@ pre_build() {
}
post_install() {
# remove data files
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/matplotlib/{mpl-data,backends/Matplotlib.nib}
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/matplotlib/mpl-data
}
python-matplotlib-data_package() {
@ -49,7 +51,6 @@ python-matplotlib-data_package() {
pkg_install() {
vmkdir usr/share/matplotlib
vcopy ${wrksrc}/lib/matplotlib/mpl-data usr/share/matplotlib
vcopy ${wrksrc}/lib/matplotlib/backends/Matplotlib.nib usr/share/matplotlib
vsconf ${wrksrc}/matplotlibrc.template
vconf ${PKGDESTDIR}/usr/share/matplotlib/mpl-data/matplotlibrc
rm -f ${PKGDESTDIR}/usr/share/matplotlib/mpl-data/matplotlibrc
@ -58,7 +59,7 @@ python-matplotlib-data_package() {
python3-matplotlib_package() {
replaces="python3.4-matplotlib>=0"
depends="python-matplotlib-data>=${version}_${revision} python3-numpy
python3-cycler python3-dateutil python3-parsing python3-pytz"
python3-six python3-dateutil python3-pytz python3-cycler python3-parsing"
short_desc="${short_desc/Python2/Python3}"
pycompile_module="matplotlib mpl_toolkits pylab.py"
pkg_install() {