mini_portile 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/README.rdoc +3 -3
- data/Rakefile +1 -1
- data/lib/mini_portile.rb +11 -1
- metadata +2 -2
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -54,9 +54,9 @@ quick example:
|
|
54
54
|
recipe.cook
|
55
55
|
recipe.activate
|
56
56
|
|
57
|
-
That's all. <tt>cook</tt> will download, extract, configure and compile
|
58
|
-
library into a namespaced structure. <tt>activate</tt> ensures GCC find
|
59
|
-
library and prefers it over a system-wide installation.
|
57
|
+
That's all. <tt>cook</tt> will download, extract, patch, configure and compile
|
58
|
+
the library into a namespaced structure. <tt>activate</tt> ensures GCC find
|
59
|
+
this library and prefers it over a system-wide installation.
|
60
60
|
|
61
61
|
=== Structure
|
62
62
|
|
data/Rakefile
CHANGED
data/lib/mini_portile.rb
CHANGED
@@ -8,13 +8,14 @@ require 'digest/md5'
|
|
8
8
|
class MiniPortile
|
9
9
|
attr_reader :name, :version, :original_host
|
10
10
|
attr_writer :configure_options
|
11
|
-
attr_accessor :host, :files, :target, :logger
|
11
|
+
attr_accessor :host, :files, :patch_files, :target, :logger
|
12
12
|
|
13
13
|
def initialize(name, version)
|
14
14
|
@name = name
|
15
15
|
@version = version
|
16
16
|
@target = 'ports'
|
17
17
|
@files = []
|
18
|
+
@patch_files = []
|
18
19
|
@logger = STDOUT
|
19
20
|
|
20
21
|
@original_host = @host = detect_host
|
@@ -34,6 +35,14 @@ class MiniPortile
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
38
|
+
def patch
|
39
|
+
@patch_files.each do |full_path|
|
40
|
+
next unless File.exists?(full_path)
|
41
|
+
output "Running git apply with #{full_path}..."
|
42
|
+
execute('patch', %Q(git apply #{full_path}))
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
37
46
|
def configure_options
|
38
47
|
@configure_options ||= configure_defaults
|
39
48
|
end
|
@@ -87,6 +96,7 @@ class MiniPortile
|
|
87
96
|
def cook
|
88
97
|
download unless downloaded?
|
89
98
|
extract
|
99
|
+
patch
|
90
100
|
configure unless configured?
|
91
101
|
compile
|
92
102
|
install unless installed?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_portile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simplistic port-like solution for developers. It provides a standard
|
15
15
|
and simplified way to compile against dependency libraries without messing up your
|