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.



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

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



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

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



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

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



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def base_name
  @base_name
end

#build_concurrentlyObject

Returns the value of attribute build_concurrently

Returns:

  • (Object)

    the current value of build_concurrently



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def build_concurrently
  @build_concurrently
end

#bundled_packagesObject

Returns the value of attribute bundled_packages

Returns:

  • (Object)

    the current value of bundled_packages



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def bundled_packages
  @bundled_packages
end

#compression_methodObject

Returns the value of attribute compression_method

Returns:

  • (Object)

    the current value of compression_method



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

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



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

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



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def download_name
  @download_name
end

#download_siteObject

Returns the value of attribute download_site

Returns:

  • (Object)

    the current value of download_site



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def download_site
  @download_site
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def label
  @label
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def name
  @name
end

#nativeObject

Returns the value of attribute native

Returns:

  • (Object)

    the current value of native



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def native
  @native
end

#need_autogenObject

Returns the value of attribute need_autogen

Returns:

  • (Object)

    the current value of need_autogen



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def need_autogen
  @need_autogen
end

#need_autoreconfObject

Returns the value of attribute need_autoreconf

Returns:

  • (Object)

    the current value of need_autoreconf



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def need_autoreconf
  @need_autoreconf
end

#patchesObject

Returns the value of attribute patches

Returns:

  • (Object)

    the current value of patches



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def patches
  @patches
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def version
  @version
end

#windowsObject

Returns the value of attribute windows

Returns:

  • (Object)

    the current value of windows



19
20
21
# File 'lib/gnome2/rake/external-package.rb', line 19

def windows
  @windows
end

Instance Method Details

#archive_urlObject



60
61
62
# File 'lib/gnome2/rake/external-package.rb', line 60

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

#latest_versionObject



104
105
106
107
# File 'lib/gnome2/rake/external-package.rb', line 104

def latest_version
  warn("this feature is no longer supported.")
  nil
end

#need_autogen?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/gnome2/rake/external-package.rb', line 72

def need_autogen?
  need_autogen
end

#need_autoreconf?Boolean

Returns:

  • (Boolean)


76
77
78
# File 'lib/gnome2/rake/external-package.rb', line 76

def need_autoreconf?
  need_autoreconf
end