This updates tiny_tds to the latest version.  Among other things, this
allows tiny_tds to work on ruby 2.2. After this is committed, I'll have
the ruby 2.2 version built by default.

Tested on i386, builds fine on amd64.  Will be committing in a few days
unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/ruby-tiny_tds/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile    26 Nov 2014 17:43:53 -0000      1.12
+++ Makefile    2 Sep 2015 18:31:01 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      simple and fast ruby binding to FreeTDS
 
-DISTNAME =     tiny_tds-0.6.2
+DISTNAME =     tiny_tds-0.7.0
 CATEGORIES =   databases
 
 HOMEPAGE =     https://github.com/rails-sqlserver/tiny_tds
@@ -14,7 +14,7 @@ PERMIT_PACKAGE_CDROM =        Yes
 
 MODULES =      lang/ruby
 
-WANTLIB =      sybdb
+WANTLIB =      sybdb ct
 
 LIB_DEPENDS =  databases/freetds
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/ruby-tiny_tds/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    26 Nov 2014 17:43:53 -0000      1.4
+++ distinfo    2 Sep 2015 18:31:01 -0000
@@ -1,2 +1,2 @@
-SHA256 (tiny_tds-0.6.2.gem) = WkHuqyl4x5OITCQ5ABKpPuTo9AvuYK5ccOVbCWXJ82g=
-SIZE (tiny_tds-0.6.2.gem) = 47616
+SHA256 (tiny_tds-0.7.0.gem) = 1IvMRzLiTLxZei6Y9ZYcfRJNj7NjG5D3xJ+5MgET4s8=
+SIZE (tiny_tds-0.7.0.gem) = 2404352
Index: patches/patch-_metadata
===================================================================
RCS file: patches/patch-_metadata
diff -N patches/patch-_metadata
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-_metadata     2 Sep 2015 18:31:01 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- .metadata.orig     Mon Aug 10 16:52:24 2015
++++ .metadata  Mon Aug 10 16:52:40 2015
+@@ -19,7 +19,7 @@ dependencies:
+     - - '='
+       - !ruby/object:Gem::Version
+         version: 0.6.2
+-  type: :runtime
++  type: :development
+   prerelease: false
+   version_requirements: !ruby/object:Gem::Requirement
+     requirements:
Index: patches/patch-ext_tiny_tds_extconf_rb
===================================================================
RCS file: patches/patch-ext_tiny_tds_extconf_rb
diff -N patches/patch-ext_tiny_tds_extconf_rb
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ext_tiny_tds_extconf_rb       2 Sep 2015 18:31:01 -0000
@@ -0,0 +1,40 @@
+$OpenBSD$
+
+Don't require mini_portile to build.
+
+--- ext/tiny_tds/extconf.rb.orig       Sun Aug  9 11:30:35 2015
++++ ext/tiny_tds/extconf.rb    Wed Sep  2 11:13:23 2015
+@@ -3,7 +3,7 @@ ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/
+ # :stopdoc:
+ 
+ require 'mkmf'
+-require 'mini_portile'
++#require 'mini_portile'
+ require 'fileutils'
+ 
+ # If your using 0.82, you may have to make a conf file to get it to work. For 
example:
+@@ -85,6 +85,7 @@ def searchable_paths_with_directories(*directories)
+   end.flatten.compact
+ end
+ 
++=begin
+ class BuildRecipe < MiniPortile
+   def initialize(name, version, files)
+     super(name, version)
+@@ -222,6 +223,7 @@ def define_freetds_recipe(host, libiconv, libssl)
+     end
+   end
+ end
++=end
+ 
+ if RbConfig::CONFIG['target_os'] =~ /mswin32|mingw32/
+   lib_prefix = 'lib' unless RbConfig::CONFIG['target_os'] =~ /mingw32/
+@@ -279,7 +281,7 @@ def freetds_usable?(lib_prefix)
+ end
+ 
+ # We use freetds, when available already, and fallback to compilation of ports
+-system_freetds = enable_config('system-freetds', ENV['TINYTDS_SKIP_PORTS'] || 
freetds_usable?(lib_prefix))
++system_freetds = enable_config('system-freetds', true)
+ 
+ # We expect to have iconv and OpenSSL available on non-Windows systems
+ host = RbConfig::CONFIG["host"]
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/databases/ruby-tiny_tds/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST   26 Nov 2014 17:43:53 -0000      1.5
+++ pkg/PLIST   2 Sep 2015 18:31:01 -0000
@@ -3,12 +3,12 @@ ${GEM_LIB}/cache/${DISTNAME}.gem
 ${GEM_LIB}/gems/${DISTNAME}/
 ${GEM_LIB}/gems/${DISTNAME}/.gitignore
 ${GEM_LIB}/gems/${DISTNAME}/CHANGELOG
+${GEM_LIB}/gems/${DISTNAME}/CODE_OF_CONDUCT.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}/compile/
-${GEM_LIB}/gems/${DISTNAME}/compile/rake-compiler-dev-box.patch
+${GEM_LIB}/gems/${DISTNAME}/appveyor.yml
 ${GEM_LIB}/gems/${DISTNAME}/lib/
 ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/
 ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds.rb
@@ -17,9 +17,10 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds
 ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/result.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/tiny_tds.so
 ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/version.rb
-${GEM_LIB}/gems/${DISTNAME}/tasks/
-${GEM_LIB}/gems/${DISTNAME}/tasks/ports.rake
 ${GEM_LIB}/gems/${DISTNAME}/test/
+${GEM_LIB}/gems/${DISTNAME}/test/appveyor/
+${GEM_LIB}/gems/${DISTNAME}/test/appveyor/dbsetup.ps1
+${GEM_LIB}/gems/${DISTNAME}/test/appveyor/dbsetup.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/benchmark/
 ${GEM_LIB}/gems/${DISTNAME}/test/benchmark/query.rb
 ${GEM_LIB}/gems/${DISTNAME}/test/benchmark/query_odbc.rb
@@ -31,6 +32,7 @@ ${GEM_LIB}/gems/${DISTNAME}/test/schema/
 ${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2000.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2005.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2008.sql
+${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2014.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_azure.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/schema/sybase_ase.sql
 ${GEM_LIB}/gems/${DISTNAME}/test/schema_test.rb

Reply via email to