class GNOME2::Rake::ExternalPackage - glib2-2.2.5 Documentation

# class GNOME2::Rake::ExternalPackage

### Public Class Methods

new(properties) click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 36
    def initialize(properties)
      super()
      properties.each do |key, value|
        send("#{key}=", value)
      end
    end

### Public Instance Methods

archive_base_name() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 51
    def archive_base_name
      super || "#{base_name}.tar.#{compression_method}"
    end

archive_url() click to toggle source

    # File lib/gnome2/rake/external-package.rb, line 55
    def archive_url
      "#{download_base_url}/#{archive_base_name}"
    end

base_dir_in_package() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 75
    def base_dir_in_package
      super || "."
    end

base_name() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 47
    def base_name
      super || "#{name}-#{version}"
    end

bundled_packages() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 95
    def bundled_packages
      super || []
    end

compression_method() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 43
    def compression_method
      super || "gz"
    end

download_base_url() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 59
    def download_base_url
      super || download_site_base_url
    end

native() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 87
    def native
      super || NativeConfiguration.new({})
    end

native=(properties) click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 91
    def native=(properties)
      super(NativeConfiguration.new(properties))
    end

need_autogen?() click to toggle source

    # File lib/gnome2/rake/external-package.rb, line 67
    def need_autogen?
      need_autogen
    end

need_autoreconf?() click to toggle source

    # File lib/gnome2/rake/external-package.rb, line 71
    def need_autoreconf?
      need_autoreconf
    end

patches() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 63
    def patches
      super || []
    end

windows() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 79
    def windows
      super || WindowsConfiguration.new({})
    end

windows=(properties) click to toggle source
Calls superclass method

    # File lib/gnome2/rake/external-package.rb, line 83
    def windows=(properties)
      super(WindowsConfiguration.new(properties))
    end

### Private Instance Methods

download_site_base_url() click to toggle source

    # File lib/gnome2/rake/external-package.rb, line 100
    def download_site_base_url
      case download_site
      when :gnome
        base_url = "http://ftp.gnome.org/pub/gnome/sources"
        release_series = version.gsub(/\A(\d+\.\d+)(?:[^\d].*)?\z/, '\1')
        base_url << "/#{name}/#{release_series}"
      when :gnu
        base_url = "http://ftp.gnu.org/pub/gnu/#{name}"
      else
        base_url = nil
      end
      base_url
    end