Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 14:46:05 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498139 - in head/math/py-matplotlib: . files
Message-ID:  <201904061446.x36Ek5jH011779@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Apr  6 14:46:04 2019
New Revision: 498139
URL: https://svnweb.freebsd.org/changeset/ports/498139

Log:
  Remove unnecessary jquery-ui-1.12.1.zip from DISTFILES
  
  jquery-ui-1.21.1 is already bundled in the matplot 2.2.4 tarball [1].
  This patch fixes r496681.
  
  [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236455#c4
  
  PR:		236740
  Submitted by:	sunpoet (myself)
  Approved by:	maintainer (timeout, 14 days)

Modified:
  head/math/py-matplotlib/Makefile
  head/math/py-matplotlib/distinfo
  head/math/py-matplotlib/files/patch-setup.py

Modified: head/math/py-matplotlib/Makefile
==============================================================================
--- head/math/py-matplotlib/Makefile	Sat Apr  6 14:45:59 2019	(r498138)
+++ head/math/py-matplotlib/Makefile	Sat Apr  6 14:46:04 2019	(r498139)
@@ -4,11 +4,8 @@
 PORTNAME=	matplotlib
 DISTVERSION=	2.2.4
 CATEGORIES=	math python
-MASTER_SITES=	CHEESESHOP:DEFAULT \
-		https://jqueryui.com/resources/download/:jquery
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz \
-		jquery-ui-1.12.1.zip:jquery
 
 MAINTAINER=	mainland@apeiron.net
 COMMENT=	Plotting library uses a syntax familiar to MATLAB users
@@ -82,7 +79,6 @@ post-extract:
 	@${FIND} ${WRKSRC} -name '*.py' | ${XARGS} ${CHMOD} -x
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|g' ${WRKSRC}/setup.py
 	@${REINPLACE_CMD} -e 's|%%GTK_BACKEND%%|${GTK_BACKEND}|g' \
 			 -e 's|%%GTKAGG_BACKEND%%|${GTKAGG_BACKEND}|g' \
 			 -e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \
@@ -91,6 +87,8 @@ post-patch:
 		${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}
 

Modified: head/math/py-matplotlib/distinfo
==============================================================================
--- head/math/py-matplotlib/distinfo	Sat Apr  6 14:45:59 2019	(r498138)
+++ head/math/py-matplotlib/distinfo	Sat Apr  6 14:46:04 2019	(r498139)
@@ -1,5 +1,3 @@
 TIMESTAMP = 1553231915
 SHA256 (matplotlib-2.2.4.tar.gz) = 029620799e581802961ac1dcff5cb5d3ee2f602e0db9c0f202a90495b37d2126
 SIZE (matplotlib-2.2.4.tar.gz) = 36974286
-SHA256 (jquery-ui-1.12.1.zip) = f8233674366ab36b2c34c577ec77a3d70cac75d2e387d8587f3836345c0f624d
-SIZE (jquery-ui-1.12.1.zip) = 439463

Modified: head/math/py-matplotlib/files/patch-setup.py
==============================================================================
--- head/math/py-matplotlib/files/patch-setup.py	Sat Apr  6 14:45:59 2019	(r498138)
+++ head/math/py-matplotlib/files/patch-setup.py	Sat Apr  6 14:46:04 2019	(r498139)
@@ -1,22 +1,10 @@
---- setup.py.orig	2019-03-22 05:20:14 UTC
+--- setup.py.orig	2019-02-26 00:18:32 UTC
 +++ setup.py
-@@ -153,12 +153,13 @@ def _download_jquery_to(dest):
-     sha = 'f8233674366ab36b2c34c577ec77a3d70cac75d2e387d8587f3836345c0f624d'
-     if not os.path.exists(os.path.join(dest, "jquery-ui-1.12.1")):
-         _makedirs(dest, exist_ok=True)
--        try:
--            buff = download_or_cache(url, sha)
--        except Exception:
--            raise IOError("Failed to download jquery-ui.  Please download " +
--                          "{url} and extract it to {dest}.".format(
--                              url=url, dest=dest))
-+        buff = os.path.join("%%DISTDIR%%", "jquery-ui-1.12.1.zip")
-+#        try:
-+#            buff = download_or_cache(url, sha)
-+#        except Exception:
-+#            raise IOError("Failed to download jquery-ui.  Please download " +
-+#                          "{url} and extract it to {dest}.".format(
-+#                              url=url, dest=dest))
-         with ZipFile(buff) as zf:
-             zf.extractall(dest)
+@@ -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
+ 
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904061446.x36Ek5jH011779>