Class: GNOME::Rake::Package
- Inherits:
-
Object
- Object
- GNOME::Rake::Package
- Defined in:
- lib/gnome/rake/package.rb
Defined Under Namespace
Classes: NativeConfiguration, WindowsConfiguration
Instance Attribute Summary collapse
- #external_packages ⇒ Object
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#native ⇒ Object
readonly
Returns the value of attribute native.
-
#root_dir ⇒ Object
readonly
Returns the value of attribute root_dir.
-
#windows ⇒ Object
readonly
Returns the value of attribute windows.
Instance Method Summary collapse
- #download_dir ⇒ Object
- #glib2_root_dir ⇒ Object
-
#initialize(name, root_dir) ⇒ Package
constructor
A new instance of Package.
- #patches_dir ⇒ Object
- #project_root_dir ⇒ Object
- #tmp_dir ⇒ Object
Constructor Details
#initialize(name, root_dir) ⇒ Package
Returns a new instance of Package.
29 30 31 32 33 34 35 |
# File 'lib/gnome/rake/package.rb', line 29 def initialize(name, root_dir) @name = name @root_dir = Pathname.new(root_dir). @windows = WindowsConfiguration.new @native = NativeConfiguration.new @external_packages = [] end |
Instance Attribute Details
#external_packages ⇒ Object
57 58 59 60 61 |
# File 'lib/gnome/rake/package.rb', line 57 def external_packages @external_packages.collect do |package| ExternalPackage.new(package) end end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/gnome/rake/package.rb', line 24 def name @name end |
#native ⇒ Object (readonly)
Returns the value of attribute native.
27 28 29 |
# File 'lib/gnome/rake/package.rb', line 27 def native @native end |
#root_dir ⇒ Object (readonly)
Returns the value of attribute root_dir.
25 26 27 |
# File 'lib/gnome/rake/package.rb', line 25 def root_dir @root_dir end |
#windows ⇒ Object (readonly)
Returns the value of attribute windows.
26 27 28 |
# File 'lib/gnome/rake/package.rb', line 26 def windows @windows end |
Instance Method Details
#download_dir ⇒ Object
49 50 51 |
# File 'lib/gnome/rake/package.rb', line 49 def download_dir tmp_dir + "download" end |
#glib2_root_dir ⇒ Object
41 42 43 |
# File 'lib/gnome/rake/package.rb', line 41 def glib2_root_dir project_root_dir + "glib2" end |
#patches_dir ⇒ Object
53 54 55 |
# File 'lib/gnome/rake/package.rb', line 53 def patches_dir @root_dir + "patches" end |
#project_root_dir ⇒ Object
37 38 39 |
# File 'lib/gnome/rake/package.rb', line 37 def project_root_dir @root_dir.parent end |
#tmp_dir ⇒ Object
45 46 47 |
# File 'lib/gnome/rake/package.rb', line 45 def tmp_dir @root_dir + "tmp" end |