pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-sphinx



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Aug 19 13:58:00 UTC 2017

Modified Files:
        pkgsrc/textproc/py-sphinx: Makefile

Log Message:
Depend on py-typing only for Python < 3.6


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 pkgsrc/textproc/py-sphinx/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-sphinx/Makefile
diff -u pkgsrc/textproc/py-sphinx/Makefile:1.40 pkgsrc/textproc/py-sphinx/Makefile:1.41
--- pkgsrc/textproc/py-sphinx/Makefile:1.40     Mon Jul  3 17:43:36 2017
+++ pkgsrc/textproc/py-sphinx/Makefile  Sat Aug 19 13:58:00 2017
@@ -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}-snowballstemmer
 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