pkgsrc-WIP-changes archive

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

py-poppy: depend on py-enum34 for Python 2.7



Module Name:	pkgsrc-wip
Committed By:	Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By:	adam
Date:		Tue May 22 14:19:46 2018 +0200
Changeset:	447a418c79c0e3c54987a5f8a776e8e30d2290fd

Modified Files:
	py-poppy/Makefile

Log Message:
py-poppy: depend on py-enum34 for Python 2.7

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=447a418c79c0e3c54987a5f8a776e8e30d2290fd

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

diffstat:
 py-poppy/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-poppy/Makefile b/py-poppy/Makefile
index 929db35944..6a52ff11c8 100644
--- a/py-poppy/Makefile
+++ b/py-poppy/Makefile
@@ -11,11 +11,15 @@ COMMENT=	Physical optics propagation for optical simulations
 LICENSE=	modified-bsd
 
 DEPENDS+=	${PYPKGPREFIX}-astropy>=1.1.1:../../wip/py-astropy
-DEPENDS+=	${PYPKGPREFIX}-enum>=0.4.6:../../devel/py-enum
 DEPENDS+=	${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
 DEPENDS+=	${PYPKGPREFIX}-scipy>=0.17.0:../../math/py-scipy
 DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py27"
+DEPENDS+=	${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index