Skip to content
Permalink
Browse files

ruby/rb-rubyosa: New Port rb-rubyosa 0.4.0

RubyOSA provides a bridge from Ruby to the Apple Event Manager

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@40500 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
kimuraw committed Oct 4, 2008
1 parent a17075d commit aa6663a7e8afbd201b869a0ed1b0cedf99d380cc
Showing with 32 additions and 0 deletions.
  1. +22 −0 ruby/rb-rubyosa/Portfile
  2. +10 −0 ruby/rb-rubyosa/files/patch-src-lib-rbosa.rb.diff
@@ -0,0 +1,22 @@
# $Id$

PortSystem 1.0
PortGroup ruby 1.0

ruby.setup rubyosa 0.4.0 extconf.rb {README NEWS TODO sample} rubyforge:19508
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 patch-src-lib-rbosa.rb.diff
}
default_variants +disable_ruby_libxml2
checksums md5 175440298a414c4a8d185f8459364a97 \
rmd160 dad775c3482d1487be565fb98494d455baa52390 \
sha1 117fed91026b2e770436bc9aedb78f2cc8177865
@@ -0,0 +1,10 @@
--- src/lib/rbosa.rb.orig 2008-10-04 14:48:31.000000000 +0900
+++ src/lib/rbosa.rb 2008-10-04 15:43:42.000000000 +0900
@@ -36,6 +36,7 @@

# If libxml-ruby is not present, switch to REXML.
USE_LIBXML = begin
+ raise LoadError, "SEGV will raise rubyosa with libxml2-ruby 0.7 or later"
require 'xml/libxml'

# libxml-ruby bug workaround.

0 comments on commit aa6663a

Please sign in to comment.
You can’t perform that action at this time.