From c3c2e8d24475fa00b16e12f566bfe396d54e884c Mon Sep 17 00:00:00 2001 From: Miah Johnson Date: Wed, 21 Mar 2018 10:17:34 -0700 Subject: [PATCH] Add unf_ext configuration to omnibus to allow building against our (#2854) Add unf_ext configuration to omnibus to allow building against our forked unf_ext. Signed-off-by: Miah Johnson --- omnibus/config/software/inspec.rb | 1 + omnibus/config/software/unf_ext.rb | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 omnibus/config/software/unf_ext.rb diff --git a/omnibus/config/software/inspec.rb b/omnibus/config/software/inspec.rb index 8d0492887..bc82cee98 100644 --- a/omnibus/config/software/inspec.rb +++ b/omnibus/config/software/inspec.rb @@ -24,6 +24,7 @@ dependency 'rubygems' dependency 'bundler' dependency 'rb-readline' dependency 'appbundler' +dependency 'unf_ext' license :project_license diff --git a/omnibus/config/software/unf_ext.rb b/omnibus/config/software/unf_ext.rb new file mode 100644 index 000000000..a9e23cdc6 --- /dev/null +++ b/omnibus/config/software/unf_ext.rb @@ -0,0 +1,22 @@ +# encoding: utf-8 +# override for unf_ext until +# https://github.com/knu/ruby-unf_ext/pull/39 +# is merged and released + +name 'unf_ext' + +dependency 'ruby' +dependency 'rubygems' +dependency 'bundler' +dependency 'appbundler' + +license :project_license +default_version 'b5a0ee7725cb7d3cb8e068c8cab0f8627b2b1225' +source git: 'https://github.com/jquick/ruby-unf_ext.git' + +build do + env = with_standard_compiler_flags(with_embedded_path) + delete "#{name}-*.gem" + gem "build #{name}.gemspec", env: env + gem "install #{name}-*.gem --no-document", env: env +end