summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-08-05 22:47:17 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-05 22:47:17 +0000
commit25fb703588f7f1250086fd247d0d551bec9cb447 (patch)
tree17db068ce7d960bb1b63d7cacc253c1a5a0c63eb
parente1225ad3d296c1fcb3089dd3c41f6af95bc0ec30 (diff)
add build class for the 'scons' build system (http://www.scons.org)
add python-scons-native
-rw-r--r--classes/scons.bbclass13
-rw-r--r--packages/python/python-scons-native_0.96.90.bb12
2 files changed, 25 insertions, 0 deletions
diff --git a/classes/scons.bbclass b/classes/scons.bbclass
new file mode 100644
index 0000000000..3160eca69a
--- /dev/null
+++ b/classes/scons.bbclass
@@ -0,0 +1,13 @@
+DEPENDS += "python-scons-native"
+
+scons_do_compile() {
+ ${STAGING_BINDIR}/scons || \
+ oefatal "scons build execution failed."
+}
+
+scons_do_install() {
+ ${STAGING_BINDIR}/scons install || \
+ oefatal "scons install execution failed."
+}
+
+EXPORT_FUNCTIONS do_compile do_install
diff --git a/packages/python/python-scons-native_0.96.90.bb b/packages/python/python-scons-native_0.96.90.bb
new file mode 100644
index 0000000000..bc6fc7992d
--- /dev/null
+++ b/packages/python/python-scons-native_0.96.90.bb
@@ -0,0 +1,12 @@
+include python-scons_${PV}.bb
+inherit native
+
+do_stage() {
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \
+ oefatal "python setup.py install execution failed."
+}
+
+do_install() {
+ :
+}