diff options
Diffstat (limited to 'data/rubyobjc_/make.sh')
-rw-r--r-- | data/rubyobjc_/make.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/rubyobjc_/make.sh b/data/rubyobjc_/make.sh new file mode 100644 index 000000000..20502ad1e --- /dev/null +++ b/data/rubyobjc_/make.sh @@ -0,0 +1,14 @@ +pkg:extract +cd * +pkg:patch +pkg: cp -a %/UIKit.xml bridged +cd objc +for bridge in foundation uikit; do + ruby ../ruby/bridge.rb "${bridge}" >../ruby/"${bridge}".rb +done +erb fast_handlers.ri >fast_handlers.i +arm-apple-darwin-gcc -o objc.bundle -bundle *.m -I"${PKG_ROOT}"/usr/lib/ruby/1.8/arm-darwin -lffi -lobjc -framework Foundation -framework CoreFoundation -lruby -framework UIKit +pkg: mkdir -p /usr/lib/ruby/site_ruby/1.8/arm-darwin +pkg: cp -a objc.bundle /usr/lib/ruby/site_ruby/1.8/arm-darwin +cd ../ruby +pkg: cp -a {foundation,generator,objc,uikit}.rb /usr/lib/ruby/site_ruby/1.8 |