added media-tv/kodi-9999 loosely adapted from the xbmc ebuild