Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/xbmc: xbmc-13.1.ebuild ChangeLog
Date: Wed, 30 Jul 2014 08:35:03
Message-Id: 20140730083456.883C22004E@flycatcher.gentoo.org
1 vapier 14/07/30 08:34:55
2
3 Modified: ChangeLog
4 Added: xbmc-13.1.ebuild
5 Log:
6 Version bump #512700 by Michael Cook.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.212 media-tv/xbmc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/ChangeLog?rev=1.212&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/ChangeLog?rev=1.212&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/ChangeLog?r1=1.211&r2=1.212
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v
20 retrieving revision 1.211
21 retrieving revision 1.212
22 diff -u -r1.211 -r1.212
23 --- ChangeLog 29 Jul 2014 08:13:30 -0000 1.211
24 +++ ChangeLog 30 Jul 2014 08:34:55 -0000 1.212
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-tv/xbmc
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.211 2014/07/29 08:13:30 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.212 2014/07/30 08:34:55 vapier Exp $
30 +
31 +*xbmc-13.1 (30 Jul 2014)
32 +
33 + 30 Jul 2014; Mike Frysinger <vapier@g.o> +xbmc-13.1.ebuild:
34 + Version bump #512700 by Michael Cook.
35
36 29 Jul 2014; Mike Frysinger <vapier@g.o> xbmc-12.3.ebuild,
37 xbmc-13.0_p2.ebuild, xbmc-9999.ebuild:
38
39
40
41 1.1 media-tv/xbmc/xbmc-13.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/xbmc-13.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/xbmc-13.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xbmc-13.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-13.1.ebuild,v 1.1 2014/07/30 08:34:55 vapier Exp $
51
52 EAPI="5"
53
54 # Does not work with py3 here
55 # It might work with py:2.5 but I didn't test that
56 PYTHON_COMPAT=( python{2_6,2_7} )
57 PYTHON_REQ_USE="sqlite"
58
59 inherit eutils python-single-r1 multiprocessing autotools
60
61 CODENAME="Gotham"
62 case ${PV} in
63 9999)
64 EGIT_REPO_URI="git://github.com/xbmc/xbmc.git"
65 inherit git-2
66 #SRC_URI="!java? ( mirror://gentoo/${P}-20130413-generated-addons.tar.xz )"
67 ;;
68 *_alpha*|*_beta*|*_rc*)
69 MY_PV="${CODENAME}_${PV#*_}"
70 MY_P="${PN}-${MY_PV}"
71 SRC_URI="https://github.com/xbmc/xbmc/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
72 !java? ( mirror://gentoo/${P}-generated-addons.tar.xz )"
73 KEYWORDS="~amd64 ~x86"
74 S=${WORKDIR}/${MY_P}
75 ;;
76 *|*_p*)
77 MY_PV=${PV/_p/_r}
78 MY_P="${PN}-${MY_PV}"
79 SRC_URI="http://mirrors.xbmc.org/releases/source/${MY_P}.tar.gz
80 http://mirrors.xbmc.org/releases/source/${MY_P}-generated-addons.tar.xz"
81 KEYWORDS="~amd64 ~x86"
82
83 S=${WORKDIR}/${MY_P}-${CODENAME}
84 ;;
85 esac
86
87 DESCRIPTION="XBMC is a free and open source media-player and entertainment hub"
88 HOMEPAGE="http://xbmc.org/"
89
90 LICENSE="GPL-2"
91 SLOT="0"
92 IUSE="airplay alsa altivec avahi bluetooth bluray caps cec css debug +fishbmc gles goom java joystick midi mysql nfs +opengl profile +projectm pulseaudio pvr +rsxs rtmp +samba +sdl sse sse2 sftp udisks upnp upower +usb vaapi vdpau webserver +X +xrandr"
93 REQUIRED_USE="
94 pvr? ( mysql )
95 rsxs? ( X )
96 X? ( sdl )
97 xrandr? ( X )
98 "
99
100 COMMON_DEPEND="${PYTHON_DEPS}
101 app-arch/bzip2
102 app-arch/unzip
103 app-arch/zip
104 app-i18n/enca
105 airplay? ( app-pda/libplist )
106 dev-libs/boost
107 dev-libs/fribidi
108 dev-libs/libcdio[-minimal]
109 cec? ( >=dev-libs/libcec-2.1 )
110 dev-libs/libpcre[cxx]
111 >=dev-libs/lzo-2.04
112 dev-libs/tinyxml[stl]
113 dev-libs/yajl
114 dev-python/simplejson[${PYTHON_USEDEP}]
115 media-fonts/corefonts
116 media-fonts/roboto
117 media-libs/alsa-lib
118 media-libs/flac
119 media-libs/fontconfig
120 media-libs/freetype
121 >=media-libs/glew-1.5.6
122 media-libs/jasper
123 media-libs/jbigkit
124 >=media-libs/libass-0.9.7
125 bluray? ( media-libs/libbluray )
126 css? ( media-libs/libdvdcss )
127 media-libs/libmad
128 media-libs/libmodplug
129 media-libs/libmpeg2
130 media-libs/libogg
131 media-libs/libpng
132 projectm? ( media-libs/libprojectm )
133 media-libs/libsamplerate
134 sdl? ( media-libs/libsdl[sound,opengl,video,X] )
135 alsa? ( media-libs/libsdl[alsa] )
136 >=media-libs/taglib-1.8
137 media-libs/libvorbis
138 sdl? (
139 media-libs/sdl-gfx
140 >=media-libs/sdl-image-1.2.10[gif,jpeg,png]
141 media-libs/sdl-mixer
142 media-libs/sdl-sound
143 )
144 media-libs/tiff
145 pulseaudio? ( media-sound/pulseaudio )
146 media-sound/wavpack
147 || ( >=media-video/ffmpeg-1.2.1:0=[encode] ( media-libs/libpostproc >=media-video/libav-10_alpha:=[encode] ) )
148 rtmp? ( media-video/rtmpdump )
149 avahi? ( net-dns/avahi )
150 nfs? ( net-fs/libnfs )
151 webserver? ( net-libs/libmicrohttpd[messages] )
152 sftp? ( net-libs/libssh[sftp] )
153 net-misc/curl
154 samba? ( >=net-fs/samba-3.4.6[smbclient(+)] )
155 bluetooth? ( net-wireless/bluez )
156 sys-apps/dbus
157 caps? ( sys-libs/libcap )
158 sys-libs/zlib
159 virtual/jpeg
160 usb? ( virtual/libusb )
161 mysql? ( virtual/mysql )
162 opengl? (
163 virtual/glu
164 virtual/opengl
165 )
166 gles? (
167 virtual/opengl
168 media-libs/mesa[gles2]
169 )
170 vaapi? ( x11-libs/libva[opengl] )
171 vdpau? (
172 || ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 )
173 || ( >=media-video/ffmpeg-1.2.1:0=[vdpau] >=media-video/libav-10_alpha:=[vdpau] )
174 )
175 X? (
176 x11-apps/xdpyinfo
177 x11-apps/mesa-progs
178 x11-libs/libXinerama
179 xrandr? ( x11-libs/libXrandr )
180 x11-libs/libXrender
181 )"
182 RDEPEND="${COMMON_DEPEND}
183 udisks? ( sys-fs/udisks:0 )
184 upower? ( || ( sys-power/upower sys-power/upower-pm-utils ) )"
185 DEPEND="${COMMON_DEPEND}
186 app-arch/xz-utils
187 dev-lang/swig
188 dev-util/gperf
189 X? ( x11-proto/xineramaproto )
190 dev-util/cmake
191 x86? ( dev-lang/nasm )
192 java? ( virtual/jre )"
193 # Force java for latest git version to avoid having to hand maintain the
194 # generated addons package. #488118
195 [[ ${PV} == "9999" ]] && DEPEND+=" virtual/jre"
196
197 pkg_setup() {
198 python-single-r1_pkg_setup
199
200 if has_version 'media-video/libav' ; then
201 ewarn "Building ${PN} against media-video/libav is not supported upstream."
202 ewarn "It requires building a (small) wrapper library with some code"
203 ewarn "from media-video/ffmpeg."
204 ewarn "If you experience issues, please try with media-video/ffmpeg."
205 fi
206 }
207
208 src_unpack() {
209 [[ ${PV} == "9999" ]] && git-2_src_unpack || default
210 }
211
212 src_prepare() {
213 epatch "${FILESDIR}"/${PN}-9999-nomythtv.patch
214 epatch "${FILESDIR}"/${PN}-9999-no-arm-flags.patch #400617
215 # The mythtv patch touches configure.ac, so force a regen
216 rm -f configure
217
218 # some dirs ship generated autotools, some dont
219 multijob_init
220 local d
221 for d in $(printf 'f:\n\t@echo $(BOOTSTRAP_TARGETS)\ninclude bootstrap.mk\n' | emake -f - f) ; do
222 [[ -e ${d} ]] && continue
223 pushd ${d/%configure/.} >/dev/null || die
224 AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" \
225 multijob_child_init eautoreconf
226 popd >/dev/null
227 done
228 multijob_finish
229 elibtoolize
230
231 [[ ${PV} == "9999" ]] && emake -f codegenerator.mk
232
233 # Disable internal func checks as our USE/DEPEND
234 # stuff handles this just fine already #408395
235 export ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes
236
237 local squish #290564
238 use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec"
239 use sse && squish="-DSQUISH_USE_SSE=1 -msse"
240 use sse2 && squish="-DSQUISH_USE_SSE=2 -msse2"
241 sed -i \
242 -e '/^CXXFLAGS/{s:-D[^=]*=.::;s:-m[[:alnum:]]*::}' \
243 -e "1iCXXFLAGS += ${squish}" \
244 lib/libsquish/Makefile.in || die
245
246 # Fix XBMC's final version string showing as "exported"
247 # instead of the SVN revision number.
248 export HAVE_GIT=no GIT_REV=${EGIT_VERSION:-exported}
249
250 # avoid long delays when powerkit isn't running #348580
251 sed -i \
252 -e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \
253 xbmc/linux/*.cpp || die
254
255 epatch_user #293109
256
257 # Tweak autotool timestamps to avoid regeneration
258 find . -type f -exec touch -r configure {} +
259 }
260
261 src_configure() {
262 # Disable documentation generation
263 export ac_cv_path_LATEX=no
264 # Avoid help2man
265 export HELP2MAN=$(type -P help2man || echo true)
266 # No configure flage for this #403561
267 export ac_cv_lib_bluetooth_hci_devid=$(usex bluetooth)
268 # Requiring java is asine #434662
269 [[ ${PV} != "9999" ]] && export ac_cv_path_JAVA_EXE=$(which $(usex java java true))
270
271 econf \
272 --docdir=/usr/share/doc/${PF} \
273 --disable-ccache \
274 --disable-optimizations \
275 --enable-external-libraries \
276 $(has_version 'media-video/libav' && echo "--enable-libav-compat") \
277 $(use_enable airplay) \
278 $(use_enable avahi) \
279 $(use_enable bluray libbluray) \
280 $(use_enable caps libcap) \
281 $(use_enable cec libcec) \
282 $(use_enable css dvdcss) \
283 $(use_enable debug) \
284 $(use_enable fishbmc) \
285 $(use_enable gles) \
286 $(use_enable goom) \
287 --disable-hal \
288 $(use_enable joystick) \
289 $(use_enable midi mid) \
290 $(use_enable mysql) \
291 $(use_enable nfs) \
292 $(use_enable opengl gl) \
293 $(use_enable profile profiling) \
294 $(use_enable projectm) \
295 $(use_enable pulseaudio pulse) \
296 $(use_enable pvr mythtv) \
297 $(use_enable rsxs) \
298 $(use_enable rtmp) \
299 $(use_enable samba) \
300 $(use_enable sdl) \
301 $(use_enable sftp ssh) \
302 $(use_enable usb libusb) \
303 $(use_enable upnp) \
304 $(use_enable vaapi) \
305 $(use_enable vdpau) \
306 $(use_enable webserver) \
307 $(use_enable X x11) \
308 $(use_enable xrandr)
309 }
310
311 src_install() {
312 default
313 rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}*
314
315 domenu tools/Linux/xbmc.desktop
316 newicon media/icon48x48.png xbmc.png
317
318 # Remove optional addons (platform specific and disabled by USE flag).
319 local disabled_addons=(
320 repository.pvr-{android,ios,osx{32,64},win32}.xbmc.org
321 visualization.dxspectrum
322 )
323 use fishbmc || disabled_addons+=( visualization.fishbmc )
324 use projectm || disabled_addons+=( visualization.{milkdrop,projectm} )
325 use rsxs || disabled_addons+=( screensaver.rsxs.{euphoria,plasma,solarwinds} )
326 rm -rf "${disabled_addons[@]/#/${ED}/usr/share/xbmc/addons/}"
327
328 # Punt simplejson bundle, we use the system one anyway.
329 rm -rf "${ED}"/usr/share/xbmc/addons/script.module.simplejson/lib
330 # Remove fonconfig settings that are used only on MacOSX.
331 # Can't be patched upstream because they just find all files and install
332 # them into same structure like they have in git.
333 rm -rf "${ED}"/usr/share/xbmc/system/players/dvdplayer/etc
334
335 # Replace bundled fonts with system ones
336 # teletext.ttf: unknown
337 # bold-caps.ttf: unknown
338 # roboto: roboto-bold, roboto-regular
339 # arial.ttf: font mashed from droid/roboto, not removed wrt bug#460514
340 rm -rf "${ED}"/usr/share/xbmc/addons/skin.confluence/fonts/Roboto-*
341 dosym /usr/share/fonts/roboto/Roboto-Regular.ttf \
342 /usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Regular.ttf
343 dosym /usr/share/fonts/roboto/Roboto-Bold.ttf \
344 /usr/share/xbmc/addons/skin.confluence/fonts/Roboto-Bold.ttf
345
346 python_domodule tools/EventClients/lib/python/xbmcclient.py
347 python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send
348 }
349
350 pkg_postinst() {
351 elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual"
352 }