charlock_holmes 0.6.3 → 0.6.4

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- charlock_holmes (0.6.3)
4
+ charlock_holmes (0.6.4)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -17,24 +17,22 @@ if `which make`.strip.empty?
17
17
  exit(1)
18
18
  end
19
19
 
20
- unless File.exists?(CWD + '/libmagic_ext.a')
21
- src = File.basename('file-5.08.tar.gz')
22
- dir = File.basename(src, '.tar.gz')
23
-
24
- Dir.chdir("#{CWD}/src") do
25
- FileUtils.rm_rf(dir) if File.exists?(dir)
26
-
27
- sys("tar zxvf #{src}")
28
- Dir.chdir(dir) do
29
- sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static")
30
- sys("make")
31
- sys("make install")
32
- end
33
- end
20
+ src = File.basename('file-5.08.tar.gz')
21
+ dir = File.basename(src, '.tar.gz')
22
+
23
+ Dir.chdir("#{CWD}/src") do
24
+ FileUtils.rm_rf(dir) if File.exists?(dir)
34
25
 
35
- FileUtils.cp "#{CWD}/dst/lib/libmagic.a", "#{CWD}/libmagic_ext.a"
26
+ sys("tar zxvf #{src}")
27
+ Dir.chdir(dir) do
28
+ sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static --with-pic")
29
+ sys("make")
30
+ sys("make install")
31
+ end
36
32
  end
37
33
 
34
+ FileUtils.cp "#{CWD}/dst/lib/libmagic.a", "#{CWD}/libmagic_ext.a"
35
+
38
36
  $INCFLAGS[0,0] = "-I#{CWD}/dst/include "
39
37
  $LDFLAGS << " -L#{CWD}"
40
38
 
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charlock_holmes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Lopez