epeg 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/epeg.gemspec +1 -1
- data/extconf.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b99ffd715654aad67067d94451e076bd9c71191cbea5181fa50b0e0a516af6e1
|
4
|
+
data.tar.gz: 66c3397e042811da162e59ab24d58cae6c3961cc5326c1c7e3a01473d868cdf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37f1b607bf15d0c0bf2faced5cf19abf18bee481ec54baab368a147df1ad0f7c282aad6eb29aac4be9ae94de4e5adbf30c025479d1d4676525eb727b0fc971b4
|
7
|
+
data.tar.gz: e004f3ad98618672b599d2554a73c2b98ddf67f800443674dbd18f8227c5f48611f1836eac70b7f6653e1661e7d02146098b23848c9763acb59a660cd987f0a4
|
data/epeg.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "epeg"
|
6
|
-
spec.version = 1.0
|
6
|
+
spec.version = "1.0.1"
|
7
7
|
spec.authors = ["Aria Stewart"]
|
8
8
|
spec.email = ["aredridel@dinhe.net"]
|
9
9
|
spec.summary = %q{Ruby extension for the epeg library.}
|
data/extconf.rb
CHANGED
@@ -71,10 +71,17 @@ end
|
|
71
71
|
|
72
72
|
# Prepend the vendored epeg build dir to the $DEFLIBPATH.
|
73
73
|
$DEFLIBPATH.unshift("#{EPEG_DIR}/build")
|
74
|
+
$DEFLIBPATH.unshift("#{EPEG_DIR}/build/libjpeg-prefix/src/libjpeg-build")
|
74
75
|
dir_config('epeg', "#{EPEG_DIR}", "#{EPEG_DIR}/build")
|
75
76
|
|
76
|
-
|
77
|
+
FileUtils.rm("#{EPEG_DIR}/build/libjpeg-prefix/src/libjpeg-build/libjpeg.so")
|
78
|
+
|
79
|
+
unless find_library('jpeg', 'jpeg_read_header', "#{EPEG_DIR}/build/libjpeg-prefix/src/libjpeg-build")
|
80
|
+
abort "ERROR: Failed to build epeg"
|
81
|
+
end
|
82
|
+
unless find_library('epeg', 'epeg_file_open', "#{EPEG_DIR}/build")
|
77
83
|
abort "ERROR: Failed to build epeg"
|
78
84
|
end
|
79
85
|
|
86
|
+
|
80
87
|
create_makefile('epeg')
|