$OpenBSD: patch-ext_tiny_tds_extconf_rb,v 1.4 2016/05/05 22:45:39 jeremy Exp $

Don't require mini_portile to build.

--- ext/tiny_tds/extconf.rb.orig	Sun May  1 15:43:50 2016
+++ ext/tiny_tds/extconf.rb	Tue May  3 14:43:34 2016
@@ -7,8 +7,9 @@ require 'fileutils'
 
 # The gem version constraint in the gemspec is not respected at install time.
 # Keep this version in sync with the one in the gemspec !
-gem 'mini_portile2', '~> 2.0'
-require 'mini_portile2'
+#gem 'mini_portile2', '~> 2.0'
+#require 'mini_portile2'
+require 'openssl'
 require_relative './extconsts'
 
 OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
@@ -79,6 +80,7 @@ def searchable_paths_with_directories(*directories)
   end.flatten.compact
 end
 
+=begin
 class BuildRecipe < MiniPortile
   def initialize(name, version, files)
     super(name, version)
@@ -245,6 +247,7 @@ def define_freetds_recipe(host, libiconv, libssl, gnut
 
   end
 end
+=end
 
 if RbConfig::CONFIG['target_os'] =~ /mswin32|mingw32/
   lib_prefix = 'lib' unless RbConfig::CONFIG['target_os'] =~ /mingw32/
@@ -302,7 +305,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"]
