<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/rake/wrapper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,3 +2,4 @@ generated
 *.swp
 website/_site
 publish
+lib/usr</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,25 +1,23 @@
 #!/usr/bin/env ruby
 require 'rake/contrib/sshpublisher'
+require 'lib/rake/wrapper'
 
 # Setup some global Ogre.rb information
 OGRE_RB_ROOT = File.expand_path(File.dirname(__FILE__))
 
 # Need to run through the 'wrappers' dir, looking for wrapping projects
 # and setup rake tasks as needed
+Dir[&quot;wrappers/**/*.rake&quot;].each { |f| load f }
 
-def build_tasks_for(lib, path)
-  namespace lib do
-    desc &quot;Build the #{lib} wrapper&quot;
-    task :build do
-      ruby File.join(path, &quot;build_#{lib}.rb&quot;)
-    end
-  end
-end
+# Global ogre.rb tasks
+namespace :ogrerb do
 
-Dir[&quot;wrappers/**/*.rake&quot;].each do |f| 
-  load f 
+  # Make sure the build and install directory structure we expect exists
+  task :bootstrap do
+    mkdir_p ogrerb_path(&quot;tmp&quot;, &quot;downloads&quot;)
+    mkdir_p ogrerb_path(&quot;lib&quot;, &quot;usr&quot;)
+  end
 
-  build_tasks_for File.basename(f, &quot;.rake&quot;), File.dirname(f)
 end
 
 RUBYFORGE_USERNAME = &quot;jameskilton&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,39 +1,11 @@
-namespace :ois do
-
-  desc &quot;clean up ois&quot; 
-  task :clean do
-    rm_rf File.join(OGRE_RB_ROOT, &quot;lib&quot;, &quot;ois&quot;)
-    rm_rf File.join(OGRE_RB_ROOT, &quot;tmp&quot;, &quot;ois&quot;)
-    rm_rf File.join(OGRE_RB_ROOT, &quot;tmp&quot;, &quot;downloads&quot;)
-  end
-
-  desc &quot;bootstrap the required directory structure&quot;
-  task :bootstrap do
-    begin
-      mkdir File.join(OGRE_RB_ROOT, &quot;tmp&quot;, &quot;downloads&quot;)
-      mkdir File.join(OGRE_RB_ROOT, &quot;lib&quot;, &quot;ois&quot;)
-    rescue
-      # already exist
-    end
-  end
-
-  desc &quot;setup ois for wrapping&quot;
-  task :setup =&gt; :bootstrap do
-    DOWNLOAD = &quot;ois_1.2.0.tar.gz&quot;
-    cd File.join(OGRE_RB_ROOT , &quot;tmp&quot;, &quot;downloads&quot;) do
-      sh &quot;wget http://downloads.sourceforge.net/wgois/#{DOWNLOAD}&quot;
-      cp DOWNLOAD, &quot;..&quot;
-    end
-
-    cd File.join(OGRE_RB_ROOT, &quot;tmp&quot;) do
-      sh &quot;tar xzvf #{DOWNLOAD}&quot;
-    end
-
-    cd File.join(OGRE_RB_ROOT, &quot;tmp&quot;, &quot;ois&quot;) do
-      sh &quot;./bootstrap&quot;
-      sh &quot;./configure --prefix=#{File.join(OGRE_RB_ROOT, &quot;lib&quot;, &quot;ois&quot;)}&quot;
-      sh &quot;make&quot;
-      sh &quot;make install&quot;
-    end
+wrapper :ois do |ois|
+  ois.download_from = &quot;http://downloads.sourceforge.net/wgois&quot;
+  ois.download = &quot;ois_1.2.0.tar.gz&quot; 
+  ois.unpack = &quot;tar xzvf&quot;
+  ois.build do |prefix|
+    sh &quot;./bootstrap&quot;
+    sh &quot;./configure --prefix=#{prefix}&quot;
+    sh &quot;make&quot;
+    sh &quot;make install&quot;
   end
 end</diff>
      <filename>wrappers/ois/ois.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>edff35cd821e176b9d7bb15be8727e619fc42e41</id>
    </parent>
  </parents>
  <author>
    <name>Jason Roelofs</name>
    <email>jameskilton@gmail.com</email>
  </author>
  <url>http://github.com/jameskilton/ogrerb/commit/2aae9d833b5acce1c2892e3964a0dd898d3a083c</url>
  <id>2aae9d833b5acce1c2892e3964a0dd898d3a083c</id>
  <committed-date>2009-06-12T11:01:31-07:00</committed-date>
  <authored-date>2009-06-12T11:01:31-07:00</authored-date>
  <message>started working on a wrapper definition system to replace the manual rake syntax currently requried</message>
  <tree>b58685ae0e8ea9a31243f1ec86ef73e6fc80152f</tree>
  <committer>
    <name>Jason Roelofs</name>
    <email>jameskilton@gmail.com</email>
  </committer>
</commit>
