pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-sphinx Depend on py-typing only for Python...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/406fbd1f9cde
branches:  trunk
changeset: 366938:406fbd1f9cde
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Aug 19 13:58:00 2017 +0000

description:
Depend on py-typing only for Python < 3.6

diffstat:

 textproc/py-sphinx/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3c7a23fe71f5 -r 406fbd1f9cde textproc/py-sphinx/Makefile
--- a/textproc/py-sphinx/Makefile       Sat Aug 19 13:55:20 2017 +0000
+++ b/textproc/py-sphinx/Makefile       Sat Aug 19 13:58:00 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2017/07/03 17:43:36 adam Exp $
+# $NetBSD: Makefile,v 1.41 2017/08/19 13:58:00 adam Exp $
 
 DISTNAME=      Sphinx-1.6.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -22,7 +22,12 @@
 DEPENDS+=      ${PYPKGPREFIX}-sphinx-rtd-theme-[0-9]*:../../textproc/py-sphinx-rtd-theme
 DEPENDS+=      ${PYPKGPREFIX}-sphinxcontrib-websupport-[0-9]*:../../textproc/py-sphinxcontrib-websupport
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py27" || "${PYPKGPREFIX}" == "py34" || "${PYPKGPREFIX}" == "py35"
 DEPENDS+=      ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
+.endif
+
 # test dependency
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock



Home | Main Index | Thread Index | Old Index