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 +1 -1
- data/ext/charlock_holmes/extconf.rb +13 -15
- data/lib/charlock_holmes/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
|
@@ -17,24 +17,22 @@ if `which make`.strip.empty?
|
|
|
17
17
|
exit(1)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
|
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:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.6.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Brian Lopez
|