aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
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"'