Patchwork [6/8] scons: add host-python2-if-needed dependency

login
register
mail settings
Submitter Samuel Martin
Date Dec. 30, 2012, 10:54 p.m.
Message ID <413c44afc4ad4f5f3908f94e151562b9642d0555.1356907750.git.s.martin49@gmail.com>
Download mbox | patch
Permalink /patch/208804/
State Deferred
Headers show

Comments

Samuel Martin - Dec. 30, 2012, 10:54 p.m.
Also, ensure $(HOST_DIR)/usr/bin is in the PATH during the configure phase.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
 package/scons/scons.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Patch

diff --git a/package/scons/scons.mk b/package/scons/scons.mk
index 79fd6b1..e3ada92 100644
--- a/package/scons/scons.mk
+++ b/package/scons/scons.mk
@@ -4,12 +4,16 @@  SCONS_SITE = http://downloads.sourceforge.net/project/scons/scons/$(SCONS_VERSIO
 SCONS_LICENSE = MIT
 SCONS_LICENSE_FILES = LICENSE.txt
 
+# Because Scons is not python3-friendly, we have to ensure that
+HOST_SCONS_DEPENDENCIES = host-python2-if-needed
+
 define HOST_SCONS_BUILD_CMDS
-	(cd $(@D); python setup.py build)
+	(cd $(@D); $(HOST_CONFIGURE_OPTS) python setup.py build)
 endef
 
 define HOST_SCONS_INSTALL_CMDS
-	(cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr \
+	(cd $(@D) ; $(HOST_CONFIGURE_OPTS) python setup.py install \
+		--prefix=$(HOST_DIR)/usr \
 		--install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION))
 endef