tsmuxer-2.6.11.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils qt4-r2
  5. DESCRIPTION="Utility to create and demux TS and M2TS files"
  6. HOMEPAGE="http://forum.doom9.org/showthread.php?t=168539"
  7. SRC_URI="https://drive.google.com/uc?export=download&id=0B0VmPcEZTp8NekJxLUVJRWMwejQ -> ${P}.tar.gz
  8. http://gentoo.sbriesen.de/distfiles/tsmuxer-icon.png"
  9. LICENSE="SmartLabs"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="qt4"
  13. QA_FLAGS_IGNORED="opt/${PN}/bin/tsMuxeR opt/${PN}/bin/tsMuxerGUI"
  14. DEPEND="|| (
  15. >=app-arch/upx-ucl-3.01[lzma]
  16. >=app-arch/upx-bin-3.01
  17. )"
  18. RDEPEND="
  19. >=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
  20. qt4? (
  21. >=dev-libs/glib-2.34.3:2[abi_x86_32(-)]
  22. >=dev-qt/qtcore-4.8.5-r1:4[abi_x86_32(-)]
  23. >=dev-qt/qtgui-4.8.5-r2:4[abi_x86_32(-)]
  24. >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
  25. >=media-libs/libpng-1.2.51:1.2[abi_x86_32(-)]
  26. >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
  27. >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
  28. >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
  29. >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
  30. >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
  31. >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
  32. )
  33. "
  34. S="${WORKDIR}"
  35. src_prepare() {
  36. upx -d tsMuxeR tsMuxerGUI || die
  37. }
  38. src_install() {
  39. dodir /opt/bin
  40. exeinto /opt/${PN}/bin
  41. doexe tsMuxeR
  42. dosym ../${PN}/bin/tsMuxeR /opt/bin/tsMuxeR
  43. if use qt4; then
  44. doexe tsMuxerGUI
  45. dosym ../${PN}/bin/tsMuxerGUI /opt/bin/tsMuxerGUI
  46. newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
  47. make_desktop_entry tsMuxerGUI "tsMuxeR GUI" "${PN}" "Qt;AudioVideo;Video"
  48. fi
  49. }