pkgsrc-Changes archive

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

CVS commit: pkgsrc/geography/py-obspy



Module Name:    pkgsrc
Committed By:   richard
Date:           Mon Sep  5 16:09:11 UTC 2016

Modified Files:
        pkgsrc/geography/py-obspy: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/geography/py-obspy/Makefile

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

Modified files:

Index: pkgsrc/geography/py-obspy/Makefile
diff -u pkgsrc/geography/py-obspy/Makefile:1.7 pkgsrc/geography/py-obspy/Makefile:1.8
--- pkgsrc/geography/py-obspy/Makefile:1.7      Sat Aug 20 18:56:55 2016
+++ pkgsrc/geography/py-obspy/Makefile  Mon Sep  5 16:09:11 2016
@@ -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 @@ pre-configure:
 
 .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