phashion 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +7 -0
- data/Gemfile +2 -0
- data/README.md +11 -0
- data/Rakefile +1 -1
- data/ext/phashion_ext/extconf.rb +5 -4
- data/ext/phashion_ext/pHash-0.9.6.tar.gz +0 -0
- data/lib/phashion.rb +1 -1
- data/phashion.gemspec +1 -1
- metadata +12 -6
- data/ext/phashion_ext/pHash-0.9.3.tar.gz +0 -0
data/CHANGES.md
CHANGED
data/Gemfile
ADDED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/ext/phashion_ext/extconf.rb
CHANGED
@@ -9,6 +9,7 @@ $libraries = " -L#{HERE}/lib"
|
|
9
9
|
$LIBPATH = ["#{HERE}/lib"]
|
10
10
|
$CFLAGS = "#{$includes} #{$libraries} #{$CFLAGS}"
|
11
11
|
$LDFLAGS = "#{$libraries} #{$LDFLAGS}"
|
12
|
+
$CXXFLAGS = ' -pthread'
|
12
13
|
|
13
14
|
Dir.chdir(HERE) do
|
14
15
|
if File.exist?("lib")
|
@@ -19,7 +20,7 @@ Dir.chdir(HERE) do
|
|
19
20
|
raise "'#{cmd}' failed" unless system(cmd)
|
20
21
|
|
21
22
|
Dir.chdir(BUNDLE_PATH) do
|
22
|
-
puts(cmd = "env CFLAGS='#{$CFLAGS}' LDFLAGS='#{$LDFLAGS}' ./configure --prefix=#{HERE} --disable-audio-hash --disable-video-hash --disable-shared --with-pic 2>&1")
|
23
|
+
puts(cmd = "env CXXFLAGS='#{$CXXFLAGS}' CFLAGS='#{$CFLAGS}' LDFLAGS='#{$LDFLAGS}' ./configure --prefix=#{HERE} --disable-audio-hash --disable-video-hash --disable-shared --with-pic 2>&1")
|
23
24
|
raise "'#{cmd}' failed" unless system(cmd)
|
24
25
|
|
25
26
|
puts(cmd = "make || true 2>&1")
|
@@ -34,12 +35,12 @@ Dir.chdir(HERE) do
|
|
34
35
|
|
35
36
|
system("rm -rf #{BUNDLE_PATH}") unless ENV['DEBUG'] or ENV['DEV']
|
36
37
|
end
|
37
|
-
|
38
|
+
|
38
39
|
Dir.chdir("#{HERE}/lib") do
|
39
40
|
system("cp -f libpHash.a libpHash_gem.a")
|
40
41
|
system("cp -f libpHash.la libpHash_gem.la")
|
41
42
|
end
|
42
|
-
$LIBS = " -lpthread -lpHash_gem -lstdc++ -ljpeg"
|
43
|
+
$LIBS = " -lpthread -lpHash_gem -lstdc++ -ljpeg -lpng"
|
43
44
|
end
|
44
45
|
|
45
|
-
create_makefile 'phashion_ext'
|
46
|
+
create_makefile 'phashion_ext'
|
Binary file
|
data/lib/phashion.rb
CHANGED
data/phashion.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phashion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: 0.7.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.7.0
|
25
30
|
description: Simple wrapper around the pHash library
|
26
31
|
email: mperham@gmail.com
|
27
32
|
executables: []
|
@@ -32,11 +37,12 @@ files:
|
|
32
37
|
- .document
|
33
38
|
- .gitignore
|
34
39
|
- CHANGES.md
|
40
|
+
- Gemfile
|
35
41
|
- LICENSE
|
36
42
|
- README.md
|
37
43
|
- Rakefile
|
38
44
|
- ext/phashion_ext/extconf.rb
|
39
|
-
- ext/phashion_ext/pHash-0.9.
|
45
|
+
- ext/phashion_ext/pHash-0.9.6.tar.gz
|
40
46
|
- ext/phashion_ext/phashion_ext.c
|
41
47
|
- lib/phashion.rb
|
42
48
|
- phashion.gemspec
|
@@ -73,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
79
|
version: '0'
|
74
80
|
requirements: []
|
75
81
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.8.
|
82
|
+
rubygems_version: 1.8.23
|
77
83
|
signing_key:
|
78
84
|
specification_version: 3
|
79
85
|
summary: Simple wrapper around the pHash library
|
Binary file
|