luban 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fa7543e21ed502b6c3f17e0f20ab595dab79d07
4
- data.tar.gz: 9b50ec645632e5dbd37410d53344d7361efc58d8
3
+ metadata.gz: d5bfdac90e3be004eaf61bb816f54479a51592a3
4
+ data.tar.gz: 479bbe9ed933df387977557a5a28ad2138f0d017
5
5
  SHA512:
6
- metadata.gz: 2b1b189f6a2e92c9d35ec54ce9741c8bb24ed0bfdb296a86cd97f5e137b0ac87901ac74c88703ce7d99eb16f4ac2f61b57f6c185878c4913701003f0b7b1e238
7
- data.tar.gz: 476d325cfe19580c92574a4461b58a917486ac546857830b1b25b5be4b21647c69fd9463d3cf246319a26c31bc18f30e641906c3b14e741a9f858dace56afcf0
6
+ metadata.gz: b4851bb38fa007fd4aa7aa74aafea3dc08a1d79ebb04370d991ead74ac6b842d1f51f329aced85f698f132c11c33e4ad36504eda0be4002c30c7275eaf58e2f3
7
+ data.tar.gz: 0ee3f50877b21a2f8fd85bb9dde6f4b82a47d9240af3a9f9431f9a33e5262bb030130afab0af2ba0e2a536c21d0ef5602288e5f29902a986ab2190b4a052fa75
data/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Change log
2
2
 
3
- ## Version 0.11.2 (Jan 06, 2017)
3
+ ## Version 0.11.3 (Jan 09, 2017)
4
4
 
5
5
  Minor enhancements:
6
6
  * Separated package installations by application instead of by project
7
+ * Enhanced the Curl package configure to set a hard-coded path to the run-time linker for SSL
8
+ * Enhanced Git installation:
9
+ * Added package dependency of Curl and an install option to specify Curl version
10
+ * Added install switch, #install_tcltk, to turn on/off tcltk installation (default: off)
11
+ * Turned off localization for Git installation (NO_GETTEXT=1)
12
+
13
+ Bug fixes:
14
+ * Corrected the long descriptions for package provision commands
7
15
 
8
16
  ## Version 0.11.1 (Jan 04, 2017)
9
17
 
@@ -230,6 +230,7 @@ module Luban
230
230
  commands[:provision].alter do
231
231
  task :install do
232
232
  desc "Install a given version"
233
+ long_desc "Install a given version in #{_package.parent.class.name}"
233
234
  option :version, "Version to install", short: :v, required: true,
234
235
  assure: ->(v){ _package.versions.include?(v) }
235
236
  switch :force, "Force to install", short: :f
@@ -238,12 +239,14 @@ module Luban
238
239
 
239
240
  task :install_all do
240
241
  desc "Install all versions"
242
+ long_desc "Install all versions in #{_package.parent.class.name}"
241
243
  switch :force, "Force to install", short: :f
242
244
  action! :install_all
243
245
  end
244
246
 
245
247
  task :uninstall do
246
248
  desc "Uninstall a given version"
249
+ long_desc "Uninstall a given version in #{_package.parent.class.name}"
247
250
  option :version, "Version to uninstall", short: :v, required: true,
248
251
  assure: ->(v){ _package.versions.include?(v) }
249
252
  switch :force, "Force to uninstall", short: :f
@@ -252,6 +255,7 @@ module Luban
252
255
 
253
256
  task :uninstall_all do
254
257
  desc "Uninstall all versions"
258
+ long_desc "Uninstall all versions in #{_package.parent.class.name}"
255
259
  switch :force, "Force to uninstall", short: :f, required: true
256
260
  action! :uninstall_all
257
261
  end
@@ -29,7 +29,8 @@ module Luban
29
29
  if osx?
30
30
  @configure_opts << "--with-darwinssl"
31
31
  else
32
- @configure_opts << "--with-ssl=\"#{dir} -Wl,-rpath -Wl,#{dir.join('lib')}\""
32
+ @configure_opts << "--with-ssl=\"#{dir}\""
33
+ @configure_opts << "LDFLAGS=\"-Wl,-rpath -Wl,#{dir.join('lib')}\""
33
34
  end
34
35
  end
35
36
  end
@@ -5,6 +5,7 @@ module Luban
5
5
  apply_to :all do
6
6
  before_install do
7
7
  depend_on 'openssl', version: '1.0.2j'
8
+ depend_on 'curl', version: '7.52.1'
8
9
  end
9
10
  end
10
11
 
@@ -12,10 +13,16 @@ module Luban
12
13
 
13
14
  def setup_provision_tasks
14
15
  super
16
+ provision_tasks[:install].switch :install_tcltk, "Install with TclTk"
15
17
  provision_tasks[:install].option :openssl, "OpenSSL version"
18
+ provision_tasks[:install].option :curl, "Curl version"
16
19
  end
17
20
 
18
21
  class Installer < Luban::Deployment::Package::Installer
22
+ def install_tcltk?
23
+ task.opts.install_tcltk
24
+ end
25
+
19
26
  define_executable 'git'
20
27
 
21
28
  def source_repo
@@ -35,6 +42,25 @@ module Luban
35
42
  def with_openssl_dir(dir)
36
43
  @configure_opts << "--with-openssl=#{dir}"
37
44
  end
45
+
46
+ def with_curl_dir(dir)
47
+ @configure_opts << "--with-curl=#{dir}"
48
+ end
49
+
50
+ protected
51
+
52
+ def configure_build_options
53
+ super
54
+ @configure_opts << "--without-tcltk" unless install_tcltk?
55
+ end
56
+
57
+ def make_package!
58
+ test(:make, "NO_GETTEXT=1 >> #{install_log_file_path} 2>&1")
59
+ end
60
+
61
+ def install_package!
62
+ test(:make, "NO_GETTEXT=1 install >> #{install_log_file_path} 2>&1")
63
+ end
38
64
  end
39
65
  end
40
66
  end
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.11.2"
3
+ VERSION = "0.11.3"
4
4
  end
5
5
  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.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli