mediainfo-native 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mediainfo_native/extconf.rb +22 -14
- data/lib/mediainfo-native/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2aa4009aef0400d8a9633994d9ab7906178516
|
4
|
+
data.tar.gz: 6845a11a4d7b43a0db6654c963fc31ac5df24db4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2017198f63938bae28bfd6acd118b71d6577929784f19d6340799112814996b0555a8da19d18de467100b7335b99f9202814a3289d0bfd88d575299c03ad1225
|
7
|
+
data.tar.gz: 62816d19a8bebe7112dee3c864b832a58e64019f45be42e041387827899861fce757967c6edf8f7eae6d64864bf9d39c53dbd54ece6a4790b079f727dc39370f
|
@@ -1,20 +1,28 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
-
|
4
|
-
abort 'Failed to locate pkg-config file for libmediainfo.'
|
5
|
-
end
|
3
|
+
if (mediainfo_cfg = pkg_config('libmediainfo'))
|
6
4
|
|
7
|
-
unless have_library('mediainfo')
|
8
|
-
|
9
|
-
end
|
5
|
+
unless have_library('mediainfo')
|
6
|
+
abort 'Failed to test-link against libmediainfo.'
|
7
|
+
end
|
10
8
|
|
11
|
-
non_std_location = mediainfo_cfg.detect { |flag| flag =~ /^-L/ }
|
12
|
-
if non_std_location
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
9
|
+
non_std_location = mediainfo_cfg.detect { |flag| flag =~ /^-L/ }
|
10
|
+
if non_std_location
|
11
|
+
non_std_location.gsub!('-L', '')
|
12
|
+
$LDFLAGS << " -Wl,-rpath,#{non_std_location}"
|
13
|
+
message "embedding path to library into libmediainfo.so: #{non_std_location}\n"
|
14
|
+
end
|
17
15
|
|
18
|
-
with_cppflags("#{(mediainfo_cfg.detect { |flag| flag =~ /^-I/ })}") do
|
19
|
-
|
16
|
+
with_cppflags("#{(mediainfo_cfg.detect { |flag| flag =~ /^-I/ })}") do
|
17
|
+
create_makefile('mediainfo_native')
|
18
|
+
end
|
19
|
+
else
|
20
|
+
unless have_library('mediainfo')
|
21
|
+
abort 'Failed to test-link against libmediainfo.'
|
22
|
+
end
|
23
|
+
|
24
|
+
with_cppflags("-lmediainfo") do
|
25
|
+
create_makefile('mediainfo_native')
|
26
|
+
end
|
20
27
|
end
|
28
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediainfo-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FlavourSys Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -86,9 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.5.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Native bindings for mediainfo
|
93
93
|
test_files: []
|
94
|
-
has_rdoc:
|