Sha256: cb9fa84f55fb32fe296f9d1665469885e20e61386b7d46ec6788069ddbeee27a

Contents?: true

Size: 612 Bytes

Versions: 48

Compression:

Stored size: 612 Bytes

Contents

require_relative './recipe'

module Ports
  class Freetds < Recipe
    def initialize(version)
      super('freetds', version)

      set_patches
    end

    private

    def configure_defaults
      opts = super

      opts << '--with-pic'
      opts << '--disable-odbc'

      if version =~ /0\.91/
        opts << '--with-tdsver=7.1'
      else
        opts << '--with-tdsver=7.3'
      end

      if windows?
        opts << '--sysconfdir=C:/Sites'
        opts << '--enable-sspi'
      end

      opts
    end

    def set_patches
      self.patch_files.concat get_patches(name, version)
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
tiny_tds-2.1.7-x64-mingw-ucrt tasks/ports/freetds.rb
tiny_tds-2.1.7-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.7-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.7 tasks/ports/freetds.rb
tiny_tds-2.1.6-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.6-x64-mingw-ucrt tasks/ports/freetds.rb
tiny_tds-2.1.6-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.6 tasks/ports/freetds.rb
tiny_tds-2.1.5-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.5-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.5 tasks/ports/freetds.rb
tiny_tds-2.1.4-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre2-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre2-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre2 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.4.pre tasks/ports/freetds.rb