mini_portile 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.2.1 / 2011-04-06
2
+
3
+ * Minor enhancements:
4
+ * Provide MiniPortile#path to obtain full path to installation directory. Closes GH-5
5
+
1
6
  === 0.2.0 / 2011-04-05
2
7
 
3
8
  * Enhancements:
data/README.rdoc CHANGED
@@ -95,6 +95,12 @@ bandwidth, save the world).
95
95
 
96
96
  The <tt>tmp</tt> is where compilation is performed and can be safely discarded.
97
97
 
98
+ Don't worry, you don't need to know the path structure by memory, just use recipe's
99
+ <tt>path</tt> to obtain the full path to the installation directory:
100
+
101
+ recipe.cook
102
+ recipe.path # => /home/luis/projects/myapp/ports/i686-linux/libiconv/1.13.1
103
+
98
104
  === How can I combine this with my compilation task?
99
105
 
100
106
  In the simplified proposal, the idea is that using Rake, your <tt>compile</tt>
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require "rubygems/package_task"
4
4
  GEM_SPEC = Gem::Specification.new do |s|
5
5
  # basic information
6
6
  s.name = "mini_portile"
7
- s.version = "0.2.0"
7
+ s.version = "0.2.1"
8
8
  s.platform = Gem::Platform::RUBY
9
9
 
10
10
  # description and details
data/examples/Rakefile CHANGED
@@ -37,6 +37,13 @@ namespace :ports do
37
37
 
38
38
  recipe.activate
39
39
  end
40
+
41
+ desc "Install all ports and display installation location"
42
+ task :all => [:libiconv, :sqlite3] do
43
+ $recipes.each do |_, recipe|
44
+ puts "Artifacts of '#{recipe.name}' in '#{recipe.path}'"
45
+ end
46
+ end
40
47
  end
41
48
 
42
49
  desc "Adjust all recipes host for cross-compilation"
data/lib/mini_portile.rb CHANGED
@@ -116,6 +116,10 @@ class MiniPortile
116
116
  end
117
117
  end
118
118
 
119
+ def path
120
+ File.expand_path(port_path)
121
+ end
122
+
119
123
  private
120
124
 
121
125
  def tmp_path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_portile
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luis Lavena
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-05 00:00:00 -03:00
18
+ date: 2011-04-06 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21