aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorNathan Hartman <hnathan918@gmail.com>2020-02-20 11:56:51 -0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-02-27 17:15:56 -0500
commitc67f5df7b32932782f4352d58e5de6715af3838e (patch)
tree006a12bdc254c35948cb4c03dd88ec84dcf00486 /classes
parent40d18b925f004814d5e26da5ebda973975e6b7ab (diff)
downloadmeta-cloud-services-c67f5df7b32932782f4352d58e5de6715af3838e.tar.gz
meta-cloud-services-c67f5df7b32932782f4352d58e5de6715af3838e.tar.bz2
meta-cloud-services-c67f5df7b32932782f4352d58e5de6715af3838e.zip
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>
Diffstat (limited to 'classes')
-rw-r--r--classes/ruby.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/ruby.bbclass b/classes/ruby.bbclass
index dc191667..15ac9f4b 100644
--- a/classes/ruby.bbclass
+++ b/classes/ruby.bbclass
@@ -8,6 +8,8 @@ RDEPENDS_${PN} += " \
ruby \
"
+SRCNAME ?= "${PN}"
+
#${PN}_do_compile[depends] += "ruby-native:do_populate_sysroot"
def get_rubyversion(p):
@@ -78,8 +80,8 @@ RUBY_GEM_VERSION ?= "${@get_rubygemsversion("${STAGING_BINDIR_NATIVE}")}"
export GEM_HOME = "${STAGING_DIR_NATIVE}/usr/lib/ruby/gems/${RUBY_GEM_VERSION}"
-RUBY_BUILD_GEMS ?= "${BPN}.gemspec"
-RUBY_INSTALL_GEMS ?= "${BPN}-${BPV}.gem"
+RUBY_BUILD_GEMS ?= "${SRCNAME}.gemspec"
+RUBY_INSTALL_GEMS ?= "${SRCNAME}-${PV}.gem"
RUBY_COMPILE_FLAGS ?= 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"'