# Fix syntax error which causes install to fail and stop trying to update # the icon cache too early in the build process - portage will do it for us # later! --- Rakefile.orig 2008-01-22 23:17:13.000000000 +0000 +++ Rakefile 2008-01-22 23:19:37.000000000 +0000 @@ -204,23 +204,26 @@ end task :gconf do - return if ENV['GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL'] + if not ENV['GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL'] - unless system("which gconftool-2") - raise "gconftool-2 cannot be found, is GConf2 correctly installed?" - end - - ENV['GCONF_CONFIG_SOURCE'] = `gconftool-2 --get-default-source`.chomp - Dir["schemas/*.schemas"].each do |schema| - system("gconftool-2 --makefile-install-rule '#{schema}'") - end + unless system("which gconftool-2") + raise "gconftool-2 cannot be found, is GConf2 correctly installed?" + end + + ENV['GCONF_CONFIG_SOURCE'] = `gconftool-2 --get-default-source`.chomp + Dir["schemas/*.schemas"].each do |schema| + system("gconftool-2 --makefile-install-rule '#{schema}'") + end + end end -task :update_icon_cache do - system("gtk-update-icon-cache -f -t /usr/share/icons/hicolor") # HACK -end +# We don't need to do this as portage does it for us later +# task :update_icon_cache do +# system("gtk-update-icon-cache -f -t /usr/share/icons/hicolor") # HACK +# end -task :post_install => [:scrollkeeper, :gconf, :update_icon_cache] +# Remove update_icon_cache as above +task :post_install => [:scrollkeeper, :gconf] #vim: filetype=ruby syntax=Ruby