diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-21 15:14:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-08-21 15:14:12 +0000 |
commit | a8ce90b0683cce3a187610dc473afae00867a092 (patch) | |
tree | fb34cd59e28ab8ea9c1d38bfa8dec897324fabd1 /media-tv/xbmc | |
parent | bumped EAPI to 5; committed directly to stable as no other changes present an... (diff) | |
download | historical-a8ce90b0683cce3a187610dc473afae00867a092.tar.gz historical-a8ce90b0683cce3a187610dc473afae00867a092.tar.bz2 historical-a8ce90b0683cce3a187610dc473afae00867a092.zip |
Version bump #512700 by Michael Cook.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'media-tv/xbmc')
-rw-r--r-- | media-tv/xbmc/ChangeLog | 7 | ||||
-rw-r--r-- | media-tv/xbmc/Manifest | 31 | ||||
-rw-r--r-- | media-tv/xbmc/xbmc-13.2.ebuild | 305 |
3 files changed, 328 insertions, 15 deletions
diff --git a/media-tv/xbmc/ChangeLog b/media-tv/xbmc/ChangeLog index 201893110faa..0aab9feec119 100644 --- a/media-tv/xbmc/ChangeLog +++ b/media-tv/xbmc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-tv/xbmc # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.213 2014/08/12 04:47:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.214 2014/08/21 15:14:10 vapier Exp $ + +*xbmc-13.2 (21 Aug 2014) + + 21 Aug 2014; Mike Frysinger <vapier@gentoo.org> +xbmc-13.2.ebuild: + Version bump #512700 by Michael Cook. 12 Aug 2014; Mike Frysinger <vapier@gentoo.org> xbmc-9999.ebuild: Add support for running tests #519118 by Anthony Ryan. diff --git a/media-tv/xbmc/Manifest b/media-tv/xbmc/Manifest index 9bb795d6fc81..eddfec6d5665 100644 --- a/media-tv/xbmc/Manifest +++ b/media-tv/xbmc/Manifest @@ -23,6 +23,8 @@ DIST xbmc-13.0_r2-generated-addons.tar.xz 312524 SHA256 82e2c219a09a758c5cc7a29c DIST xbmc-13.0_r2.tar.gz 65616107 SHA256 663b99f3e196ead51d90f06ccfa864b4e5ade385dfc5972acb0f854d525f2903 SHA512 c56d11959797f4c6c3b1831afeab03332913fe6cc00f2542c45af725fe932ba3b997c2af997a602665734a6bcc061c40b8e876144894fdeab91b56df98958433 WHIRLPOOL 394b76c9d20dd90a0d04306d301d4bb656fe99afab6e7392d6274bd3eb8c9a3083bfe192f3850f6ea7123ed537baa64f658a48b14eee68b8226b4e620a76d199 DIST xbmc-13.1-generated-addons.tar.xz 54968 SHA256 fb0c265640e8d468ed094d83be5089274b7effc1ad1946c42ce21d831442d00e SHA512 7081e25621141eaf76d552fe648fcf9ff4697fc76991b2081806ae829af6094012194cfab93b0c836242197ded00ff88458b89ed6008532b38552d3114d2a776 WHIRLPOOL d83a4290af3e9a2a88dccf074d73692e34a9877d2ff7ff6a946a601b0c8e9d01105eb04bf1d28f62bf648d7221df787b42e52b416f2e924bfa5208342b3ef51a DIST xbmc-13.1.tar.gz 65758346 SHA256 344b604eae2ddb47c032dd7964d01f27e6fcd7a8873c84c0841d5da75961a678 SHA512 918126a85a8194dd49d5c82a5a56d2006b811ff5fca535e95bcc5ef4ab135c5907d01595c2ceb4accdc69aef5afc621adae249a1fef85425945560a646e970b0 WHIRLPOOL d429dd9a03974aedd5cd256f0cf1409dcf7434ec1bafeaa0fcdaaa0d8bb08442183143d514d33b1de4934a5e800b03a8f64df5abdd7203d8a0557638e124b53a +DIST xbmc-13.2-generated-addons.tar.xz 55008 SHA256 26d72e282f0458acb48b283edc27f7b71fc3f285344b8d4df6835a2520ae5650 SHA512 7b77bc22e0c665b74d90276cfa8b827222b22930f4d3bf335191dd5a8123f8bd74367de123199e124b02c7075aa81536058ace38926f4c03d0449ea55fd83254 WHIRLPOOL 449fe73e5ca7f5d973fb1d49e4e84f47955bced804bfea93a5bda67481af096dfa10581435fd84a26d59cb30f4b0eedd7096c905d5b1749286f85b042f90b626 +DIST xbmc-13.2.tar.gz 65900491 SHA256 acbf5dffa3034a3406240ee3cf81e721386cd383d23d056ddde1f769e050e585 SHA512 83a514410748b05da4c626caff34fec7b6b26a8bdea9f158e1c75721d3a47d36eb1f97ed4c162f6c2472a97f658e3b5285c1e0b144bfb4f654932586eee4d1c8 WHIRLPOOL 54e8551fa8393b9fd1076572e87b4d5a7e1b52acaa0443d14cfc8ed08e69a2efb86e3bb2cbe97d8894989ad7f892f512649165089e3d1035307f8cc820772e6f DIST xbmc_backports-12-1.tar.bz2 5010 SHA256 a222c32f5a4a0a8690b1544674cfbfeddf81943e85b6ea716768b83c9eba5fa8 SHA512 19b29808f7a3a7b0642f8463bdd229041588d2f42952fe55a17ab69b5b259cde249eb763598893463218d0ab6c747bf3c81e045bdbf5655f9f5f2d2067cb35d2 WHIRLPOOL cc6870dabca8b53a1a6055a4218a8f9bbb2c031ab3b928040325fb121ea75ae6db431542660d28c3bc6900a904e2c0949d69651b2f63faffe8bc7f670d519f06 EBUILD xbmc-11.0.ebuild 6357 SHA256 3877f2d5474fbe68bca9df2f1955ec30712443fffd53ed4125f7aa302f2d8561 SHA512 e856e967d8ae7c92003333ce71199704894ea584f42d2480f6634495f4309163e14094cdd6172322a3063fcff845d62444779bf8ded7bf07a1fb5ca73b9c67bc WHIRLPOOL 1696ef06ccdaabd16a8488eb69a7cf20e1914f7587403e7c1ba984ae09ba6f60c8ba41467de66d04137d0c154dabf8f991c2e75d13f5251b04fc5fc0a145150b EBUILD xbmc-12.1-r1.ebuild 7156 SHA256 dda93c39783135656f265a5c4483285cb3b75d632814cc3084ec573c25f163ff SHA512 033fb5ddb5441bf033eeaa31e3bdfdddbff2394db155f256f333994baab6c2ec9ac30491735823fec4cac9a86436708fb1b8ca3488dbf753f36fd2e47ada798c WHIRLPOOL 85ed6d45a5891444887ef240ea42ad8ba0e232164094d5e65cce51c1818d76e83894cef5245c9b69993187c6f86fb4e47845d965c9869f8faf26964d1723783e @@ -30,23 +32,24 @@ EBUILD xbmc-12.2-r1.ebuild 7117 SHA256 a139b8d35e48778a9cc83036dad534593309a409f EBUILD xbmc-12.3.ebuild 7248 SHA256 88df89a55b0b8356d527083bc8c09c9d4c5004e2e1b4321c862dade19a25d646 SHA512 3114cc5fbeb10f3ae506b6880aaa398f9ab12cbe955df2cd3c777892f86eef5d46a7c78d87bafc7c669a9b1089b1da09ed7ad88026df401eed3c44126930a7eb WHIRLPOOL 342b025c92f521664f095640cc782eef675ecaad0b6ebc5e4e11485eede5f2974df89fd56c33c7547e033d62e8029c5b59a323400908d9184c1151efa55b163a EBUILD xbmc-13.0_p2.ebuild 9214 SHA256 7d3295624269e073b59c05628cb6c71f728364aa9d0715b6726458bbe0215925 SHA512 ed3998769a27774393b3a39a743bc53b655b8684001253acfa3977de7c869e1ebd3d8bcca76b9e1f1ca1f3097a105d2333394ac7f3e2fae09e3a045775ea6b0a WHIRLPOOL a31bd6b1acca03d15eb6d0cfd38595209e0aaec26a74a507e3e5495f4efa6049e0ab81a728925ba63ed08a5fdeed489e53781fd82d3c93b63193e219b6993711 EBUILD xbmc-13.1.ebuild 9150 SHA256 a70b37e6b2053daf3eb1241a09043c675aeb66a80d8f07c947dd53219fb7c7e6 SHA512 a3fef5b26e087c71f286d541701da62bcf72a16ce356af2419f6b2c2917d7eb6342af7292fb151203861e7431a076d3170f9e9fbd929e05959afeebd466a9e56 WHIRLPOOL 16d12138b4c4001f71c3d4cc571c83986a468522f88976b0da7651080c0307472cf65f61978a7377439eb1aeebc5122e541457d492a73e7e5ad90e484ba75a74 +EBUILD xbmc-13.2.ebuild 9150 SHA256 a43671babee7466b4642a4394b2b8fbb1ad731684f9f9e19262ec0962d881cc5 SHA512 718c5c69d0a18fe85bdf176c4857075e4e46e752f64c0cb82a544607dad545c0540d4545b66593f3acbda032a31d4f2919486fa87304c937e60343aec2e445f0 WHIRLPOOL eb9312e929c41cc22599303163b87520b407918f36ad71d4628d86a3de70af082dc803fb8b50f06d43a201d055dfb0e32e36a92ae59b18b51ddef9ecdd766288 EBUILD xbmc-9999.ebuild 9271 SHA256 442af1d7f74df8de5856cb4893489f7c0ff0456318694f39aeb66ec20cfdcbea SHA512 706affca6861ed06862ceaf647f0deeb484a9f1cef0cf6003874495a1f8cf77517e557299f49184b0231f600836702555dbbcbd17ff36b3f8bbdbd44d66fddcd WHIRLPOOL 25bb56c23d75c1c054098e45c2955e92f866e53a61db875ff72ddd6c3961d3dcb98f763a04bc7dba48223f3a10a0f8c94718e7d4522b585a6cb64c7ee9ba3108 -MISC ChangeLog 35635 SHA256 f5000f41260fe3c7d6bcf34bfc407a9cbdb5af2a82f45617659a71a4c7c40168 SHA512 d60cec55c3bb0db02292259691501e943c16b3996dd1a422cc99fbd2de2bf58bb1cf42f2d58091ee7f77a5b1cdb9c77f9a79abff90650e2a4f7f8d0d579a9e31 WHIRLPOOL 1dd09b369232977dee36ab0a4d1b201ca6df8aa532ce8b2998c0ecb991dd2dcf3589328af1932960314b6e486736812847fb1c14ab416a4cd37cf52e12dfabfc +MISC ChangeLog 35771 SHA256 5822f3a2a8005bdb29b73c8fa13640e02ae973c2849af4433b3b5fbc0da7d6a7 SHA512 be1ef03e90cde3139bd0542735a27359ea246ebc4960c0a608c7f7e13f3eb6db41642527ba1a74fce25c3e50c89f764e01e87188e1d66d7368305d00cd7f1b66 WHIRLPOOL c15005e45080d6e5e90d40c6ec95acecef0a21e81b1dd5ebcd94056ee1379244568f9351fc8d2859e406dd3b789260f1f6a8682945cb8146f3aa71567bedf5b4 MISC metadata.xml 1140 SHA256 00929104e646c293b0ee5dc8a42701b940a0e908f7293c15a277ce138a56999a SHA512 e6a4b148543b613ffad57925310bc7562629e18f726cc958bf2de64020b0ec3d72cf82eb2e506a194c1c3610361d96ff41245d1e7a411be08f87719abbb80410 WHIRLPOOL 92f8748f2fedb7fe0bd34ed29e4e4ff25cb55b7ceacc15a9a4c561c3544530d216d5494de1862591156f3290e641a38aa91000c2b33e850d8a923e1818eb5ac1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJT6ZyDAAoJEPGu1DbS6WIAX5MP/jaZXXZY4CMa/YQxH+CXLzxH -DaNtZggNO8bx/qahb/qgDz4qi85VPqB8kXJLdM6eUMSBiNXK9fCQQsXFXdXJ/T11 -/0LQ3v4r4atsiy8Ejk+DX9mVw5o6/ISx5//+YLefqkmdrqKrTROVnk47Huj8+mhn -IA9kA797NtSKv3EBL4EVvwsX0dKAmANakeFn4wncJ5TSQmkGOsi5GP44o8uMpG3K -8/GQpocJRpfGnyKLL83W00YT3nbiRMNZUmK0IjFni5B4hvs7gDy7iJ+LCsIeb4yf -u+WGb3xO3/rYzez9CnyQ1vZZ/NURMdKrEmHOWkF6mhvM4HP+tlCmPtSEFnwC6Vqz -cnwSdRZKyf3vyemAbEOK2xSjUWvdYtZ5ES9AAcfoPoQk7qW5ql9l/3oUiYBPGPTG -plqOViDK1vLaez0Fz4PwhKPHFIBf0w4ObOqHk5F80swrLueTbyUNy/aU5YKBzuKB -62GdgPDXDVFw4f8gHh43KN2vXgmHWRRGEtYiE0aH9FQFUr8gKRvvAMixhtcva4JD -UvvXhoxTPAV1UrWqOdfWdYRkPOUgsOeUJfjgDqxXx5eGOhzRHweyxVNN90rR4K25 -12iU5miL4dP9Xwv/NV2ykemi2CXs5eliNBtcceXn0aNxgyP0S/8H9mqZUCVxR7KY -dPmvk0ClkYDbYtE4bq+2 -=o6Mk +iQIcBAEBCAAGBQJT9gzGAAoJEPGu1DbS6WIABu8P/1TpF/drh//NpndmHG2Ml44Y +D+V7pO2emj8fbzDrWoIP6nrvFoSSJ7JONfqH/rmCWIjFz2X8VI8NDs8VSKpwfwSx +u97kB+B2pSYayB+hkiAH/CHPKAE5q/hw6+M89Vb20dAFxZG7j9ZLiZiYcTKe7DI/ +/IcwDFYut/sxeLjpnhq+cJykomVYLz30Ra9BQc4EV0Hzm/uvq8R02vA/Kmk6XW70 +nrBDvLgWpTEc3wG5H5CbKo216hNBw1tPEuT12MDC+WaPkCKiUyV3MIVvEhpw+sn1 +ChiHzhCiaSPTgiZM79hSkwSOldnedzYRjCy12ENKQfLbeLJZiSLX7BlOQoAOzEt4 +boKqgL/O/xOPMqI5v6153TPId3eMrxwka9mSQH1y1ZYi6UQvUR1dBCnx4qJc6Dem +2bmRCiBUOwxYqjamNMGQQe3BYXU2MrHBL4nhqc+HMAHaK5OXcCC87BLk5HTRfHYF +DlvPOWj0geFnv4r8Y5VGKoxpM+Ddfs+a1n8WdZ39h5a5zG20OEDfuhLvTZwra71p +cGeGpZQzwUuzxV/2jCzABORU7GsCj1jCu3LgphwG3ValbVyd2MpHwLJav8ZdEbVX +DJFjMkbBHkJDYjm6bU85VqdZiX16f3KsVb3Luv/PUalzrcN2NRecuG1DV9k+YlJO +ktAhDNjL2HO2sA9AFkGW +=nHqR -----END PGP SIGNATURE----- diff --git a/media-tv/xbmc/xbmc-13.2.ebuild b/media-tv/xbmc/xbmc-13.2.ebuild new file mode 100644 index 000000000000..916104d09f40 --- /dev/null +++ b/media-tv/xbmc/xbmc-13.2.ebuild @@ -0,0 +1,305 @@ +# 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-13.2.ebuild,v 1.1 2014/08/21 15:14:10 vapier Exp $ + +EAPI="5" + +# Does not work with py3 here +# It might work with py:2.5 but I didn't test that +PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_REQ_USE="sqlite" + +inherit eutils python-single-r1 multiprocessing autotools + +CODENAME="Gotham" +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 )" + ;; +*_alpha*|*_beta*|*_rc*) + MY_PV="${CODENAME}_${PV#*_}" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/xbmc/xbmc/archive/${MY_PV}.tar.gz -> ${P}.tar.gz + !java? ( mirror://gentoo/${P}-generated-addons.tar.xz )" + KEYWORDS="~amd64 ~x86" + S=${WORKDIR}/${MY_P} + ;; +*|*_p*) + MY_PV=${PV/_p/_r} + MY_P="${PN}-${MY_PV}" + SRC_URI="http://mirrors.xbmc.org/releases/source/${MY_P}.tar.gz + http://mirrors.xbmc.org/releases/source/${MY_P}-generated-addons.tar.xz" + KEYWORDS="~amd64 ~x86" + + S=${WORKDIR}/${MY_P}-${CODENAME} + ;; +esac + +DESCRIPTION="XBMC is a free and open source media-player and entertainment hub" +HOMEPAGE="http://xbmc.org/" + +LICENSE="GPL-2" +SLOT="0" +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" +REQUIRED_USE=" + pvr? ( mysql ) + rsxs? ( X ) + X? ( sdl ) + xrandr? ( X ) +" + +COMMON_DEPEND="${PYTHON_DEPS} + app-arch/bzip2 + app-arch/unzip + app-arch/zip + app-i18n/enca + airplay? ( app-pda/libplist ) + dev-libs/boost + dev-libs/fribidi + dev-libs/libcdio[-minimal] + cec? ( >=dev-libs/libcec-2.1 ) + dev-libs/libpcre[cxx] + >=dev-libs/lzo-2.04 + dev-libs/tinyxml[stl] + dev-libs/yajl + dev-python/simplejson[${PYTHON_USEDEP}] + media-fonts/corefonts + media-fonts/roboto + media-libs/alsa-lib + media-libs/flac + media-libs/fontconfig + media-libs/freetype + >=media-libs/glew-1.5.6 + media-libs/jasper + media-libs/jbigkit + >=media-libs/libass-0.9.7 + bluray? ( media-libs/libbluray ) + css? ( media-libs/libdvdcss ) + media-libs/libmad + media-libs/libmodplug + media-libs/libmpeg2 + media-libs/libogg + media-libs/libpng + projectm? ( media-libs/libprojectm ) + media-libs/libsamplerate + sdl? ( media-libs/libsdl[sound,opengl,video,X] ) + alsa? ( media-libs/libsdl[alsa] ) + >=media-libs/taglib-1.8 + media-libs/libvorbis + sdl? ( + media-libs/sdl-gfx + >=media-libs/sdl-image-1.2.10[gif,jpeg,png] + media-libs/sdl-mixer + media-libs/sdl-sound + ) + media-libs/tiff + pulseaudio? ( media-sound/pulseaudio ) + media-sound/wavpack + || ( >=media-video/ffmpeg-1.2.1:0=[encode] ( media-libs/libpostproc >=media-video/libav-10_alpha:=[encode] ) ) + rtmp? ( media-video/rtmpdump ) + avahi? ( net-dns/avahi ) + nfs? ( net-fs/libnfs ) + webserver? ( net-libs/libmicrohttpd[messages] ) + sftp? ( net-libs/libssh[sftp] ) + net-misc/curl + samba? ( >=net-fs/samba-3.4.6[smbclient(+)] ) + bluetooth? ( net-wireless/bluez ) + sys-apps/dbus + caps? ( sys-libs/libcap ) + sys-libs/zlib + virtual/jpeg + usb? ( virtual/libusb ) + mysql? ( virtual/mysql ) + opengl? ( + virtual/glu + virtual/opengl + ) + gles? ( + virtual/opengl + media-libs/mesa[gles2] + ) + vaapi? ( x11-libs/libva[opengl] ) + vdpau? ( + || ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 ) + || ( >=media-video/ffmpeg-1.2.1:0=[vdpau] >=media-video/libav-10_alpha:=[vdpau] ) + ) + X? ( + x11-apps/xdpyinfo + x11-apps/mesa-progs + x11-libs/libXinerama + xrandr? ( x11-libs/libXrandr ) + x11-libs/libXrender + )" +RDEPEND="${COMMON_DEPEND} + udisks? ( sys-fs/udisks:0 ) + upower? ( || ( sys-power/upower sys-power/upower-pm-utils ) )" +DEPEND="${COMMON_DEPEND} + app-arch/xz-utils + dev-lang/swig + dev-util/gperf + X? ( x11-proto/xineramaproto ) + dev-util/cmake + x86? ( dev-lang/nasm ) + java? ( virtual/jre )" +# Force java for latest git version to avoid having to hand maintain the +# generated addons package. #488118 +[[ ${PV} == "9999" ]] && DEPEND+=" virtual/jre" + +pkg_setup() { + python-single-r1_pkg_setup + + if has_version 'media-video/libav' ; then + ewarn "Building ${PN} against media-video/libav is not supported upstream." + ewarn "It requires building a (small) wrapper library with some code" + ewarn "from media-video/ffmpeg." + ewarn "If you experience issues, please try with media-video/ffmpeg." + fi +} + +src_unpack() { + [[ ${PV} == "9999" ]] && git-2_src_unpack || default +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-9999-nomythtv.patch + epatch "${FILESDIR}"/${PN}-9999-no-arm-flags.patch #400617 + # The mythtv patch touches configure.ac, so force a regen + rm -f configure + + # some dirs ship generated autotools, some dont + multijob_init + local d + for d in $(printf 'f:\n\t@echo $(BOOTSTRAP_TARGETS)\ninclude bootstrap.mk\n' | emake -f - f) ; do + [[ -e ${d} ]] && continue + pushd ${d/%configure/.} >/dev/null || die + AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" \ + multijob_child_init eautoreconf + popd >/dev/null + done + multijob_finish + elibtoolize + + [[ ${PV} == "9999" ]] && emake -f codegenerator.mk + + # Disable internal func checks as our USE/DEPEND + # stuff handles this just fine already #408395 + export ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes + + local squish #290564 + use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec" + use sse && squish="-DSQUISH_USE_SSE=1 -msse" + use sse2 && squish="-DSQUISH_USE_SSE=2 -msse2" + sed -i \ + -e '/^CXXFLAGS/{s:-D[^=]*=.::;s:-m[[:alnum:]]*::}' \ + -e "1iCXXFLAGS += ${squish}" \ + lib/libsquish/Makefile.in || die + + # Fix XBMC's final version string showing as "exported" + # instead of the SVN revision number. + export HAVE_GIT=no GIT_REV=${EGIT_VERSION:-exported} + + # avoid long delays when powerkit isn't running #348580 + sed -i \ + -e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \ + xbmc/linux/*.cpp || die + + epatch_user #293109 + + # Tweak autotool timestamps to avoid regeneration + find . -type f -exec touch -r configure {} + +} + +src_configure() { + # Disable documentation generation + export ac_cv_path_LATEX=no + # Avoid help2man + export HELP2MAN=$(type -P help2man || echo true) + # No configure flage for this #403561 + export ac_cv_lib_bluetooth_hci_devid=$(usex bluetooth) + # Requiring java is asine #434662 + [[ ${PV} != "9999" ]] && export ac_cv_path_JAVA_EXE=$(which $(usex java java true)) + + econf \ + --docdir=/usr/share/doc/${PF} \ + --disable-ccache \ + --disable-optimizations \ + --enable-external-libraries \ + $(has_version 'media-video/libav' && echo "--enable-libav-compat") \ + $(use_enable airplay) \ + $(use_enable avahi) \ + $(use_enable bluray libbluray) \ + $(use_enable caps libcap) \ + $(use_enable cec libcec) \ + $(use_enable css dvdcss) \ + $(use_enable debug) \ + $(use_enable fishbmc) \ + $(use_enable gles) \ + $(use_enable goom) \ + --disable-hal \ + $(use_enable joystick) \ + $(use_enable midi mid) \ + $(use_enable mysql) \ + $(use_enable nfs) \ + $(use_enable opengl gl) \ + $(use_enable profile profiling) \ + $(use_enable projectm) \ + $(use_enable pulseaudio pulse) \ + $(use_enable pvr mythtv) \ + $(use_enable rsxs) \ + $(use_enable rtmp) \ + $(use_enable samba) \ + $(use_enable sdl) \ + $(use_enable sftp ssh) \ + $(use_enable usb libusb) \ + $(use_enable upnp) \ + $(use_enable vaapi) \ + $(use_enable vdpau) \ + $(use_enable webserver) \ + $(use_enable X x11) \ + $(use_enable xrandr) +} + +src_install() { + default + rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}* + + domenu tools/Linux/xbmc.desktop + newicon media/icon48x48.png xbmc.png + + # Remove optional addons (platform specific and disabled by USE flag). + local disabled_addons=( + repository.pvr-{android,ios,osx{32,64},win32}.xbmc.org + visualization.dxspectrum + ) + 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/}" + + # Punt simplejson bundle, we use the system one anyway. + rm -rf "${ED}"/usr/share/xbmc/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 + + # 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-* + dosym /usr/share/fonts/roboto/Roboto-Regular.ttf \ + /usr/share/xbmc/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 + + python_domodule tools/EventClients/lib/python/xbmcclient.py + python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send +} + +pkg_postinst() { + elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual" +} |