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.



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

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

Instance Attribute Details

#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_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_base_nameObject



49
50
51
# File 'lib/gnome2/rake/external-package.rb', line 49

def archive_base_name
  "#{base_name}.tar.#{compression_method}"
end

#archive_urlObject



53
54
55
# File 'lib/gnome2/rake/external-package.rb', line 53

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

#base_nameObject



45
46
47
# File 'lib/gnome2/rake/external-package.rb', line 45

def base_name
  "#{name}-#{version}"
end

#need_autogen?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/gnome2/rake/external-package.rb', line 65

def need_autogen?
  need_autogen
end

#need_autoreconf?Boolean

Returns:

  • (Boolean)


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

def need_autoreconf?
  need_autoreconf
end