summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-10-12 01:37:33 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-10-12 01:37:41 +0000
commita35cc3d3aac992362f77d7ed0bbedf473a9aab13 (patch)
tree23bf9f7421cb18a599b4e6cfe6b14cfcb4d6aaa4
parent9dd2c1df9cc4dc5486e6c2bdd5555a98fc6af8d4 (diff)
downloadmeta-cloud-services-a35cc3d3aac992362f77d7ed0bbedf473a9aab13.tar.gz
ruby.bbclass: copy spec files if present in UNPACKDIR
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--classes/ruby.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/ruby.bbclass b/classes/ruby.bbclass
index eb19e37..930967d 100644
--- a/classes/ruby.bbclass
+++ b/classes/ruby.bbclass
@@ -108,6 +108,20 @@ EOF
108EOF 108EOF
109} 109}
110 110
111do_generate_spec () {
112 if [ -z "${GEM_SPEC_FILE}" ]; then
113 return 0
114 fi
115
116 if [ -e "${UNPACKDIR}/${GEM_SPEC_FILE}" ]; then
117 cp -f "${UNPACKDIR}/${GEM_SPEC_FILE}" "${S}/${GEM_SPEC_FILE}"
118 return 0
119 fi
120}
121
122do_generate_spec[vardepsexclude] += "prefix_native"
123addtask do_generate_spec before do_patch
124
111ruby_do_compile() { 125ruby_do_compile() {
112 if [ -f ${UNPACKDIR}/extconf.rb ]; then 126 if [ -f ${UNPACKDIR}/extconf.rb ]; then
113 cp extconf.rb extconf.orig 127 cp extconf.rb extconf.orig