luban 0.10.12 → 0.10.13
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/luban/deployment/packages/ruby.rb +11 -0
- data/lib/luban/deployment/packages/rubygems.rb +2 -2
- data/lib/luban/deployment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2197bc2f1215bc1e7ba625d15b171000605ccb8
|
4
|
+
data.tar.gz: 11600b62a3bab7f21b82b2c6d20bf23540ed88bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b47441615660507a34779ea1dd357f1f0980053bd4ea08de7fb9c1da933975f5d0b2d5978b52f243c2324efe7a0b6724a1ad1853f2865d193ee7bf3c660cdd4
|
7
|
+
data.tar.gz: d0a91157712c0214e88ae92c1edec6a339dc86c27a699bf6422df9d6f681f1870032088158d1d024d49b57c1a27528608f38a088dd4b9b11853276541eef2be9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.10.13 (Dec 17, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Added switch, :install_static, to install static Ruby library
|
7
|
+
* By default, :install_static is turned off
|
8
|
+
* Ruby config switch "--enable-shared" will be added if :install_static is off
|
9
|
+
* Removed static Ruby library manually if :install_static is off
|
10
|
+
|
11
|
+
Bug fixes:
|
12
|
+
* Disabled document generation for Rubygems
|
13
|
+
|
3
14
|
## Version 0.10.12 (Dec 14, 2016)
|
4
15
|
|
5
16
|
Minor enhancements:
|
@@ -72,6 +72,7 @@ module Luban
|
|
72
72
|
def setup_provision_tasks
|
73
73
|
super
|
74
74
|
|
75
|
+
provision_tasks[:install].switch :install_static, "Install static Ruby library"
|
75
76
|
provision_tasks[:install].switch :install_doc, "Install Ruby document"
|
76
77
|
provision_tasks[:install].switch :install_tcl, "Install with Tcl"
|
77
78
|
provision_tasks[:install].switch :install_tk, "Install with Tk"
|
@@ -83,6 +84,10 @@ module Luban
|
|
83
84
|
class Installer < Luban::Deployment::Package::Installer
|
84
85
|
attr_reader :opt_dirs
|
85
86
|
|
87
|
+
def install_static?
|
88
|
+
task.opts.install_static
|
89
|
+
end
|
90
|
+
|
86
91
|
def install_doc?
|
87
92
|
task.opts.install_doc
|
88
93
|
end
|
@@ -129,6 +134,7 @@ module Luban
|
|
129
134
|
def configure_build_options
|
130
135
|
super
|
131
136
|
@configure_opts.unshift("--disable-install-doc") unless install_doc?
|
137
|
+
@configure_opts << "--enable-shared" unless install_static?
|
132
138
|
@configure_opts << "--without-tcl" unless install_tcl?
|
133
139
|
@configure_opts << "--without-tk" unless install_tk?
|
134
140
|
@opt_dirs = []
|
@@ -142,6 +148,7 @@ module Luban
|
|
142
148
|
def after_install
|
143
149
|
super
|
144
150
|
create_symlinks_for_header_files
|
151
|
+
remove_static_library unless install_static?
|
145
152
|
end
|
146
153
|
|
147
154
|
def create_symlinks_for_header_files
|
@@ -163,6 +170,10 @@ module Luban
|
|
163
170
|
end
|
164
171
|
|
165
172
|
def header_file_exists?(file); !!find_header_file(file); end
|
173
|
+
|
174
|
+
def remove_static_library
|
175
|
+
rm(install_path.join('lib', 'libruby-static.a'))
|
176
|
+
end
|
166
177
|
end
|
167
178
|
end
|
168
179
|
end
|
@@ -67,7 +67,7 @@ module Luban
|
|
67
67
|
|
68
68
|
def configure_package!
|
69
69
|
test(ruby_executable,
|
70
|
-
"setup.rb config
|
70
|
+
"setup.rb config >> #{install_log_file_path} 2>&1")
|
71
71
|
end
|
72
72
|
|
73
73
|
def make_package!
|
@@ -77,7 +77,7 @@ module Luban
|
|
77
77
|
|
78
78
|
def install_package!
|
79
79
|
test(ruby_executable,
|
80
|
-
"setup.rb install >> #{install_log_file_path} 2>&1")
|
80
|
+
"setup.rb install #{configure_opts.reject(&:empty?).join(' ')} >> #{install_log_file_path} 2>&1")
|
81
81
|
end
|
82
82
|
|
83
83
|
def update_binstubs!; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Lei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|