summaryrefslogtreecommitdiff
path: root/data/rubyobjc_/make.sh
blob: bddcec3f2d3fc412c784972c3496a7ee3b80e1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
${PKG_TARG}-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