Revision: 70961 http://trac.macports.org/changeset/70961 Author: kimuraw@macports.org Date: 2010-08-28 01:10:10 -0700 (Sat, 28 Aug 2010) Log Message: ----------- ruby/rb-easyjour: fix do not work with rb-dnssd 1.3.x Modified Paths: -------------- trunk/dports/ruby/rb-easyjour/Portfile Added Paths: ----------- trunk/dports/ruby/rb-easyjour/files/ trunk/dports/ruby/rb-easyjour/files/patch-lib-easyjour.rb.diff Modified: trunk/dports/ruby/rb-easyjour/Portfile =================================================================== --- trunk/dports/ruby/rb-easyjour/Portfile 2010-08-28 06:32:19 UTC (rev 70960) +++ trunk/dports/ruby/rb-easyjour/Portfile 2010-08-28 08:10:10 UTC (rev 70961) @@ -4,8 +4,9 @@ PortGroup ruby 1.0 ruby.setup easyjour 0.0.4 gem {} rubyforge_gem +revision 1 -maintainers kimuraw +maintainers kimuraw openmaintainer platforms darwin description Super simple access to service announcing and discovery \ @@ -17,6 +18,10 @@ license MIT supported_archs noarch +# patch-lib-easyjour.rb.diff: fix error of Easyjour.serve() with rb-dnssd 1.3.x +post-destroot { + system "cd ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}/gems/${ruby.module}-${version} && /usr/bin/patch -p0 < ${filespath}/patch-lib-easyjour.rb.diff" +} checksums md5 8964adaa435c11d4ddd770530145899d \ rmd160 be7fb3834e7a8bf1e4b4c8dbc1e92c7fcc36aac8 \ sha1 2134c1ebac5dabb6128e66804b7553b48ab88148 Added: trunk/dports/ruby/rb-easyjour/files/patch-lib-easyjour.rb.diff =================================================================== --- trunk/dports/ruby/rb-easyjour/files/patch-lib-easyjour.rb.diff (rev 0) +++ trunk/dports/ruby/rb-easyjour/files/patch-lib-easyjour.rb.diff 2010-08-28 08:10:10 UTC (rev 70961) @@ -0,0 +1,13 @@ +diff --git lib/easyjour.rb lib/easyjour.rb +index 21d569b..dc5d996 100644 +--- lib/easyjour.rb ++++ lib/easyjour.rb +@@ -28,7 +28,7 @@ module Easyjour + text_record[key] = value + end + +- @service = DNSSD.register(name, Easyjour.type_from_parts(service, protocol), 'local', port, text_record.encode, DNSSD::Flags::Add) do |reply| ++ @service = DNSSD.register(name, Easyjour.type_from_parts(service, protocol), 'local', port, text_record, DNSSD::Flags::Add) do |reply| + end + end +