--- /usr/portage/media-tv/xbmc/xbmc-9999.ebuild 2014-08-12 08:01:13.000000000 +0300 +++ /usr/portage/media-tv/xbmc/xbmc-9999.ebuild 2014-11-02 14:22:54.613704934 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9999.ebuild,v 1.164 2014/08/12 04:47:55 vapier Exp $ +# $Header: $ EAPI="5" @@ -12,11 +12,15 @@ inherit eutils python-single-r1 multiprocessing autotools CODENAME="Helix" +PKGNAME="xbmc" +PKGFULLNAME="XBMC" case ${PV} in 9999) EGIT_REPO_URI="git://github.com/xbmc/xbmc.git" inherit git-2 #SRC_URI="!java? ( mirror://gentoo/${P}-20130413-generated-addons.tar.xz )" + PKGNAME="kodi" + PKGFULLNAME="Kodi" ;; *_alpha*|*_beta*|*_rc*) MY_PV="${CODENAME}_${PV#*_}" @@ -40,8 +44,8 @@ ;; esac -DESCRIPTION="XBMC is a free and open source media-player and entertainment hub" -HOMEPAGE="http://xbmc.org/" +DESCRIPTION="${PKGFULLNAME} is a free and open source media-player and entertainment hub" +HOMEPAGE="http://kodi.tv/" LICENSE="GPL-2" SLOT="0" @@ -270,8 +274,8 @@ default rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}* - domenu tools/Linux/xbmc.desktop - newicon media/icon48x48.png xbmc.png + domenu tools/Linux/${PKGNAME}.desktop + newicon media/icon48x48.png ${PKGNAME}.png # Remove optional addons (platform specific and disabled by USE flag). local disabled_addons=( @@ -281,30 +285,30 @@ use fishbmc || disabled_addons+=( visualization.fishbmc ) use projectm || disabled_addons+=( visualization.{milkdrop,projectm} ) use rsxs || disabled_addons+=( screensaver.rsxs.{euphoria,plasma,solarwinds} ) - rm -rf "${disabled_addons[@]/#/${ED}/usr/share/xbmc/addons/}" + rm -rf "${disabled_addons[@]/#/${ED}/usr/share/${PKGNAME}/addons/}" # Punt simplejson bundle, we use the system one anyway. - rm -rf "${ED}"/usr/share/xbmc/addons/script.module.simplejson/lib + rm -rf "${ED}"/usr/share/${PKGNAME}/addons/script.module.simplejson/lib # Remove fonconfig settings that are used only on MacOSX. # Can't be patched upstream because they just find all files and install # them into same structure like they have in git. - rm -rf "${ED}"/usr/share/xbmc/system/players/dvdplayer/etc + rm -rf "${ED}"/usr/share/${PKGNAME}/system/players/dvdplayer/etc # Replace bundled fonts with system ones # teletext.ttf: unknown # bold-caps.ttf: unknown # roboto: roboto-bold, roboto-regular # arial.ttf: font mashed from droid/roboto, not removed wrt bug#460514 - rm -rf "${ED}"/usr/share/xbmc/addons/skin.confluence/fonts/Roboto-* + rm -rf "${ED}"/usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-* dosym /usr/share/fonts/roboto/Roboto-Regular.ttf \ - /usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Regular.ttf + /usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-Regular.ttf dosym /usr/share/fonts/roboto/Roboto-Bold.ttf \ - /usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Bold.ttf + /usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-Bold.ttf python_domodule tools/EventClients/lib/python/xbmcclient.py - python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send + python_newscript "tools/EventClients/Clients/${PKGFULLNAME} Send/${PKGNAME}-send.py" ${PKGNAME}-send } pkg_postinst() { - elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual" + elog "Visit http://kodi.wiki/view/XBMC_Online_Manual" }