summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-10-12 01:16:45 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-10-12 01:16:45 +0000
commit4c85c6d55a3d1682464735bf427ffc78723d1ed0 (patch)
tree1301e83195fa95b0d7779adac6b94bc38d3eb74e
parent10f244fc36babc24eca62277f1bc95b966c15373 (diff)
downloadmeta-cloud-services-4c85c6d55a3d1682464735bf427ffc78723d1ed0.tar.gz
rubyv2: copy gemspec files if provided
Rather than generating a spec file from a gem (which we don't have when building from source) or patching it in, it is easier if we just provide it on the SRC_URI and copy it into place. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--classes/rubyv2.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/rubyv2.bbclass b/classes/rubyv2.bbclass
index 3d6654e..1dfb047 100644
--- a/classes/rubyv2.bbclass
+++ b/classes/rubyv2.bbclass
@@ -121,6 +121,11 @@ do_generate_spec() {
121 export RUBYLIB=${RUBYLIB} 121 export RUBYLIB=${RUBYLIB}
122 export GEM_SPEC=${GEM_SPEC_CACHE} 122 export GEM_SPEC=${GEM_SPEC_CACHE}
123 123
124 if [ -e "${UNPACKDIR}/${GEM_SPEC_FILE}" ]; then
125 cp -f "${UNPACKDIR}/${GEM_SPEC_FILE}" "${S}/${GEM_SPEC_FILE}"
126 return 0
127 fi
128
124 # GEM_FILE might not exist if SRC_URI was overloaded 129 # GEM_FILE might not exist if SRC_URI was overloaded
125 [ ! -e ${GEM_FILE} ] && return 0 130 [ ! -e ${GEM_FILE} ] && return 0
126 131