Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 526992 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-tv/xbmc/xbmc-9999.ebuild (-13 / +17 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9999.ebuild,v 1.164 2014/08/12 04:47:55 vapier Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
6
Lines 12-22 Link Here
12
inherit eutils python-single-r1 multiprocessing autotools
12
inherit eutils python-single-r1 multiprocessing autotools
13
13
14
CODENAME="Helix"
14
CODENAME="Helix"
15
PKGNAME="xbmc"
16
PKGFULLNAME="XBMC"
15
case ${PV} in
17
case ${PV} in
16
9999)
18
9999)
17
	EGIT_REPO_URI="git://github.com/xbmc/xbmc.git"
19
	EGIT_REPO_URI="git://github.com/xbmc/xbmc.git"
18
	inherit git-2
20
	inherit git-2
19
	#SRC_URI="!java? ( mirror://gentoo/${P}-20130413-generated-addons.tar.xz )"
21
	#SRC_URI="!java? ( mirror://gentoo/${P}-20130413-generated-addons.tar.xz )"
22
	PKGNAME="kodi"
23
	PKGFULLNAME="Kodi"
20
	;;
24
	;;
21
*_alpha*|*_beta*|*_rc*)
25
*_alpha*|*_beta*|*_rc*)
22
	MY_PV="${CODENAME}_${PV#*_}"
26
	MY_PV="${CODENAME}_${PV#*_}"
Lines 40-47 Link Here
40
	;;
44
	;;
41
esac
45
esac
42
46
43
DESCRIPTION="XBMC is a free and open source media-player and entertainment hub"
47
DESCRIPTION="${PKGFULLNAME} is a free and open source media-player and entertainment hub"
44
HOMEPAGE="http://xbmc.org/"
48
HOMEPAGE="http://kodi.tv/"
45
49
46
LICENSE="GPL-2"
50
LICENSE="GPL-2"
47
SLOT="0"
51
SLOT="0"
Lines 270-277 Link Here
270
	default
274
	default
271
	rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}*
275
	rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}*
272
276
273
	domenu tools/Linux/xbmc.desktop
277
	domenu tools/Linux/${PKGNAME}.desktop
274
	newicon media/icon48x48.png xbmc.png
278
	newicon media/icon48x48.png ${PKGNAME}.png
275
279
276
	# Remove optional addons (platform specific and disabled by USE flag).
280
	# Remove optional addons (platform specific and disabled by USE flag).
277
	local disabled_addons=(
281
	local disabled_addons=(
Lines 281-310 Link Here
281
	use fishbmc  || disabled_addons+=( visualization.fishbmc )
285
	use fishbmc  || disabled_addons+=( visualization.fishbmc )
282
	use projectm || disabled_addons+=( visualization.{milkdrop,projectm} )
286
	use projectm || disabled_addons+=( visualization.{milkdrop,projectm} )
283
	use rsxs     || disabled_addons+=( screensaver.rsxs.{euphoria,plasma,solarwinds} )
287
	use rsxs     || disabled_addons+=( screensaver.rsxs.{euphoria,plasma,solarwinds} )
284
	rm -rf "${disabled_addons[@]/#/${ED}/usr/share/xbmc/addons/}"
288
	rm -rf "${disabled_addons[@]/#/${ED}/usr/share/${PKGNAME}/addons/}"
285
289
286
	# Punt simplejson bundle, we use the system one anyway.
290
	# Punt simplejson bundle, we use the system one anyway.
287
	rm -rf "${ED}"/usr/share/xbmc/addons/script.module.simplejson/lib
291
	rm -rf "${ED}"/usr/share/${PKGNAME}/addons/script.module.simplejson/lib
288
	# Remove fonconfig settings that are used only on MacOSX.
292
	# Remove fonconfig settings that are used only on MacOSX.
289
	# Can't be patched upstream because they just find all files and install
293
	# Can't be patched upstream because they just find all files and install
290
	# them into same structure like they have in git.
294
	# them into same structure like they have in git.
291
	rm -rf "${ED}"/usr/share/xbmc/system/players/dvdplayer/etc
295
	rm -rf "${ED}"/usr/share/${PKGNAME}/system/players/dvdplayer/etc
292
296
293
	# Replace bundled fonts with system ones
297
	# Replace bundled fonts with system ones
294
	# teletext.ttf: unknown
298
	# teletext.ttf: unknown
295
	# bold-caps.ttf: unknown
299
	# bold-caps.ttf: unknown
296
	# roboto: roboto-bold, roboto-regular
300
	# roboto: roboto-bold, roboto-regular
297
	# arial.ttf: font mashed from droid/roboto, not removed wrt bug#460514
301
	# arial.ttf: font mashed from droid/roboto, not removed wrt bug#460514
298
	rm -rf "${ED}"/usr/share/xbmc/addons/skin.confluence/fonts/Roboto-*
302
	rm -rf "${ED}"/usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-*
299
	dosym /usr/share/fonts/roboto/Roboto-Regular.ttf \
303
	dosym /usr/share/fonts/roboto/Roboto-Regular.ttf \
300
		/usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Regular.ttf
304
		/usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-Regular.ttf
301
	dosym /usr/share/fonts/roboto/Roboto-Bold.ttf \
305
	dosym /usr/share/fonts/roboto/Roboto-Bold.ttf \
302
		/usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Bold.ttf
306
		/usr/share/${PKGNAME}/addons/skin.confluence/fonts/Roboto-Bold.ttf
303
307
304
	python_domodule tools/EventClients/lib/python/xbmcclient.py
308
	python_domodule tools/EventClients/lib/python/xbmcclient.py
305
	python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send
309
	python_newscript "tools/EventClients/Clients/${PKGFULLNAME} Send/${PKGNAME}-send.py" ${PKGNAME}-send
306
}
310
}
307
311
308
pkg_postinst() {
312
pkg_postinst() {
309
	elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual"
313
	elog "Visit http://kodi.wiki/view/XBMC_Online_Manual"
310
}
314
}

Return to bug 526992