Sha256: 3887b1ccb891a6b02b86f6784bdfd39ed35bf63314a88dae30f5d51b9a9967b7

Contents?: true

Size: 612 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
tiny_tds-2.0.0-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.0.0-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.0.0 tasks/ports/freetds.rb
tiny_tds-2.0.0.pre1-x64-mingw32 tasks/ports/freetds.rb
tiny_tds-2.0.0.pre1-x86-mingw32 tasks/ports/freetds.rb
tiny_tds-2.0.0.pre1 tasks/ports/freetds.rb