polarssl 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3151e14eaa1f68b05092381044fb9300f9ccb927
4
- data.tar.gz: a0fa9aa7e512d809ee9b1b6340eca20f3b5721a7
3
+ metadata.gz: 2a7a78212d71fa3bd4edcd2c246852d8ea61d212
4
+ data.tar.gz: 925252979ac911282e1f8657bcf383c6202c7b4e
5
5
  SHA512:
6
- metadata.gz: 9a9376f1667ad47a5f5797aced7ec84bc597b52d21c90393d644c27fd0879e515556511a510b86ddce3a8ad46291134fb2db13deeea8fb87f72973c1a5d03795
7
- data.tar.gz: 957c21527e3ccb2d45b8cf285201e38573a69d93c8bf1eb49b40da24192d577d3dc9cee2fb632944ee821f120689ce3af89a2321f285972770f5057c525e79d9
6
+ metadata.gz: 3db3bda0a72377d535c3cc832eb2750684a361f8e56e71ea364acb4ed7cedbe55c8616da795de4574d25f1b10a3c48de06670a6677005d7cdaa282293ce3e054
7
+ data.tar.gz: 495bc62b8454626b9dc7d274c2d213233bdbdc825468bdae54b20339b3319cd65e0dc2fc1efa0c31483b368bd6808fc81dbf57bcb8d63778046cc6d2464d048d
@@ -2,6 +2,39 @@ require 'mkmf'
2
2
 
3
3
  $CFLAGS = "-g -Wall -Wdeclaration-after-statement " + $CFLAGS
4
4
 
5
+ LIBDIR = RbConfig::CONFIG['libdir']
6
+ INCLUDEDIR = RbConfig::CONFIG['includedir']
7
+
8
+ HEADER_DIRS = [
9
+ # First search /opt/local for macports
10
+ '/opt/local/include',
11
+
12
+ # Then search /usr/local for people that installed from source
13
+ '/usr/local/include',
14
+
15
+ # Check the ruby install locations
16
+ INCLUDEDIR,
17
+
18
+ # Finally fall back to /usr
19
+ '/usr/include',
20
+ ]
21
+
22
+ LIB_DIRS = [
23
+ # First search /opt/local for macports
24
+ '/opt/local/lib',
25
+
26
+ # Then search /usr/local for people that installed from source
27
+ '/usr/local/lib',
28
+
29
+ # Check the ruby install locations
30
+ LIBDIR,
31
+
32
+ # Finally fall back to /usr
33
+ '/usr/lib',
34
+ ]
35
+
36
+ dir_config('polarssl', HEADER_DIRS, LIB_DIRS)
37
+
5
38
  unless find_header('polarssl/entropy.h')
6
39
  abort "libpolarssl is missing. please install libpolarssl"
7
40
  end
@@ -1,5 +1,5 @@
1
1
  module PolarSSL
2
2
 
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polarssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michiel Sikkes