From owner-svn-ports-head@freebsd.org Fri Mar 9 09:01:28 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 952B3F39C44; Fri, 9 Mar 2018 09:01:28 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C0296BC76; Fri, 9 Mar 2018 09:01:28 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: by mail-vk0-x22a.google.com with SMTP id n82so1658836vkf.7; Fri, 09 Mar 2018 01:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1Gb38F+viZlHVimH0+hLMttg26FnCJLs6MUcYojiS3g=; b=RQwcrmXIwcL6jMnrks2K8NyhPNKcY8r930ExMgsDTcDrCuapL4XSEjnrk095uX8ToW GIryukSWB1oZ0Ur/SaYCznS47I5YxNiu4XU+Mfr0YUX9MOqkQUjzvtY0iz4C+8aCS2hk sVF02UvPsOFkOTmQSmLceNRINp/ehPp4UptY9nWWbr38TnFTaosL3VGiCbFRFSvdFyji ASPHqpdImhu1BZn0BjUYFjdvARL4xFMLDEyhy8wyeYxZCW3OxMAHsEBhAxpC8lOQxT+1 1BorOrjonUoHNdFk7mfGkj3jZQk3ux+LXpa6I+1sgGPh9Y7y2jBUF4aq3l/ZdIryV3ta mI+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1Gb38F+viZlHVimH0+hLMttg26FnCJLs6MUcYojiS3g=; b=I6KbSPiFpyC4zep73QP5VWEveNKRzmF14PKWGOKTGUclcalVFPmQVx9+A5Ouf6HKPR CJaopV+7vdKmC9QBOOBGjezYXopK4bkDUcNQy21BWCvFixFowelUGVSMuZPAgxENQBgk rs2IcbTaiPZ9shkYVUryRSVbhv0ciePKNXGRKQjgetJLDW16x67FK0WRDVXr27VaxIuv 1qhpSgyerdLwOygSMR2uJKkA2HQmLIHRgqViBVJn0xZZlRr4s4BGcHmL1QjRNkSERtTp XLndvDt8lp9kYScJlB3TB0t4wLyXP2kkQ7qTnClKNAFX5Fa1MiFQWLm3zDnZjy5V91/J l5tQ== X-Gm-Message-State: APf1xPDevnv5CTbSmME2VHMezVzWyqr1VLtogJQp5j7XtCTlioBDiwxq PAGDlPQMoknohH/rBvCdqGnqfPqkteHyx29XsUXETg== X-Google-Smtp-Source: AG47ELt1MiKILMqYKdC4Nznul+aZ11KWrBgxaNTFwAF/cR2lqZu9NZDW5dmI2L1leRGFqG9BzByiOKTENVlUFYcMuqk= X-Received: by 10.31.115.197 with SMTP id o188mr20658364vkc.106.1520586087418; Fri, 09 Mar 2018 01:01:27 -0800 (PST) MIME-Version: 1.0 Sender: bsdkaffee@gmail.com Received: by 10.31.165.207 with HTTP; Fri, 9 Mar 2018 01:01:26 -0800 (PST) In-Reply-To: <201803090723.w297NjpD097376@repo.freebsd.org> References: <201803090723.w297NjpD097376@repo.freebsd.org> From: "Jason E. Hale" Date: Fri, 9 Mar 2018 04:01:26 -0500 X-Google-Sender-Auth: PR_Ys9uw_zkXUt5OkjaiDPNlA8I Message-ID: Subject: Re: svn commit: r463936 - head/math/py-matplotlib To: Yuri Victorovich Cc: ports-committers , svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2018 09:01:28 -0000 On Fri, Mar 9, 2018 at 2:23 AM, Yuri Victorovich 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 > + > +.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 > +.include > Instead of all the 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