phonon-vlc-0.9.1.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. MY_PN="phonon-backend-vlc"
  5. MY_P="${MY_PN}-${PV}"
  6. if [[ ${PV} != *9999* ]]; then
  7. SRC_URI="mirror://kde/stable/phonon/${MY_PN}/${PV}/${MY_P}.tar.xz"
  8. KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd"
  9. S="${WORKDIR}/${MY_P}"
  10. else
  11. EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
  12. inherit git-r3
  13. fi
  14. inherit cmake-utils multibuild
  15. DESCRIPTION="Phonon VLC backend"
  16. HOMEPAGE="https://phonon.kde.org/"
  17. LICENSE="LGPL-2.1+ || ( LGPL-2.1 LGPL-3 )"
  18. SLOT="0"
  19. IUSE="debug +qt4 qt5"
  20. REQUIRED_USE="|| ( qt4 qt5 )"
  21. RDEPEND="
  22. >=media-libs/phonon-4.9.0[qt4=,qt5=]
  23. >=media-video/vlc-2.0.1:=[dbus,ogg,vorbis]
  24. qt4? (
  25. dev-qt/qtcore:4
  26. dev-qt/qtgui:4
  27. )
  28. qt5? (
  29. dev-qt/qtcore:5
  30. dev-qt/qtgui:5
  31. dev-qt/qtwidgets:5
  32. )
  33. "
  34. DEPEND="${RDEPEND}
  35. virtual/pkgconfig
  36. "
  37. DOCS=( AUTHORS )
  38. pkg_setup() {
  39. MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
  40. }
  41. src_configure() {
  42. myconfigure() {
  43. local mycmakeargs=()
  44. if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
  45. mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=OFF )
  46. fi
  47. if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
  48. mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=ON )
  49. fi
  50. cmake-utils_src_configure
  51. }
  52. multibuild_foreach_variant myconfigure
  53. }
  54. src_compile() {
  55. multibuild_foreach_variant cmake-utils_src_compile
  56. }
  57. src_test() {
  58. multibuild_foreach_variant cmake-utils_src_test
  59. }
  60. src_install() {
  61. multibuild_foreach_variant cmake-utils_src_install
  62. }