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.3-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.3-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.3 tasks/ports/freetds.rb
tiny_tds-2.1.3.pre-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.3.pre-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.3.pre tasks/ports/freetds.rb
vm_tiny_tds-2.1.2 tasks/ports/freetds.rb
tiny_tds-2.1.2-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.2-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.2 tasks/ports/freetds.rb
tiny_tds-2.1.1-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.1-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.1 tasks/ports/freetds.rb
tiny_tds-2.1.0-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.0-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.0 tasks/ports/freetds.rb
tiny_tds-2.1.0.pre4-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.0.pre4-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.1.0.pre4 tasks/ports/freetds.rb
tiny_tds-2.1.0.pre3-x86-mingw32 tasks/ports/freetds.rb