baka-mplayer-2.0.4.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils qmake-utils
  5. DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
  6. HOMEPAGE="http://bakamplayer.u8sand.net/"
  7. SRC_URI="https://github.com/u8sand/Baka-MPlayer/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="dev-qt/qtcore:5
  13. dev-qt/qtgui:5
  14. dev-qt/qtnetwork:5
  15. dev-qt/qtsvg:5
  16. dev-qt/qtwidgets:5
  17. dev-qt/qtx11extras:5
  18. media-video/mpv[libmpv]
  19. x11-libs/libX11"
  20. DEPEND="${RDEPEND}
  21. virtual/pkgconfig"
  22. S="${WORKDIR}/Baka-MPlayer-${PV}"
  23. src_prepare() {
  24. # no need to install license
  25. sed -e '/^INSTALLS/s:license::' -i src/Baka-MPlayer.pro || die
  26. # put manual in our docdir
  27. sed -e '/^manual.path/s:'${PN}':'${PF}':' -i src/Baka-MPlayer.pro || die
  28. epatch "${FILESDIR}/${P}-gcc5.patch"
  29. }
  30. src_configure() {
  31. eqmake5 \
  32. INSTROOT="${D}" \
  33. CONFIG+=install_translations \
  34. lrelease="$(qt5_get_bindir)"/lrelease \
  35. lupdate="$(qt5_get_bindir)"/lupdate \
  36. src/Baka-MPlayer.pro
  37. }