diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-12 01:37:33 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-12 01:37:41 +0000 |
commit | a35cc3d3aac992362f77d7ed0bbedf473a9aab13 (patch) | |
tree | 23bf9f7421cb18a599b4e6cfe6b14cfcb4d6aaa4 | |
parent | 9dd2c1df9cc4dc5486e6c2bdd5555a98fc6af8d4 (diff) | |
download | meta-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.bbclass | 14 |
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 | |||
108 | EOF | 108 | EOF |
109 | } | 109 | } |
110 | 110 | ||
111 | do_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 | |||
122 | do_generate_spec[vardepsexclude] += "prefix_native" | ||
123 | addtask do_generate_spec before do_patch | ||
124 | |||
111 | ruby_do_compile() { | 125 | ruby_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 |