gpgme-ffi 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,11 +19,15 @@ 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 %>
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 %>
22
+ for file in $^; do \
23
+ bn=`basename $$file _ext.a` && \
24
+ rm -rf ${BUILD}/link-$$bn && \
25
+ mkdir ${BUILD}/link-$$bn && \
26
+ cd ${BUILD}/link-$$bn && \
27
+ ar x $$file; \
28
+ done
29
+ gcc -shared -o $@ $(foreach ext,libgpg-error libgpgme libassuan,${BUILD}/link-$(ext)/*.o) -lc
30
+ rm -rf $(addprefix ${BUILD}/link-,libgpg-error libgpgme libassuan)
27
31
 
28
32
  ${BUILD}/%_ext.a: ${PREFIX}/lib/%.a
29
33
  cp $< $@
@@ -48,7 +52,7 @@ ${BUILD}/enums.rb: ${SRC}/extract_enums.rb ${GPG_ERROR}/src/gpg-error.h ${GPGME}
48
52
 
49
53
  install: all
50
54
  if [ "${SRC}" != "${BUILD}" ]; then \
51
- cp ${BUILD}/libgpgme_gem.so ${SRC}/libgpgme_gem.so; \
55
+ cp ${BUILD}/libgpgme_gem.so ${SRC}; \
52
56
  fi
53
57
  cp ${BUILD}/enums.rb ${SRC}/../../lib/gpgme/ffi/enums.rb
54
58
 
@@ -56,4 +60,4 @@ uninstall:
56
60
  if [ "${SRC}" != "${BUILD}" ]; then \
57
61
  rm -f ${SRC}/libgpgme_gem.so; \
58
62
  fi
59
- rm -f ${SRC}/../../lib/gpgme/ffi/enums.rb
63
+ rm -f ${SRC}/../../lib/gpgme/ffi/enums.rb
Binary file
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.1
4
+ version: 3.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  segments:
186
186
  - 0
187
- hash: -4515840276405635297
187
+ hash: -3350640821445930124
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: -4515840276405635297
196
+ hash: -3350640821445930124
197
197
  requirements: []
198
198
  rubyforge_project: ruby-gpgme
199
199
  rubygems_version: 1.8.24