# $Id: Portfile 74945 2011-01-09 02:37:04Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rubyosa 0.4.0 extconf.rb {README NEWS TODO sample} rubyforge:19508
revision		1
homepage		http://rubyosa.rubyforge.org/
platforms		darwin
description		RubyOSA provides a bridge from Ruby to the Apple Event Manager.
long_description	\
	RubyOSA provides a bridge from Ruby to the Apple Event Manager. It allows \
	Ruby programs to automate Mac OS X applications in the same way as \
	AppleScript.
maintainers     kimuraw

variant disable_ruby_libxml2 description "avoid SEGV with ruby-libxml2 >=0.7" {
	patchfiles-append patch-src-lib-rbosa.rb.diff
}

platform darwin 10 {
	patchfiles-append patch-src-rbosa.h.diff
}

default_variants	+disable_ruby_libxml2
checksums		md5 175440298a414c4a8d185f8459364a97 \
				rmd160 dad775c3482d1487be565fb98494d455baa52390 \
				sha1 117fed91026b2e770436bc9aedb78f2cc8177865
