summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-11 20:26:53 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-15 12:39:39 (GMT)
commita69b2d3926826d72374800ac8eda6646aa0aa078 (patch)
tree31653d1fe013ab7ff69be079235e6671808c5fab
parent3fcb28e7a15eb6dd3e768528fac5c9293b11e0a4 (diff)
downloadbuildroot-a69b2d3926826d72374800ac8eda6646aa0aa078.tar.gz
buildroot-a69b2d3926826d72374800ac8eda6646aa0aa078.tar.bz2
scons: convert to the Python package infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/scons/scons.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/package/scons/scons.mk b/package/scons/scons.mk
index a7747d5..e3fad1b 100644
--- a/package/scons/scons.mk
+++ b/package/scons/scons.mk
@@ -8,17 +8,12 @@ SCONS_VERSION = 2.3.0
SCONS_SITE = http://downloads.sourceforge.net/project/scons/scons/$(SCONS_VERSION)
SCONS_LICENSE = MIT
SCONS_LICENSE_FILES = LICENSE.txt
+SCONS_SETUP_TYPE = distutils
-define HOST_SCONS_BUILD_CMDS
- (cd $(@D); python setup.py build)
-endef
+HOST_SCONS_INSTALL_OPT = \
+ --install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION)
-define HOST_SCONS_INSTALL_CMDS
- (cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr \
- --install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION))
-endef
-
-$(eval $(host-generic-package))
+$(eval $(host-python-package))
# variables used by other packages
SCONS = $(HOST_DIR)/usr/bin/scons