Class: GNOME2::Rake::ExternalPackage
- Inherits:
-
Struct
- Object
- Struct
- GNOME2::Rake::ExternalPackage
- Defined in:
- lib/gnome2/rake/external-package.rb
Defined Under Namespace
Classes: NativeConfiguration, WindowsConfiguration
Instance Attribute Summary collapse
-
#archive_base_name ⇒ Object
Returns the value of attribute archive_base_name.
-
#base_dir_in_package ⇒ Object
Returns the value of attribute base_dir_in_package.
-
#base_name ⇒ Object
Returns the value of attribute base_name.
-
#build_concurrently ⇒ Object
Returns the value of attribute build_concurrently.
-
#bundled_packages ⇒ Object
Returns the value of attribute bundled_packages.
-
#compression_method ⇒ Object
Returns the value of attribute compression_method.
-
#download_base_url ⇒ Object
Returns the value of attribute download_base_url.
-
#download_site ⇒ Object
Returns the value of attribute download_site.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#native ⇒ Object
Returns the value of attribute native.
-
#need_autogen ⇒ Object
Returns the value of attribute need_autogen.
-
#need_autoreconf ⇒ Object
Returns the value of attribute need_autoreconf.
-
#patches ⇒ Object
Returns the value of attribute patches.
-
#version ⇒ Object
Returns the value of attribute version.
-
#windows ⇒ Object
Returns the value of attribute windows.
Instance Method Summary collapse
- #archive_url ⇒ Object
-
#initialize(properties) ⇒ ExternalPackage
constructor
A new instance of ExternalPackage.
- #latest_version ⇒ Object
- #need_autogen? ⇒ Boolean
- #need_autoreconf? ⇒ Boolean
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_name ⇒ Object
Returns the value of attribute 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_package ⇒ Object
Returns the value of attribute 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_name ⇒ Object
Returns the value of attribute base_name
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def base_name @base_name end |
#build_concurrently ⇒ Object
Returns the value of attribute build_concurrently
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def build_concurrently @build_concurrently end |
#bundled_packages ⇒ Object
Returns the value of attribute bundled_packages
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def bundled_packages @bundled_packages end |
#compression_method ⇒ Object
Returns the value of attribute compression_method
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def compression_method @compression_method end |
#download_base_url ⇒ Object
Returns the value of attribute download_base_url
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def download_base_url @download_base_url end |
#download_site ⇒ Object
Returns the value of attribute download_site
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def download_site @download_site end |
#label ⇒ Object
Returns the value of attribute label
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def label @label end |
#name ⇒ Object
Returns the value of attribute name
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def name @name end |
#native ⇒ Object
Returns the value of attribute native
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def native @native end |
#need_autogen ⇒ Object
Returns the value of attribute need_autogen
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def need_autogen @need_autogen end |
#need_autoreconf ⇒ Object
Returns the value of attribute need_autoreconf
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def need_autoreconf @need_autoreconf end |
#patches ⇒ Object
Returns the value of attribute patches
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def patches @patches end |
#version ⇒ Object
Returns the value of attribute version
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def version @version end |
#windows ⇒ Object
Returns the value of attribute windows
23 24 25 |
# File 'lib/gnome2/rake/external-package.rb', line 23 def windows @windows end |
Instance Method Details
#archive_url ⇒ Object
58 59 60 |
# File 'lib/gnome2/rake/external-package.rb', line 58 def archive_url "#{download_base_url}/#{archive_base_name}" end |
#latest_version ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# 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 :gnu latest_version_gnu when :webkitgtk latest_version_webkitgtk when :icu latest_version_icu else nil end end |
#need_autogen? ⇒ Boolean
70 71 72 |
# File 'lib/gnome2/rake/external-package.rb', line 70 def need_autogen? need_autogen end |
#need_autoreconf? ⇒ Boolean
74 75 76 |
# File 'lib/gnome2/rake/external-package.rb', line 74 def need_autoreconf? need_autoreconf end |