swishe 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/extconf.rb +11 -0
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da0a08886033bc0389fef7019042db6b1c4f5fb1
4
- data.tar.gz: 9e3066e4787321d8c66e2bad9aed6980153e3d57
3
+ metadata.gz: ff0a94cb7a81e3b5e869646fd59f0457174c3424
4
+ data.tar.gz: db2d8ceb174e62679b4f2f5fc33015de1a1d4885
5
5
  SHA512:
6
- metadata.gz: a519bee897f41a0b52997d4a4cbff10f0c461ff3c768ae3cf1831eca74dc3ff37d3542519d88ec6905b8c1b6d44901e09465538814f963c1a5a867d65d08f321
7
- data.tar.gz: af456461c5b9bc7815cea4b548b68dcb354e027e13fb496ab704f9f7261edf959e75996111bb2878a428f6a63aac6423e60623eb3a68674b5e1fcd8b499862c9
6
+ metadata.gz: ba86be43abc16d3fd7540d47ac74b31d4d534432ee323851f1c89aeaa4e6911a2448dcf480a85cc3fd17ab1f63f12b6545f7dcae128da91aa8403220baa46df9
7
+ data.tar.gz: 6eb8118025a56a855b85af07ed6f16179f65deee06fe3cf1e7b83a2dbcdf4106bc00ea241064b40662819f875f8977cdbfd774b9038a900f25206c58641d1ddb
@@ -3,8 +3,19 @@
3
3
  # ruby setup.rb all -- --with-swishe-dir=/opt/swishe/2.4.3
4
4
  require 'mkmf'
5
5
 
6
+ # pkg_config("swish") (with no options) seems to assume that
7
+ # lib-only-1 is defined by the -config script, which wasn't
8
+ # the case for me.
9
+ cfl = pkg_config("swish", 'cflags')
10
+ ldfl = pkg_config("swish", 'libs')
11
+ # puts "cfl: #{cfl}"
12
+ # puts "ldfl: #{ldfl}"
13
+ $CFLAGS += " " << cfl
14
+ $LDFLAGS += " " << ldfl
15
+ # puts "dir config..."
6
16
  dir_config "swishe"
7
17
  if have_header("swish-e.h") and have_library('swish-e')
18
+ # puts "creating makefile..."
8
19
  create_makefile('swishe_base')
9
20
  else
10
21
  puts "error creating makefile"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swishe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Gundlach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-05 00:00:00.000000000 Z
12
+ date: 2016-12-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Wrapper around libswish, a text indexing system.
15
15
  email:
@@ -42,6 +42,7 @@ rdoc_options:
42
42
  - swish-e ruby bindings documentation
43
43
  require_paths:
44
44
  - lib
45
+ - ext
45
46
  required_ruby_version: !ruby/object:Gem::Requirement
46
47
  requirements:
47
48
  - - ">="
@@ -59,5 +60,5 @@ signing_key:
59
60
  specification_version: 4
60
61
  summary: Ruby bindings for swish-e.
61
62
  test_files:
62
- - test/unittest.rb
63
63
  - test/tc_swishe.rb
64
+ - test/unittest.rb