+# this task invokes makemo if ruby-gettext is available, but otherwise succeeds
+# with a warning instead of failing. it is to be used by Gem's extension builder
+# to make installation not fail because of lack of ruby-gettext
+task :buildext do
+ begin
+ require 'gettext/utils'
+ Rake::Task[:makemo].invoke
+ rescue LoadError
+ warn 'Ruby-gettext cannot be located, so mo files cannot be built and installed'
+ end
+end
+