Fairly simple update. Main change is the addition of streaming support. This also removes a patch that is no longer needed.
I plan to commit this in a few days unless I hear objections. Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- Makefile 7 Aug 2013 21:57:44 -0000 1.14 +++ Makefile 22 Oct 2013 17:15:59 -0000 @@ -2,8 +2,7 @@ COMMENT= modern, simple and very fast MySQL library for Ruby -DISTNAME= mysql2-0.3.11 -REVISION= 4 +DISTNAME= mysql2-0.3.13 CATEGORIES= databases HOMEPAGE= https://github.com/brianmario/mysql2 Index: distinfo =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/distinfo,v retrieving revision 1.4 diff -u -p -r1.4 distinfo --- distinfo 7 Jun 2012 15:34:20 -0000 1.4 +++ distinfo 22 Oct 2013 17:16:26 -0000 @@ -1,5 +1,2 @@ -MD5 (mysql2-0.3.11.gem) = ZxVBzs9XXO+2hresSdMr1A== -RMD160 (mysql2-0.3.11.gem) = ayObNrkfxDaVs9pAmNyJWfvSWKo= -SHA1 (mysql2-0.3.11.gem) = BleTNYHhUaCE88BzmP0A7LRvAUQ= -SHA256 (mysql2-0.3.11.gem) = E0+EjpHWB1YIOHO2b8RxoCm131HDWFLvWjoPn3pJZkE= -SIZE (mysql2-0.3.11.gem) = 41984 +SHA256 (mysql2-0.3.13.gem) = Lbm8DSq/a1BWJZhDAMdHBc3WoEZEBAlUmdcozIl9MH0= +SIZE (mysql2-0.3.13.gem) = 40448 Index: patches/patch-ext_mysql2_extconf_rb =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/patches/patch-ext_mysql2_extconf_rb,v retrieving revision 1.1 diff -u -p -r1.1 patch-ext_mysql2_extconf_rb --- patches/patch-ext_mysql2_extconf_rb 14 Apr 2011 17:23:32 -0000 1.1 +++ patches/patch-ext_mysql2_extconf_rb 16 Jul 2013 15:48:00 -0000 @@ -1,14 +1,15 @@ $OpenBSD: patch-ext_mysql2_extconf_rb,v 1.1 2011/04/14 17:23:32 jeremy Exp $ ---- ext/mysql2/extconf.rb.orig Mon Apr 11 16:14:10 2011 -+++ ext/mysql2/extconf.rb Mon Apr 11 16:14:41 2011 -@@ -31,10 +31,10 @@ elsif mc = (with_config('mysql-config') || Dir[GLOB].f - mc = Dir[GLOB].first if mc == true +--- ext/mysql2/extconf.rb.orig Wed Dec 31 16:00:00 1969 ++++ ext/mysql2/extconf.rb Tue Jul 16 08:47:55 2013 +@@ -44,11 +44,11 @@ elsif mc = (with_config('mysql-config') || Dir[GLOB].f + ver = `#{mc} --version`.chomp.to_f cflags = `#{mc} --cflags`.chomp exit 1 if $? != 0 - libs = `#{mc} --libs_r`.chomp -- if libs.empty? + #libs = `#{mc} --libs_r`.chomp -+ #if libs.empty? + # MySQL 5.5 and above already have re-entrant code in libmysqlclient (no _r). +- if ver >= 5.5 || libs.empty? ++ #if ver >= 5.5 || libs.empty? libs = `#{mc} --libs`.chomp - end + #end Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/pkg/PLIST,v retrieving revision 1.4 diff -u -p -r1.4 PLIST --- pkg/PLIST 13 Dec 2011 18:06:20 -0000 1.4 +++ pkg/PLIST 22 Oct 2013 17:17:08 -0000 @@ -1,25 +1,8 @@ @comment $OpenBSD: PLIST,v 1.4 2011/12/13 18:06:20 jeremy Exp $ ${GEM_LIB}/cache/${DISTNAME}.gem ${GEM_LIB}/gems/${DISTNAME}/ -${GEM_LIB}/gems/${DISTNAME}/.gitignore -${GEM_LIB}/gems/${DISTNAME}/.rspec -${GEM_LIB}/gems/${DISTNAME}/.rvmrc -${GEM_LIB}/gems/${DISTNAME}/.travis.yml -${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md -${GEM_LIB}/gems/${DISTNAME}/Gemfile ${GEM_LIB}/gems/${DISTNAME}/MIT-LICENSE ${GEM_LIB}/gems/${DISTNAME}/README.md -${GEM_LIB}/gems/${DISTNAME}/Rakefile -${GEM_LIB}/gems/${DISTNAME}/benchmark/ -${GEM_LIB}/gems/${DISTNAME}/benchmark/active_record.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/active_record_threaded.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/allocations.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/escape.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/query_with_mysql_casting.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/query_without_mysql_casting.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/sequel.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/setup_db.rb -${GEM_LIB}/gems/${DISTNAME}/benchmark/threaded.rb ${GEM_LIB}/gems/${DISTNAME}/examples/ ${GEM_LIB}/gems/${DISTNAME}/examples/eventmachine.rb ${GEM_LIB}/gems/${DISTNAME}/examples/threaded.rb @@ -35,6 +18,8 @@ ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/m ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/mysql2_ext.c ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/mysql2_ext.h ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/mysql2_ext.o +${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/mysql_enc_name_to_ruby.h +${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/mysql_enc_to_ruby.h ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/result.c ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/result.h ${GEM_LIB}/gems/${DISTNAME}/ext/mysql2/result.o @@ -43,13 +28,14 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/ ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/ ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2.rb ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/client.rb +${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/console.rb ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/em.rb ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/error.rb ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/mysql2.so ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/result.rb ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/version.rb -${GEM_LIB}/gems/${DISTNAME}/mysql2.gemspec ${GEM_LIB}/gems/${DISTNAME}/spec/ +${GEM_LIB}/gems/${DISTNAME}/spec/configuration.yml.example ${GEM_LIB}/gems/${DISTNAME}/spec/em/ ${GEM_LIB}/gems/${DISTNAME}/spec/em/em_spec.rb ${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/ @@ -58,9 +44,7 @@ ${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/ ${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/result_spec.rb ${GEM_LIB}/gems/${DISTNAME}/spec/rcov.opts ${GEM_LIB}/gems/${DISTNAME}/spec/spec_helper.rb -${GEM_LIB}/gems/${DISTNAME}/tasks/ -${GEM_LIB}/gems/${DISTNAME}/tasks/benchmarks.rake -${GEM_LIB}/gems/${DISTNAME}/tasks/compile.rake -${GEM_LIB}/gems/${DISTNAME}/tasks/rspec.rake -${GEM_LIB}/gems/${DISTNAME}/tasks/vendor_mysql.rake +${GEM_LIB}/gems/${DISTNAME}/support/ +${GEM_LIB}/gems/${DISTNAME}/support/mysql_enc_to_ruby.rb +${GEM_LIB}/gems/${DISTNAME}/support/ruby_enc_to_mysql.rb ${GEM_LIB}/specifications/${DISTNAME}.gemspec