epeg 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/epeg.gemspec +1 -1
  3. data/extconf.rb +8 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df65888e158826e87704153d6bf2f35fd900507258763e44c62eb0a4de7a879b
4
- data.tar.gz: 71281cff7e63d6e1d2f70f2185cc75a554e5ea871cce6982bb6aa4526e9d0442
3
+ metadata.gz: b99ffd715654aad67067d94451e076bd9c71191cbea5181fa50b0e0a516af6e1
4
+ data.tar.gz: 66c3397e042811da162e59ab24d58cae6c3961cc5326c1c7e3a01473d868cdf0
5
5
  SHA512:
6
- metadata.gz: bcc654a8f5bd6f5366dbb5775cd6d67fe704ddcb20581f71306130708b8cecdda81e8998dfd72b767daa5c69197baf95dd29d1b84cd633ce29d6a92b406fb0d7
7
- data.tar.gz: bd96a229102d3d7df535830b316826a0ca155380084368a2f02fc4ef64776ff37dbfd16e7d1b4153c264225e422fd98307d684bffa7a2fddff5632123c979911
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
- unless have_library 'epeg' and have_header 'Epeg.h'
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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epeg
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aria Stewart