summaryrefslogtreecommitdiff
path: root/math/py-matplotlib2
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2020-09-19 13:10:26 +0000
committerThierry Thomas <thierry@FreeBSD.org>2020-09-19 13:10:26 +0000
commit7212bd1061c9fccf083925062aaf96a497256b9a (patch)
tree5ad3c9d35377fe96b7b7bd83e04d55dcb9796987 /math/py-matplotlib2
parentUpdate to 4.3.5 (diff)
Upgrade py-matplotlib to 3.3.1, and keep a repocopy of 2.2.4.
Changelog at <https://matplotlib.org/3.3.1/users/whats_new.html>. PR: 236913 Submitted by: chitty_cloud (at) me.com Approved by: maintainer
Diffstat (limited to 'math/py-matplotlib2')
-rw-r--r--math/py-matplotlib2/Makefile72
-rw-r--r--math/py-matplotlib2/distinfo3
-rw-r--r--math/py-matplotlib2/files/patch-setup.cfg88
-rw-r--r--math/py-matplotlib2/files/patch-setup.py10
-rw-r--r--math/py-matplotlib2/pkg-descr10
-rw-r--r--math/py-matplotlib2/pkg-plist19
6 files changed, 202 insertions, 0 deletions
diff --git a/math/py-matplotlib2/Makefile b/math/py-matplotlib2/Makefile
new file mode 100644
index 000000000000..9b2dc659617a
--- /dev/null
+++ b/math/py-matplotlib2/Makefile
@@ -0,0 +1,72 @@
+# Created by: ijliao
+# $FreeBSD$
+
+PORTNAME= matplotlib
+DISTVERSION= 2.2.4
+PORTREVISION= 2
+CATEGORIES= math python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= mainland@apeiron.net
+COMMENT= Plotting library uses a syntax familiar to MATLAB users (legacy)
+
+LICENSE= PSFL
+
+BUILD_DEPENDS= ${PYNUMPY}
+LIB_DEPENDS= libfreetype.so:print/freetype2 \
+ libpng.so:graphics/png \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libtcl86.so:lang/tcl86
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}cycler>=0.10:devel/py-cycler@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:devel/py-dateutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}kiwisolver>=1.0.0:math/py-kiwisolver@${PY_FLAVOR}
+py27_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>0:devel/py-backports.functools_lru_cache@${PY_FLAVOR}
+
+USES= compiler:c++11-lib gettext gnome pkgconfig python shebangfix uniquefiles:dirs
+USE_PYTHON= autoplist distutils
+
+CFLAGS+= -I${LOCALBASE}/include
+
+OPTIONS_DEFINE= EXAMPLES \
+ QT5AGGBACKEND TKAGGBACKEND
+OPTIONS_DEFAULT= TKAGGBACKEND
+OPTIONS_SUB= yes
+
+QT5AGGBACKEND_DESC= Qt5Agg backend support
+QT5AGGBACKEND_USES= display pyqt:5
+QT5AGGBACKEND_USE= PYQT=sip,widgets
+QT5AGGBACKEND_VARS= QT5AGG_BACKEND=True
+QT5AGGBACKEND_VARS_OFF= QT5AGG_BACKEND=False
+TKAGGBACKEND_DESC= TKAgg backend support
+TKAGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
+TKAGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
+TKAGGBACKEND_USES= display tk:run
+TKAGGBACKEND_VARS= TKAGG_BACKEND=True
+TKAGGBACKEND_VARS_OFF= TKAGG_BACKEND=False
+
+PORTEXAMPLES= *
+
+post-extract:
+ @${FIND} ${WRKSRC} -name '*.py' | ${XARGS} ${CHMOD} -x
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \
+ -e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \
+ ${WRKSRC}/setup.cfg
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/web_backend/jquery-ui-1.12.1
+ cd ${WRKSRC}/lib/matplotlib/backends/web_backend/jquery-ui-1.12.1 && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/web_backend/jquery-ui-1.12.1
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib -name '*.so' \
+ | ${XARGS} ${STRIP_CMD}
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/math/py-matplotlib2/distinfo b/math/py-matplotlib2/distinfo
new file mode 100644
index 000000000000..8d68c003e904
--- /dev/null
+++ b/math/py-matplotlib2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1553231915
+SHA256 (matplotlib-2.2.4.tar.gz) = 029620799e581802961ac1dcff5cb5d3ee2f602e0db9c0f202a90495b37d2126
+SIZE (matplotlib-2.2.4.tar.gz) = 36974286
diff --git a/math/py-matplotlib2/files/patch-setup.cfg b/math/py-matplotlib2/files/patch-setup.cfg
new file mode 100644
index 000000000000..7ed4928d4a75
--- /dev/null
+++ b/math/py-matplotlib2/files/patch-setup.cfg
@@ -0,0 +1,88 @@
+--- setup.cfg.orig 2015-09-05 07:46:40 UTC
++++ setup.cfg
+@@ -0,0 +1,83 @@
++# Rename this file to setup.cfg to modify matplotlib's
++# build options.
++
++[egg_info]
++tag_svn_revision = 1
++
++[directories]
++# Uncomment to override the default basedir in setupext.py.
++# This can be a single directory or a space-delimited list of directories.
++#basedirlist = /usr
++
++[status]
++# To suppress display of the dependencies and their versions
++# at the top of the build log, uncomment the following line:
++#suppress = True
++#
++# Uncomment to insert lots of diagnostic prints in extension code
++#verbose = True
++
++[provide_packages]
++# By default, matplotlib checks for a few dependencies and
++# installs them if missing. This feature can be turned off
++# by uncommenting the following lines. Acceptible values are:
++# True: install, overwrite an existing installation
++# False: do not install
++# auto: install only if the package is unavailable. This
++# is the default behavior
++#
++## Date/timezone support:
++pytz = False
++dateutil = False
++
++[gui_support]
++# Matplotlib supports multiple GUI toolkits, including Cocoa,
++# GTK, Fltk, MacOSX, Qt, Qt4, Tk, and WX. Support for many of
++# these toolkits requires AGG, the Anti-Grain Geometry library,
++# which is provided by matplotlib and built by default.
++#
++# Some backends are written in pure Python, and others require
++# extension code to be compiled. By default, matplotlib checks
++# for these GUI toolkits during installation and, if present,
++# compiles the required extensions to support the toolkit. GTK
++# support requires the GTK runtime environment and PyGTK. Wx
++# support requires wxWidgets and wxPython. Tk support requires
++# Tk and Tkinter. The other GUI toolkits do not require any
++# extension code, and can be used as long as the libraries are
++# installed on your system.
++#
++# You can uncomment any the following lines if you know you do
++# not want to use the GUI toolkit. Acceptible values are:
++# True: build the extension. Exits with a warning if the
++# required dependencies are not available
++# False: do not build the extension
++# auto: build if the required dependencies are available,
++# otherwise skip silently. This is the default
++# behavior
++#
++gtk = False
++gtkagg = False
++qt4agg = False
++qt5agg = %%QT5AGG_BACKEND%%
++tkagg = %%TKAGG_BACKEND%%
++wxagg = False
++#macosx = False
++
++[rc_options]
++# User-configurable options
++#
++# Default backend, one of: Agg, Cairo, CocoaAgg, GTK, GTKAgg, GTKCairo,
++# FltkAgg, MacOSX, Pdf, Ps, QtAgg, Qt4Agg, SVG, TkAgg, WX, WXAgg.
++#
++# The Agg, Ps, Pdf and SVG backends do not require external
++# dependencies. Do not choose GTK, GTKAgg, GTKCairo, MacOSX, TkAgg or WXAgg
++# if you have disabled the relevent extension modules. Agg will be used
++# by default.
++#
++#backend = Agg
++#
++# The numerix module was historically used to provide
++# compatibility between the Numeric, numarray, and NumPy array
++# packages. Now that NumPy has emerge as the universal array
++# package for python, numerix is not really necessary and is
++# maintained to provide backward compatibility. Do not change
++# this unless you have a compelling reason to do so.
++#numerix = numpy
diff --git a/math/py-matplotlib2/files/patch-setup.py b/math/py-matplotlib2/files/patch-setup.py
new file mode 100644
index 000000000000..9b533542c000
--- /dev/null
+++ b/math/py-matplotlib2/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig 2019-02-26 00:18:32 UTC
++++ setup.py
+@@ -189,7 +189,6 @@ class develop_with_jquery(DevelopCommand
+
+
+ cmdclass['sdist'] = sdist_with_jquery
+-cmdclass['install_lib'] = install_lib_with_jquery
+ cmdclass['develop'] = develop_with_jquery
+
+
diff --git a/math/py-matplotlib2/pkg-descr b/math/py-matplotlib2/pkg-descr
new file mode 100644
index 000000000000..ee4911bc4e88
--- /dev/null
+++ b/math/py-matplotlib2/pkg-descr
@@ -0,0 +1,10 @@
+matplotlib is a python 2D plotting library which produces publication quality
+figures using in a variety of hardcopy formats (PNG, JPG, PS, SVG) and
+interactive GUI environments (WX, GTK, Tkinter) across platforms. matplotlib
+can be used in python scripts, interactively from the python shell (ala matlab
+or mathematica), in web application servers generating dynamic charts, or
+embedded in GTK, Tk or WX applications; see backends.
+
+This is the legacy version.
+
+WWW: https://matplotlib.org/
diff --git a/math/py-matplotlib2/pkg-plist b/math/py-matplotlib2/pkg-plist
new file mode 100644
index 000000000000..03da42589131
--- /dev/null
+++ b/math/py-matplotlib2/pkg-plist
@@ -0,0 +1,19 @@
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/AUTHORS.txt
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/LICENSE.txt
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/external/jquery/jquery.js
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_444444_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_555555_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_777777_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_cc0000_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_ffffff_256x240.png
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/index.html
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.js
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.min.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.min.js
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.structure.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.structure.min.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.theme.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.theme.min.css
+%%PYTHON_SITELIBDIR%%/matplotlib/backends/web_backend/jquery-ui-1.12.1/package.json