summaryrefslogtreecommitdiff
path: root/data/rubyobjc_/make.sh
blob: 20502ad1e81d208a5aa02b405ac9d89706f09d38 (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
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