# File lib/reap2/package-task.rb, line 19
  def setup
    @dir          = section['dir']      || 'pkg'

    @name         = section['name']     || master['name']
    @version      = section['version']  || master['version'] || '0.0.1'
    @package_name = @name + '-' + @version

    @author       = section['author']   || master['author']
    @email        = section['email']    || master['email']
    @summary      = section['summary']  || master['summary']
    @project      = section['project']  || master['rubyforge']['project']
    @homepage     = section['homepage'] || master['homepage'] || master['rubyforge']['homepage']

    @include      = section['include']  || DEFAULT_INCLUDE
    @exclude      = MUST_EXCLUDE + section['exclude']

    @zip = section['zip'].nil? ? true : section['zip']
    @gzip = section['gzip'].nil? ? true : section['zip']
    @bzip2 = section['bzip2'].nil? ? true : section['zip']
    @gem = section['gem'].nil? ? true : section['gem']

    # gem specific
    if defined?(Gem)
      if self['platform']
        @platform = ::Gem.const_get(section['platform'])
      else
        @platform = ::Gem::Platform::RUBY
      end
      @autorequire  = section['autorequire']
      @requirements = section['requirements'] || []
      @dependencies = section['dependencies'] || []
      @executables = section['executables'] || []
    end
  end