polarssl 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/ext/polarssl/extconf.rb +33 -0
- data/lib/polarssl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a7a78212d71fa3bd4edcd2c246852d8ea61d212
|
4
|
+
data.tar.gz: 925252979ac911282e1f8657bcf383c6202c7b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db3bda0a72377d535c3cc832eb2750684a361f8e56e71ea364acb4ed7cedbe55c8616da795de4574d25f1b10a3c48de06670a6677005d7cdaa282293ce3e054
|
7
|
+
data.tar.gz: 495bc62b8454626b9dc7d274c2d213233bdbdc825468bdae54b20339b3319cd65e0dc2fc1efa0c31483b368bd6808fc81dbf57bcb8d63778046cc6d2464d048d
|
data/ext/polarssl/extconf.rb
CHANGED
@@ -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
|
data/lib/polarssl/version.rb
CHANGED