ds9 1.3.1 → 1.3.2

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: 675cfb91dad1dd9337150425144870db64e880c9
4
- data.tar.gz: 31fa19e3c643ce1a425cb7c97b2fa6e145fb69d4
3
+ metadata.gz: 7d1307bab77f71b4e8537c8e52c5e4453915b96e
4
+ data.tar.gz: 1400ff9e11b55fd9a6f0b84be288cdcb6d481e4b
5
5
  SHA512:
6
- metadata.gz: 5023590043ecd16dc8f9f004cb7c38e0b479806459c0716e108ba15160f3eb88d8d15fa0349118817aa7414d7878ece680c8dc97059bc102dfb2e13b2fa3b187
7
- data.tar.gz: ed434905dc9b8129f0c812cec3a752b77618a61c157698e46c2d2b3b22221ac1a28145a089d222e31f37258e42221b5cdd9b841589a266e26a12e813e1f12b80
6
+ metadata.gz: 52100d6934a644e841ad5b652dbdac75ccd2013fe7e73c7109a164f859d1338d988c57725967f24a1583cefeddae3c6f4fb488c3a15e53407ea7092e63807439
7
+ data.tar.gz: b5f86b70ed9389e5f05f822b855564ea64cb352646d46a1565eb841d11b58689d5d0e1fd881eb5575867f110cd8a19426a4c8dff45ac23a32b70dfdcf95c23b1
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/extensiontask"
3
+ require "rake/testtask"
3
4
 
4
5
  task default: :compile
5
6
 
@@ -9,4 +10,9 @@ Rake::ExtensionTask.new("ds9") do |t|
9
10
  t.lib_dir = "lib"
10
11
  end
11
12
 
13
+ Rake::TestTask.new('test' => 'compile') do |t|
14
+ t.libs << 'test'
15
+ t.verbose = true
16
+ end
17
+
12
18
  # vim: syntax=ruby
@@ -4,6 +4,8 @@ def using_system_libraries?
4
4
  arg_config('--use-system-libraries', !!ENV['DS9_USE_SYSTEM_LIBRARIES'])
5
5
  end
6
6
 
7
+ dir_config('ds9')
8
+
7
9
  if using_system_libraries?
8
10
  if with_config("static")
9
11
  ldflags = pkg_config 'libnghttp2', 'libs-only-L'
@@ -22,8 +24,7 @@ else
22
24
  require 'rubygems'
23
25
  require 'mini_portile2'
24
26
  recipe = MiniPortile.new('nghttp2', 'v1.34.0')
25
- # We need to compile nghttp2 with `-fPIC` option, so delete `--disable-shared` from MiniPortile#configure_defaults
26
- recipe.configure_options = ['--enable-lib-only', '--enable-static', "--host=#{recipe.host}"]
27
+ recipe.configure_options = recipe.configure_options + ['--with-pic']
27
28
 
28
29
  recipe.files << {
29
30
  url: 'https://github.com/nghttp2/nghttp2/releases/download/v1.34.0/nghttp2-1.34.0.tar.gz',
@@ -34,7 +35,7 @@ else
34
35
  # `recipe.activate` uses invalid path for this package.
35
36
  $LIBPATH = ["#{recipe.path}/lib"] + $LIBPATH
36
37
  $CPPFLAGS << " -I#{recipe.path}/include"
37
- $LIBS << " -lnghttp2 -lstdc++"
38
+ $LIBS << " -lstdc++"
38
39
  end
39
40
 
40
41
  abort 'nghttp2/nghttp2.h not found' unless have_header('nghttp2/nghttp2.h')
@@ -1,3 +1,3 @@
1
1
  module DS9
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds9
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson