freebsd-ports/math/py-matplotlib2/Makefile
Muhammad Moinur Rahman 4e15e5371b math/py-matplotlib2: Mark BROKEN on 14
- Fails to compile with:
  ISO C++17 does not allow 'register' storage class specifier
- Although this specific has easy workarounds but it fails at the stage
  post-stage with the following:
  ====> Compressing man pages (compress-man)
  pkill -15 -F /tmp/.xvfb-0.pid
  pkill: Pidfile `/tmp/.xvfb-0.pid' is empty

  The result remains unchanged even with other llvm variants.
- Mark DEPRECATED as upstream support reached EOL during 2020. See the
  following for more information:
  https://discourse.matplotlib.org/t/ann-matplotlib-2-2-0-released/20227
  Also this does not officially support python3.8 and later.
- Set EXPIRATION_DATE to 2023-09-30

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-08-18 21:42:05 +02:00

74 lines
2.6 KiB
Makefile

PORTNAME= matplotlib
DISTVERSION= 2.2.4
PORTREVISION= 6
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 2
MAINTAINER= mainland@apeiron.net
COMMENT= Plotting library uses a syntax familiar to MATLAB users (legacy)
WWW= https://matplotlib.org/
LICENSE= PSFL
BROKEN_FreeBSD_14= fails to compile: ISO C++17 does not allow 'register' storage class specifier
DEPRECATED= Upstream support ended in 2020 and do not support python3 versions existing on the tree
EXPIRATION_DATE= 2023-09-30
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}
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=pyqt5,sip
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>