Date: Wed, 7 Oct 2015 12:50:43 +0000 (UTC) From: Jimmy Olgeni <olgeni@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r398761 - head/math/py-matplotlib Message-ID: <201510071250.t97CohHB017912@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: olgeni Date: Wed Oct 7 12:50:42 2015 New Revision: 398761 URL: https://svnweb.freebsd.org/changeset/ports/398761 Log: Unbreak math/py-matplotlib when some options are disabled (original PR). The previous version tried to ${STRIP} non-existing files. Some additional fixes: - Fix WXAGGBACKEND_VARS, which was overwritten and broke the WX build - Fix permissions in .py files - Sort entries in post-install - Whitespace fixes PR: 203417 Submitted by: Tomi Kause Reviewed by: olgeni Approved by: maintainer Modified: head/math/py-matplotlib/Makefile Modified: head/math/py-matplotlib/Makefile ============================================================================== --- head/math/py-matplotlib/Makefile Wed Oct 7 12:45:47 2015 (r398760) +++ head/math/py-matplotlib/Makefile Wed Oct 7 12:50:42 2015 (r398761) @@ -24,7 +24,7 @@ USES= pkgconfig python shebangfix uniqu USE_PYTHON= autoplist distutils CFLAGS+= -I${LOCALBASE}/include -OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND TKAGGBACKEND WXAGGBACKEND +OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND TKAGGBACKEND WXAGGBACKEND OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND OPTIONS_SUB= yes GTKBACKEND_DESC= GTK backend support @@ -43,9 +43,8 @@ TKAGGBACKEND_VARS= TKAGG_BACKEND=True TKAGGBACKEND_VARS_OFF= TKAGG_BACKEND=False WXAGGBACKEND_DESC= WXAgg backend support WXAGGBACKEND_USE= WX=2.8+ -WXAGGBACKEND_VARS= WX_COMPS=python:lib,WX_UNICODE=yes WXAGGBACKEND_CONFIGURE_ENV= WX_CONFIG="${WX_CONFIG}" -WXAGGBACKEND_VARS= WXAGG_BACKEND=True +WXAGGBACKEND_VARS= WXAGG_BACKEND=True WX_COMPS=python:lib WX_UNICODE=yes WXAGGBACKEND_VARS_OFF= WXAGG_BACKEND=False PORTEXAMPLES= * @@ -58,7 +57,7 @@ WXAGGBACKEND_BUILD_DEPENDS= Xvfb:${PORTS .endif post-extract: - ${CHMOD} -R ga+r ${WRKDIR} + ${FIND} ${WRKSRC} -name \*.py | ${XARGS} ${CHMOD} -x post-patch: ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ @@ -76,19 +75,25 @@ post-patch: ${WRKSRC}/setup.cfg post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_cntr.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_delaunay.so ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_image.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_path.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_png.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_qhull.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_tri.so ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/_backend_agg.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/ft2font.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/ttconv.so + +post-install-GTKAGGBACKEND-on: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/_gtkagg.so + +post-install-TKAGGBACKEND-on: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/_tkagg.so + +post-install-GTKBACKEND-on: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/backends/_backend_gdk.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_qhull.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/ttconv.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_delaunay.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_png.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_tri.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_path.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/_cntr.so - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib/ft2font.so post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510071250.t97CohHB017912>