xine-ui-0.99.9.ebuild 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit 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. rm -f misc/xine-bugreport
  46. }
  47. src_configure() {
  48. econf \
  49. $(use_enable nls) \
  50. $(use_enable xinerama) \
  51. $(use_enable lirc) \
  52. $(use_enable vdr vdr-keys) \
  53. --disable-nvtvsimple \
  54. $(use_enable debug) \
  55. $(use_with X x) \
  56. $(use_with readline) \
  57. $(use_with curl) \
  58. $(use_with aalib) \
  59. $(use_with libcaca caca) \
  60. --without-fb
  61. }
  62. src_install() {
  63. emake \
  64. DESTDIR="${D}" \
  65. docdir="/usr/share/doc/${PF}" \
  66. docsdir="/usr/share/doc/${PF}" \
  67. install
  68. dodoc AUTHORS ChangeLog NEWS README
  69. }
  70. pkg_preinst() {
  71. gnome2_icon_savelist
  72. }
  73. pkg_postinst() {
  74. fdo-mime_desktop_database_update
  75. fdo-mime_mime_database_update
  76. gnome2_icon_cache_update
  77. }
  78. pkg_postrm() {
  79. fdo-mime_desktop_database_update
  80. fdo-mime_mime_database_update
  81. gnome2_icon_cache_update
  82. }