diff options
Diffstat (limited to 'classes/ruby.bbclass')
-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 |