Simple version update, changes available at
http://bitbucket.org/ged/ruby-pg/changesets

I'm adding a patch so that 0.10.0 works correctly on the in-tree version
of rubinius.  It won't be necessary in the next rubinius version or the
next ruby-pg version, as both projects have been updated (ruby-pg to
incorporate the patch, rubinius to add the previously missing feature).

Tested on amd64 and i386.  Looking for OKs.

Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/ruby-pg/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile    24 Nov 2010 21:35:13 -0000      1.9
+++ Makefile    2 Dec 2010 16:05:39 -0000
@@ -2,8 +2,7 @@
 
 COMMENT =      PostgreSQL database interface for ruby
 
-DISTNAME =     pg-0.9.0
-REVISION =     1
+DISTNAME =     pg-0.10.0
 CATEGORIES =   databases
 
 MAINTAINER =   Jeremy Evans <[email protected]>
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/ruby-pg/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    6 Oct 2010 16:26:57 -0000       1.4
+++ distinfo    2 Dec 2010 16:05:59 -0000
@@ -1,5 +1,5 @@
-MD5 (pg-0.9.0.gem) = +hKattAJzzJQLP2ivxYUtQ==
-RMD160 (pg-0.9.0.gem) = 4duBQEk82hQcSVaaKiCfB/deMRM=
-SHA1 (pg-0.9.0.gem) = QKyhtpxbiKidBVmPbwYvM8tgm0s=
-SHA256 (pg-0.9.0.gem) = zSd3lpgpVrrD8h8BuA+Qdf6GknmeDcxusgkFUGojVMY=
-SIZE (pg-0.9.0.gem) = 100352
+MD5 (pg-0.10.0.gem) = QECW72/dic1MFpqSp8qCaw==
+RMD160 (pg-0.10.0.gem) = J1uzoXOpUvbZ2BEhYl2ZWUClPpk=
+SHA1 (pg-0.10.0.gem) = C5AxGHr0KyzoQWgApVPGAuFadcE=
+SHA256 (pg-0.10.0.gem) = jokeqmJ2m249UlRbh8wn8KdjV+zI3XhFmb4pf+caoxk=
+SIZE (pg-0.10.0.gem) = 113152
Index: patches/patch-ext_pg_c
===================================================================
RCS file: patches/patch-ext_pg_c
diff -N patches/patch-ext_pg_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ext_pg_c      6 Dec 2010 17:33:20 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+rb_yield_splat is not yet supported by rubinius, this is functionally
+equivalent. Upstream fixed the issue in 9e11be78bfe4.
+
+--- ext/pg.c.orig      Thu Dec  2 09:10:21 2010
++++ ext/pg.c   Thu Dec  2 09:12:32 2010
+@@ -2172,7 +2172,7 @@ pgconn_wait_for_notify(int argc, VALUE *argv, VALUE se
+       PQfreemem( notification );
+ 
+       if ( rb_block_given_p() )
+-              rb_yield_splat( rb_ary_new3(2, relname, be_pid) );
++              rb_yield_values(2, relname, be_pid);
+ 
+       return relname;
+ }
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/databases/ruby-pg/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST   8 Nov 2010 23:24:39 -0000       1.4
+++ pkg/PLIST   2 Dec 2010 16:06:24 -0000
@@ -31,12 +31,12 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/pg_ext.s
 ${GEM_LIB}/gems/${DISTNAME}/rake/
 ${GEM_LIB}/gems/${DISTNAME}/rake/191_compat.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/dependencies.rb
+${GEM_LIB}/gems/${DISTNAME}/rake/documentation.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/helpers.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/hg.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/manual.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/packaging.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/publishing.rb
-${GEM_LIB}/gems/${DISTNAME}/rake/rdoc.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/style.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/svn.rb
 ${GEM_LIB}/gems/${DISTNAME}/rake/testing.rb

Reply via email to