Fix py-matplotlib-2.2.4 build.

naddy@ and ajacoutot@, independently from each other, found that the
recent update of py-matplotlib does not build. Issue is caused by me not
noticing that matplotlib tries to download jquery-ui-1.12.1, which fails
when building in a chroot using dpb. Instead of downloading jquery-ui
use the bundled files.

REVISION is not bumped as patched file is not included in the package,
and no new files are added.
This commit is contained in:
bket 2019-05-03 07:35:59 +00:00
parent 3ec95ea769
commit b3fd2e0333
2 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.76 2019/05/03 06:59:58 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.77 2019/05/03 07:35:59 bket Exp $
COMMENT= Python charting and plotting API
@ -82,6 +82,10 @@ post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && pax -rw * ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_SITEPKG}/matplotlib/backends/web_backend/jquery-ui-1.12.1
cp -r ${WRKSRC}/lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/* \
${WRKINST}${MODPY_SITEPKG}/matplotlib/backends/web_backend/jquery-ui-1.12.1
do-test: fake
cd ${WRKSRC} && ${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
${MODPY_BIN} tests.py --no-network --verbose

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-setup_py,v 1.9 2019/05/03 07:35:59 bket Exp $
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -189,7 +189,7 @@ class develop_with_jquery(DevelopCommand):
cmdclass['sdist'] = sdist_with_jquery
-cmdclass['install_lib'] = install_lib_with_jquery
+#cmdclass['install_lib'] = install_lib_with_jquery
cmdclass['develop'] = develop_with_jquery