ds9 1.3.1 → 1.3.2
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/Rakefile +6 -0
- data/ext/ds9/extconf.rb +4 -3
- data/lib/ds9/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: 7d1307bab77f71b4e8537c8e52c5e4453915b96e
|
4
|
+
data.tar.gz: 1400ff9e11b55fd9a6f0b84be288cdcb6d481e4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/ext/ds9/extconf.rb
CHANGED
@@ -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
|
-
|
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 << " -
|
38
|
+
$LIBS << " -lstdc++"
|
38
39
|
end
|
39
40
|
|
40
41
|
abort 'nghttp2/nghttp2.h not found' unless have_header('nghttp2/nghttp2.h')
|
data/lib/ds9/version.rb
CHANGED