svn commit: r463936 - head/math/py-matplotlib

Jason E. Hale jhale at freebsd.org
Fri Mar 9 09:01:28 UTC 2018


On Fri, Mar 9, 2018 at 2:23 AM, Yuri Victorovich <yuri at freebsd.org> wrote:
> Author: yuri
> Date: Fri Mar  9 07:23:45 2018
> New Revision: 463936
> URL: https://svnweb.freebsd.org/changeset/ports/463936
>
> Log:
>   math/py-matplotlib: Dependency devel/py-backports.functools_lru_cache is only for python-2.7
>
>   Reported by:  tobik
>   Approved by:  tcberner (mentor, implicit)
>
> Modified:
>   head/math/py-matplotlib/Makefile
>
> Modified: head/math/py-matplotlib/Makefile
> ==============================================================================
> --- head/math/py-matplotlib/Makefile    Fri Mar  9 07:21:43 2018        (r463935)
> +++ head/math/py-matplotlib/Makefile    Fri Mar  9 07:23:45 2018        (r463936)
> @@ -19,7 +19,6 @@ LIB_DEPENDS=  libfreetype.so:print/freetype2 \
>                 libfontconfig.so:x11-fonts/fontconfig \
>                 libtcl86.so:lang/tcl86
>  RUN_DEPENDS=   ${PYNUMPY} \
> -               ${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>0:devel/py-backports.functools_lru_cache@${FLAVOR} \
>                 ${PYTHON_PKGNAMEPREFIX}cycler>0:devel/py-cycler@${FLAVOR} \
>                 ${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:devel/py-dateutil@${FLAVOR} \
>                 ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${FLAVOR} \
> @@ -81,6 +80,12 @@ TKAGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfb
>  WXAGGBACKEND_BUILD_DEPENDS=    Xvfb:x11-servers/xorg-vfbserver
>  .endif
>
> +.include <bsd.port.pre.mk>
> +
> +.if ${PYTHON_REL} < 3000
> +RUN_DEPENDS+=  ${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>0:devel/py-backports.functools_lru_cache@${FLAVOR}
> +.endif
> +
>  post-extract:
>         ${FIND} ${WRKSRC} -name \*.py | ${XARGS} ${CHMOD} -x
>
> @@ -109,4 +114,4 @@ post-install-EXAMPLES-on:
>         @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
>         ${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
>
> -.include <bsd.port.mk>
> +.include <bsd.port.post.mk>
>

Instead of all the <b.p.p.m> logic, it would be a lot cleaner to just use:

py27_RUN_DEPENDS=
${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>0:devel/py-backports.functools_lru_cache@${FLAVOR}

-Jason


More information about the svn-ports-all mailing list