potracer 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. data/ext/potracer/extconf.rb +12 -4
  2. metadata +2 -2
@@ -2,10 +2,18 @@ require 'mkmf'
2
2
 
3
3
  RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
4
4
 
5
- extension_name = 'potracer/potracer'
5
+ LIBDIR = RbConfig::CONFIG['libdir']
6
+ INCLUDEDIR = RbConfig::CONFIG['includedir']
6
7
 
7
- raise "potracelib.h not found" unless have_header('potracelib.h')
8
- raise "lib potrace not found" unless have_library('potrace', 'potrace_version')
8
+ HEADER_DIRS = ['/opt/local/include', '/usr/local/include', INCLUDEDIR,
9
+ '/usr/include']
10
+
11
+ LIB_DIRS = ['/opt/local/lib', '/usr/local/lib', LIBDIR, '/usr/lib']
12
+
13
+ dir_config('potrace', HEADER_DIRS, LIB_DIRS)
14
+
15
+ abort "potracelib.h not found" unless find_header('potracelib.h')
16
+ abort "lib potrace not found" unless find_library('potrace', 'potrace_version')
9
17
 
10
18
  create_header
11
- create_makefile(extension_name)
19
+ create_makefile('potracer/potracer')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-10 00:00:00.000000000 Z
12
+ date: 2013-03-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby bindings for the potrace library.
15
15
  email: k.parnell@gmail.com