diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-10-03 22:35:52 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-10-03 22:35:52 +0000 |
commit | 5ced936a9e54c2873ea9285c1cebde6d4ebbee9d (patch) | |
tree | 003014880c45de9c5da303bcf0b2d96c4b3e8c86 /classes | |
parent | 00898d4b8dee2b533700b0dccc0a1094b9149786 (diff) |
add a basic bbclass for building ruby extensions
NOTE: might be uncomplete, but may serve as a starting point for someone interested in ruby ;)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/rubyextension.bbclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/classes/rubyextension.bbclass b/classes/rubyextension.bbclass new file mode 100644 index 0000000000..9c9d66e260 --- /dev/null +++ b/classes/rubyextension.bbclass @@ -0,0 +1,19 @@ +DEPENDS += "ruby-native" +RDEPENDS += "ruby" + +rubyextension_do_configure() { + ${STAGING_BINDIR}/ruby setup.rb config || \ + oefatal "ruby setup.rb config stage failed." +} + +rubyextension_do_compile() { + ${STAGING_BINDIR}/ruby setup.rb setup || \ + oefatal "ruby setup.rb setup stage failed." +} + +rubyextension_do_install() { + ${STAGING_BINDIR}/ruby setup.rb install || \ + oefatal "ruby setup.rb install stage failed." +} + +EXPORT_FUNCTIONS do_configure do_compile do_install |