Class: GNOME2::Rake::ExternalPackage

Inherits:
Struct
  • Object
show all
Defined in:
lib/gnome2/rake/external-package.rb

Defined Under Namespace

Classes: NativeConfiguration, WindowsConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(properties) ⇒ ExternalPackage

Returns a new instance of ExternalPackage.



38
39
40
41
42
43
# File 'lib/gnome2/rake/external-package.rb', line 38

def initialize(properties)
  super()
  properties.each do |key, value|
    send("#{key}=", value)
  end
end

Instance Attribute Details

#archive_base_nameObject

Returns the value of attribute archive_base_name

Returns:

  • (Object)

    the current value of archive_base_name



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def archive_base_name
  @archive_base_name
end

#base_dir_in_packageObject

Returns the value of attribute base_dir_in_package

Returns:

  • (Object)

    the current value of base_dir_in_package



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def base_dir_in_package
  @base_dir_in_package
end

#base_nameObject

Returns the value of attribute base_name

Returns:

  • (Object)

    the current value of base_name



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def base_name
  @base_name
end

#build_concurrentlyObject

Returns the value of attribute build_concurrently

Returns:

  • (Object)

    the current value of build_concurrently



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def build_concurrently
  @build_concurrently
end

#bundled_packagesObject

Returns the value of attribute bundled_packages

Returns:

  • (Object)

    the current value of bundled_packages



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def bundled_packages
  @bundled_packages
end

#compression_methodObject

Returns the value of attribute compression_method

Returns:

  • (Object)

    the current value of compression_method



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def compression_method
  @compression_method
end

#download_base_urlObject

Returns the value of attribute download_base_url

Returns:

  • (Object)

    the current value of download_base_url



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def download_base_url
  @download_base_url
end

#download_nameObject

Returns the value of attribute download_name

Returns:

  • (Object)

    the current value of download_name



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def download_name
  @download_name
end

#download_siteObject

Returns the value of attribute download_site

Returns:

  • (Object)

    the current value of download_site



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def download_site
  @download_site
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def label
  @label
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def name
  @name
end

#nativeObject

Returns the value of attribute native

Returns:

  • (Object)

    the current value of native



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def native
  @native
end

#need_autogenObject

Returns the value of attribute need_autogen

Returns:

  • (Object)

    the current value of need_autogen



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def need_autogen
  @need_autogen
end

#need_autoreconfObject

Returns the value of attribute need_autoreconf

Returns:

  • (Object)

    the current value of need_autoreconf



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def need_autoreconf
  @need_autoreconf
end

#patchesObject

Returns the value of attribute patches

Returns:

  • (Object)

    the current value of patches



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def patches
  @patches
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def version
  @version
end

#windowsObject

Returns the value of attribute windows

Returns:

  • (Object)

    the current value of windows



21
22
23
# File 'lib/gnome2/rake/external-package.rb', line 21

def windows
  @windows
end

Instance Method Details

#archive_urlObject



62
63
64
# File 'lib/gnome2/rake/external-package.rb', line 62

def archive_url
  "#{download_base_url}/#{archive_base_name}"
end

#latest_versionObject



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/gnome2/rake/external-package.rb', line 106

def latest_version
  case download_site
  when :gnome
    latest_version_gnome
  when :freedesktop
    latest_version_freedesktop
  when :freedesktop_gstreamer
    latest_version_freedesktop_gstreamer
  when :gnu
    latest_version_gnu
  when :webkitgtk
    latest_version_webkitgtk
  when :icu
    latest_version_icu
  when :github
    latest_version_github
  else
    nil
  end
end

#need_autogen?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/gnome2/rake/external-package.rb', line 74

def need_autogen?
  need_autogen
end

#need_autoreconf?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/gnome2/rake/external-package.rb', line 78

def need_autoreconf?
  need_autoreconf
end