add build class for the 'scons' build system (http://www.scons.org)
authorMichael Lauer <mickey@vanille-media.de>
Fri, 5 Aug 2005 22:47:17 +0000 (22:47 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 5 Aug 2005 22:47:17 +0000 (22:47 +0000)
add python-scons-native

classes/scons.bbclass [new file with mode: 0644]
packages/python/python-scons-native_0.96.90.bb [new file with mode: 0644]

diff --git a/classes/scons.bbclass b/classes/scons.bbclass
new file mode 100644 (file)
index 0000000..3160eca
--- /dev/null
@@ -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 (file)
index 0000000..bc6fc79
--- /dev/null
@@ -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() {
+       :
+}