gpgme-ffi 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,11 @@ clean:
19
19
  rm -f ${BUILD}/libgpgme_gem.so ${BUILD}/enums.rb
20
20
 
21
21
  ${BUILD}/libgpgme_gem.so: ${BUILD}/libgpgme_ext.a ${BUILD}/libgpg-error_ext.a ${BUILD}/libassuan_ext.a
22
+ <% if RUBY_PLATFORM =~ /darwin/ %>
23
+ gcc -shared -o $@ -Wl,-force_load,${BUILD}/libgpgme_ext.a ${BUILD}/libgpg-error_ext.a ${BUILD}/libassuan_ext.a
24
+ <% else %>
22
25
  gcc -s -shared -o $@ -Wl,--whole-archive ${BUILD}/libgpgme_ext.a -Wl,--no-whole-archive ${BUILD}/libgpg-error_ext.a ${BUILD}/libassuan_ext.a
26
+ <% end %>
23
27
 
24
28
  ${BUILD}/%_ext.a: ${PREFIX}/lib/%.a
25
29
  cp $< $@
data/ext/gpgme/extconf.rb CHANGED
@@ -4,5 +4,13 @@ BUILD = Dir::pwd
4
4
  SRC = File.expand_path(File.dirname(__FILE__))
5
5
  PREFIX = "#{BUILD}/dst"
6
6
 
7
+ if !system("gpg", "--version")
8
+ STDERR.puts "GPG is not available. Please read README first."
9
+ STDERR.puts "tl;dr: install gpg and gpg-agent."
10
+ exit 1
11
+ end
12
+
13
+ system "gpg-agent", "--version"
14
+
7
15
  template = ERB.new File.read("#{SRC}/Makefile.in")
8
16
  File.write "#{BUILD}/Makefile", template.result(binding)
@@ -3,7 +3,7 @@ require 'ffi'
3
3
  module GPGME::Library
4
4
  extend FFI::Library
5
5
 
6
- ffi_lib 'libgpgme.so.11'
6
+ ffi_lib File.dirname(File.expand_path(__FILE__)) + "/../../../ext/gpgme/libgpgme_gem.so"
7
7
 
8
8
  class SigNotation < FFI::Struct
9
9
  layout :next, :pointer,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpgme-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-11-23 00:00:00.000000000 Z
14
+ date: 2012-11-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ffi
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  segments:
186
186
  - 0
187
- hash: 1426089764170212877
187
+ hash: -4515840276405635297
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  segments:
195
195
  - 0
196
- hash: 1426089764170212877
196
+ hash: -4515840276405635297
197
197
  requirements: []
198
198
  rubyforge_project: ruby-gpgme
199
199
  rubygems_version: 1.8.24