File: extconf.rb

package info (click to toggle)
ruby-mecab 0.99.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 336 kB
  • ctags: 494
  • sloc: cpp: 5,600; ruby: 59; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
require 'mkmf'

mecab_config = with_config('mecab-config', 'mecab-config')
use_mecab_config = enable_config('mecab-config')

`mecab-config --libs-only-l`.chomp.split.each { | lib |
  have_library(lib)
}

$CFLAGS += ' ' + `#{mecab_config} --cflags`.chomp

have_header('mecab.h') && create_makefile('MeCab')