Top Level Namespace

Defined Under Namespace

Classes: UCL

Constant Summary collapse

LIBUCL_VERSION =

Pinned libucl (vstakhov’s Universal Configuration Language parser) used when the library has to be built from source. NOTE: this is not the Debian ‘libucl-dev` package, which is an unrelated compression library.

'0.9.4'
LIBUCL_SHA256 =
'319d8ff13441f55d91cd7f3708a54bd03779733e26958c2346c5109014520aaf'

Instance Method Summary collapse

Instance Method Details

#system_libuclObject

Locate a system-wide libucl: pkg-config first, then the usual prefixes.



17
18
19
20
21
22
# File 'ext/extconf.rb', line 17

def system_libucl
  return true if pkg_config('libucl')

  find_header( 'ucl.h',                 '/opt/include', '/usr/local/include') &&
    find_library('ucl', 'ucl_parser_new', '/opt/lib',     '/usr/local/lib')
end