pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/py-obspy PYTHONBIN doesn't exist during the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3590899236b
branches:  trunk
changeset: 352058:b3590899236b
user:      richard <richard%pkgsrc.org@localhost>
date:      Mon Sep 05 16:09:11 2016 +0000

description:
PYTHONBIN doesn't exist during the first phase of the build.

diffstat:

 geography/py-obspy/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 124e51c710c9 -r b3590899236b geography/py-obspy/Makefile
--- a/geography/py-obspy/Makefile       Mon Sep 05 16:03:47 2016 +0000
+++ b/geography/py-obspy/Makefile       Mon Sep 05 16:09:11 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2016/08/20 18:56:55 richard Exp $
+# $NetBSD: Makefile,v 1.8 2016/09/05 16:09:11 richard Exp $
 
 DISTNAME=      obspy-1.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -29,11 +29,13 @@
 
 .include "../../lang/python/pyversion.mk"
 
+.if exists(${PYTHONBIN:Q})
 PYPLATFORM!=   ${PYTHONBIN} -c 'import platform; print platform.system() + "_" + platform.architecture()[0]'
 
 PLIST_SUBST+=          PYPLATFORM=${PYPLATFORM} PYPKGPREFIX=${PYPKGPREFIX}
 PRINT_PLIST_AWK+=       /^${PYPLATFORM:S|/|\\/|g}/ \
                         { gsub(/${PYPLATFORM:S|/|\\/|g}/, "$${PYPLATFORM}") }
+.endif
 
 .include "../../graphics/py-matplotlib/buildlink3.mk"
 .include "../../lang/python/egg.mk"



Home | Main Index | Thread Index | Old Index