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.



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

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



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

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



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

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



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def base_name
  @base_name
end

#build_concurrentlyObject

Returns the value of attribute build_concurrently

Returns:

  • (Object)

    the current value of build_concurrently



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def build_concurrently
  @build_concurrently
end

#bundled_packagesObject

Returns the value of attribute bundled_packages

Returns:

  • (Object)

    the current value of bundled_packages



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def bundled_packages
  @bundled_packages
end

#compression_methodObject

Returns the value of attribute compression_method

Returns:

  • (Object)

    the current value of compression_method



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

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



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def download_base_url
  @download_base_url
end

#download_siteObject

Returns the value of attribute download_site

Returns:

  • (Object)

    the current value of download_site



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def download_site
  @download_site
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def label
  @label
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def name
  @name
end

#nativeObject

Returns the value of attribute native

Returns:

  • (Object)

    the current value of native



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def native
  @native
end

#need_autogenObject

Returns the value of attribute need_autogen

Returns:

  • (Object)

    the current value of need_autogen



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def need_autogen
  @need_autogen
end

#need_autoreconfObject

Returns the value of attribute need_autoreconf

Returns:

  • (Object)

    the current value of need_autoreconf



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def need_autoreconf
  @need_autoreconf
end

#patchesObject

Returns the value of attribute patches

Returns:

  • (Object)

    the current value of patches



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def patches
  @patches
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def version
  @version
end

#windowsObject

Returns the value of attribute windows

Returns:

  • (Object)

    the current value of windows



23
24
25
# File 'lib/gnome2/rake/external-package.rb', line 23

def windows
  @windows
end

Instance Method Details

#archive_urlObject



58
59
60
# File 'lib/gnome2/rake/external-package.rb', line 58

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

#latest_versionObject



102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/gnome2/rake/external-package.rb', line 102

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

#need_autogen?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/gnome2/rake/external-package.rb', line 70

def need_autogen?
  need_autogen
end

#need_autoreconf?Boolean

Returns:

  • (Boolean)


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

def need_autoreconf?
  need_autoreconf
end