xine-ui-0.99.8.ebuild 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils fdo-mime gnome2-utils
  5. DESCRIPTION="Xine movie player"
  6. HOMEPAGE="http://xine.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
  11. IUSE="aalib curl debug libcaca lirc nls readline vdr X xinerama"
  12. RDEPEND="|| ( app-arch/tar app-arch/libarchive )
  13. media-libs/libpng:0=
  14. >=media-libs/xine-lib-1.2:=[aalib?,libcaca?]
  15. virtual/jpeg:0
  16. aalib? ( media-libs/aalib:= )
  17. curl? ( >=net-misc/curl-7.10.2:= )
  18. libcaca? ( media-libs/libcaca:= )
  19. lirc? ( app-misc/lirc:= )
  20. nls? ( virtual/libintl )
  21. readline? ( >=sys-libs/readline-6.2:= )
  22. X? (
  23. x11-libs/libICE:=
  24. x11-libs/libSM:=
  25. x11-libs/libX11:=
  26. x11-libs/libXext:=
  27. x11-libs/libXft:=
  28. x11-libs/libXrender:=
  29. x11-libs/libXScrnSaver:=
  30. x11-libs/libXtst:=
  31. x11-libs/libXv:=
  32. x11-libs/libXxf86vm:=
  33. xinerama? ( x11-libs/libXinerama:= )
  34. )"
  35. DEPEND="${RDEPEND}
  36. nls? ( >=sys-devel/gettext-0.18.3 )
  37. X? (
  38. x11-libs/libXt
  39. x11-proto/inputproto
  40. x11-proto/xf86vidmodeproto
  41. xinerama? ( x11-proto/xineramaproto )
  42. )
  43. virtual/pkgconfig"
  44. src_prepare() {
  45. epatch "${FILESDIR}"/${P}-readline-6.3.patch
  46. rm -f misc/xine-bugreport
  47. }
  48. src_configure() {
  49. econf \
  50. $(use_enable nls) \
  51. $(use_enable xinerama) \
  52. $(use_enable lirc) \
  53. $(use_enable vdr vdr-keys) \
  54. --disable-nvtvsimple \
  55. $(use_enable debug) \
  56. $(use_with X x) \
  57. $(use_with readline) \
  58. $(use_with curl) \
  59. $(use_with aalib) \
  60. $(use_with libcaca caca) \
  61. --without-fb
  62. }
  63. src_install() {
  64. emake \
  65. DESTDIR="${D}" \
  66. docdir="/usr/share/doc/${PF}" \
  67. docsdir="/usr/share/doc/${PF}" \
  68. install
  69. dodoc AUTHORS ChangeLog NEWS README
  70. }
  71. pkg_preinst() {
  72. gnome2_icon_savelist
  73. }
  74. pkg_postinst() {
  75. fdo-mime_desktop_database_update
  76. fdo-mime_mime_database_update
  77. gnome2_icon_cache_update
  78. }
  79. pkg_postrm() {
  80. fdo-mime_desktop_database_update
  81. fdo-mime_mime_database_update
  82. gnome2_icon_cache_update
  83. }