diff options
author | Nathan Hartman <hnathan918@gmail.com> | 2020-02-20 11:56:51 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-02-27 17:15:56 -0500 |
commit | c67f5df7b32932782f4352d58e5de6715af3838e (patch) | |
tree | 006a12bdc254c35948cb4c03dd88ec84dcf00486 | |
parent | 40d18b925f004814d5e26da5ebda973975e6b7ab (diff) | |
download | meta-cloud-services-c67f5df7b32932782f4352d58e5de6715af3838e.tar.gz |
Added SRCNAME variable to allow bitbake recipe unfriendly gem names
Signed-off-by: Nathan Hartman <hnathan918@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | classes/ruby.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/ruby.bbclass b/classes/ruby.bbclass index dc19166..15ac9f4 100644 --- a/classes/ruby.bbclass +++ b/classes/ruby.bbclass | |||
@@ -8,6 +8,8 @@ RDEPENDS_${PN} += " \ | |||
8 | ruby \ | 8 | ruby \ |
9 | " | 9 | " |
10 | 10 | ||
11 | SRCNAME ?= "${PN}" | ||
12 | |||
11 | #${PN}_do_compile[depends] += "ruby-native:do_populate_sysroot" | 13 | #${PN}_do_compile[depends] += "ruby-native:do_populate_sysroot" |
12 | 14 | ||
13 | def get_rubyversion(p): | 15 | def get_rubyversion(p): |
@@ -78,8 +80,8 @@ RUBY_GEM_VERSION ?= "${@get_rubygemsversion("${STAGING_BINDIR_NATIVE}")}" | |||
78 | 80 | ||
79 | export GEM_HOME = "${STAGING_DIR_NATIVE}/usr/lib/ruby/gems/${RUBY_GEM_VERSION}" | 81 | export GEM_HOME = "${STAGING_DIR_NATIVE}/usr/lib/ruby/gems/${RUBY_GEM_VERSION}" |
80 | 82 | ||
81 | RUBY_BUILD_GEMS ?= "${BPN}.gemspec" | 83 | RUBY_BUILD_GEMS ?= "${SRCNAME}.gemspec" |
82 | RUBY_INSTALL_GEMS ?= "${BPN}-${BPV}.gem" | 84 | RUBY_INSTALL_GEMS ?= "${SRCNAME}-${PV}.gem" |
83 | 85 | ||
84 | RUBY_COMPILE_FLAGS ?= 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"' | 86 | RUBY_COMPILE_FLAGS ?= 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"' |
85 | 87 | ||