libyajl2 0.1.11 → 0.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29a02e90f2ed93b73b6ae8817e3a642a7a95a495
4
- data.tar.gz: 4ae49d8a164cb4dcc0d88028f9abd7149dc2c5e4
3
+ metadata.gz: 045cdc2751b29e72dc1da30230927fb2e934ba36
4
+ data.tar.gz: 0c36421626f666c2cb28355b176f335a02a4e763
5
5
  SHA512:
6
- metadata.gz: 444d1906930e8b87cbd464dce82343f419400f6451d8a47dda4ab9f4ed57643cc38b1ec844aa7ee52497d54a6e4280fd6b241c66360c0f4cf6101d9bb1b0ca88
7
- data.tar.gz: 0681909336a7403320518c81194f544c97225d1a2c4f9964eeffe769fa7671b7c70c1ccefdc0b957c0dffd5aecbe6d887cca8fb269b34fbcebfa7584c5445dca
6
+ metadata.gz: 61edef691e2e26669b391eec893d0cabe6a8cb1a423752dd4fe44764afb37f92a75718f15709a1f139e8541d1ae257652bfbf8111c8dac90c12bd145fdf54a54
7
+ data.tar.gz: b308e30387442302b03b5cda6abe28f667308484fe3b908c2ba76cfc35851494b18a936419befc2f2f924a3e80396563e35726e961be8bb856d7d6e7bae76eda
@@ -34,7 +34,7 @@ module Libyajl2Build
34
34
 
35
35
  # create the implib on windows
36
36
  if windows?
37
- $LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=libyajl.dll.a"
37
+ $LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=yajl.dll.a"
38
38
  end
39
39
  end
40
40
 
@@ -62,15 +62,32 @@ module Libyajl2Build
62
62
  system("make V=1")
63
63
  # ...so we can hack up what install does later and copy over the include files
64
64
 
65
+ # not sure why ruby windows produces .so's instead of .dll's
66
+ if windows?
67
+ FileUtils.mv "libyajl.so", "yajl.dll"
68
+ end
69
+
65
70
  File.open("Makefile", "w+") do |f|
66
71
  f.write <<EOF
67
72
  TARGET = libyajl
68
73
  DLLIB = $(TARGET).#{RbConfig::MAKEFILE_CONFIG['DLEXT']}
69
74
  all:
70
75
 
76
+ EOF
77
+ if windows?
78
+ f.write <<EOF
79
+ install:
80
+ \tmkdir -p #{prefix}/lib
81
+ \tcp yajl.dll #{prefix}/lib/yajl.dll
82
+ \tcp yajl.dll.a #{prefix}/lib/yajl.dll.a
83
+ \tmkdir -p #{prefix}/include/yajl
84
+ \tcp yajl/*.h #{prefix}/include/yajl
85
+ EOF
86
+ else
87
+ f.write <<EOF
71
88
  install:
72
89
  \tmkdir -p #{prefix}/lib
73
- \tcp $(DLLIB) #{prefix}/lib
90
+ \tcp $(DLLIB) #{prefix}/lib/$(DLLIB)
74
91
  \tmkdir -p #{prefix}/include/yajl
75
92
  \tcp yajl/*.h #{prefix}/include/yajl
76
93
  EOF
@@ -1,3 +1,3 @@
1
1
  module Libyajl2
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libyajl2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist