evm 0.5.0 → 0.6.0

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: 13a5a9149fe400f73aeb715fc43cbbb31ded08a9
4
- data.tar.gz: 7db71b07208513beed70065fe6910e992874721e
3
+ metadata.gz: 37de7d47e3e591a3013fac97cb8a8739aa708a78
4
+ data.tar.gz: d0c62717a3dfa663eff53cd1397775fc2651df4a
5
5
  SHA512:
6
- metadata.gz: 72aff3b015125dfae9e08fc6d171969c45ef87dd330feea56735745c7ec7ee1dc4254ec320cc229d6bb7164984a93f8316fdc5703c0e0727a80e1d21de94d0ce
7
- data.tar.gz: ca61e3a66136f9fc3490328ceeea4d4922a6de71d8210b7533f72b2dc71821d00e362930af7f31fd5951a2ec42b3dc5d4c25f98d7b21da0fb5627c99999698ee
6
+ metadata.gz: a7da5812d31c1a0c80868b6597733e9217c51637a3dfea6100157f67766f0a6f2850115b10c99e7d00e9d065686dfc8cfe90c508cd7438565f26d497950af4ad
7
+ data.tar.gz: 12a231362cd678c3aff52148e6faf94ef24a5ec105e4de462eb7e01b084257251ecb1c045da60afc48509ab9e497652a9bc1546f175c4c9963a8d9df0e286f91
data/lib/evm.rb CHANGED
@@ -28,6 +28,7 @@ COMMANDS:
28
28
 
29
29
  OPTIONS:
30
30
  --force Force install even when already installed
31
+ --use Select as current package after installing
31
32
  --skip Ignore if already installed
32
33
  --help, -h Display this help message
33
34
  EOS
@@ -32,8 +32,10 @@ module Evm
32
32
  end
33
33
  progress_bar.done
34
34
 
35
+ FileUtils.mkdir(build_path)
36
+
35
37
  tar_file = Evm::TarFile.new(tar_file_path)
36
- tar_file.extract(builds_path)
38
+ tar_file.extract(builds_path, @name)
37
39
  end
38
40
 
39
41
  def osx(&block)
@@ -1,6 +1,7 @@
1
1
  require 'uri'
2
2
  require 'thread'
3
3
  require 'net/http'
4
+ require 'openssl'
4
5
 
5
6
  module Evm
6
7
  class RemoteFile
@@ -44,6 +45,10 @@ module Evm
44
45
  uri = URI.parse(url)
45
46
 
46
47
  http = Net::HTTP.new(uri.host, uri.port)
48
+ if uri.scheme == 'https'
49
+ http.use_ssl = true
50
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
51
+ end
47
52
  http.request_get(uri.path) do |response|
48
53
  case response
49
54
  when Net::HTTPSuccess
@@ -4,8 +4,21 @@ module Evm
4
4
  @tar_file = tar_file
5
5
  end
6
6
 
7
- def extract(extract_to)
8
- tar '-xzf', @tar_file, '-C', extract_to
7
+ def extract(extract_to, name = nil)
8
+ args = []
9
+ args << '-xzf'
10
+ args << @tar_file
11
+ args << '-C'
12
+
13
+ if name
14
+ args << File.join(extract_to, name)
15
+ args << '--strip-components'
16
+ args << '1'
17
+ else
18
+ args << extract_to
19
+ end
20
+
21
+ tar(*args)
9
22
  end
10
23
 
11
24
  private
@@ -1,5 +1,5 @@
1
1
  recipe 'emacs-23.4-bin' do
2
- tar_gz 'http://s3.amazonaws.com/emacs-evm/emacs-23.4-%s.tar.gz' % platform_name
2
+ tar_gz 'https://github.com/rejeep/evm-bin/raw/master/emacs-23.4-%s.tar.gz' % platform_name
3
3
 
4
4
  install do
5
5
  copy build_path, installations_path
@@ -12,6 +12,7 @@ recipe 'emacs-23.4' do
12
12
 
13
13
  option '--prefix', installation_path
14
14
  option "--with-crt-dir=#{crt_dir}"
15
+ option '--without-gif'
15
16
  end
16
17
 
17
18
  install do
@@ -1,5 +1,5 @@
1
1
  recipe 'emacs-24.1-bin' do
2
- tar_gz 'http://s3.amazonaws.com/emacs-evm/emacs-24.1-%s.tar.gz' % platform_name
2
+ tar_gz 'https://github.com/rejeep/evm-bin/raw/master/emacs-24.1-%s.tar.gz' % platform_name
3
3
 
4
4
  install do
5
5
  copy build_path, installations_path
@@ -9,6 +9,7 @@ recipe 'emacs-24.1' do
9
9
 
10
10
  linux do
11
11
  option '--prefix', installation_path
12
+ option '--without-gif'
12
13
  end
13
14
 
14
15
  install do
@@ -1,5 +1,5 @@
1
1
  recipe 'emacs-24.2-bin' do
2
- tar_gz 'http://s3.amazonaws.com/emacs-evm/emacs-24.2-%s.tar.gz' % platform_name
2
+ tar_gz 'https://github.com/rejeep/evm-bin/raw/master/emacs-24.2-%s.tar.gz' % platform_name
3
3
 
4
4
  install do
5
5
  copy build_path, installations_path
@@ -9,6 +9,7 @@ recipe 'emacs-24.2' do
9
9
 
10
10
  linux do
11
11
  option '--prefix', installation_path
12
+ option '--without-gif'
12
13
  end
13
14
 
14
15
  install do
@@ -1,5 +1,5 @@
1
1
  recipe 'emacs-24.3-bin' do
2
- tar_gz 'http://s3.amazonaws.com/emacs-evm/emacs-24.3-%s.tar.gz' % platform_name
2
+ tar_gz 'https://github.com/rejeep/evm-bin/raw/master/emacs-24.3-%s.tar.gz' % platform_name
3
3
 
4
4
  install do
5
5
  copy build_path, installations_path
@@ -9,6 +9,7 @@ recipe 'emacs-24.3' do
9
9
 
10
10
  linux do
11
11
  option '--prefix', installation_path
12
+ option '--without-gif'
12
13
  end
13
14
 
14
15
  install do
@@ -0,0 +1,7 @@
1
+ recipe 'emacs-24.4-bin' do
2
+ tar_gz 'https://github.com/rejeep/evm-bin/raw/master/emacs-24.4-%s.tar.gz' % platform_name
3
+
4
+ install do
5
+ copy build_path, installations_path
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ recipe 'emacs-24.4' do
2
+ tar_gz 'http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.gz'
3
+
4
+ osx do
5
+ option '--with-ns'
6
+ option '--without-x'
7
+ option '--without-dbus'
8
+ end
9
+
10
+ linux do
11
+ option '--prefix', installation_path
12
+ option '--without-gif'
13
+ end
14
+
15
+ install do
16
+ configure
17
+ make 'bootstrap'
18
+ make 'install'
19
+
20
+ osx do
21
+ copy File.join(build_path, 'nextstep', 'Emacs.app'), installation_path
22
+ end
23
+ end
24
+ end
@@ -9,6 +9,7 @@ recipe 'emacs-git-snapshot' do
9
9
 
10
10
  linux do
11
11
  option '--prefix', installation_path
12
+ option '--without-gif'
12
13
  end
13
14
 
14
15
  install do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Andersson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-16 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: EVM is a command-line tool that allows you to install multiple Emacs
14
14
  versions.
@@ -43,6 +43,8 @@ files:
43
43
  - recipes/emacs-24.2.rb
44
44
  - recipes/emacs-24.3-bin.rb
45
45
  - recipes/emacs-24.3.rb
46
+ - recipes/emacs-24.4-bin.rb
47
+ - recipes/emacs-24.4.rb
46
48
  - recipes/emacs-git-snapshot.rb
47
49
  homepage: http://github.com/rejeep/evm
48
50
  licenses:
@@ -64,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
66
  version: '0'
65
67
  requirements: []
66
68
  rubyforge_project:
67
- rubygems_version: 2.2.1
69
+ rubygems_version: 2.2.2
68
70
  signing_key:
69
71
  specification_version: 4
70
72
  summary: Emacs Version Manager