12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- # Copyright 1999-2015 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=5
- inherit eutils fdo-mime gnome2-utils
- DESCRIPTION="Xine movie player"
- HOMEPAGE="http://xine.sourceforge.net/"
- SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS="amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
- IUSE="aalib curl debug libcaca lirc nls readline vdr X xinerama"
- RDEPEND="|| ( app-arch/tar app-arch/libarchive )
- media-libs/libpng:0=
- >=media-libs/xine-lib-1.2:=[aalib?,libcaca?]
- virtual/jpeg:0
- aalib? ( media-libs/aalib:= )
- curl? ( >=net-misc/curl-7.10.2:= )
- libcaca? ( media-libs/libcaca:= )
- lirc? ( app-misc/lirc:= )
- nls? ( virtual/libintl )
- readline? ( >=sys-libs/readline-6.2:= )
- X? (
- x11-libs/libICE:=
- x11-libs/libSM:=
- x11-libs/libX11:=
- x11-libs/libXext:=
- x11-libs/libXft:=
- x11-libs/libXrender:=
- x11-libs/libXScrnSaver:=
- x11-libs/libXtst:=
- x11-libs/libXv:=
- x11-libs/libXxf86vm:=
- xinerama? ( x11-libs/libXinerama:= )
- )"
- DEPEND="${RDEPEND}
- nls? ( >=sys-devel/gettext-0.18.3 )
- X? (
- x11-libs/libXt
- x11-proto/inputproto
- x11-proto/xf86vidmodeproto
- xinerama? ( x11-proto/xineramaproto )
- )
- virtual/pkgconfig"
- src_prepare() {
- epatch "${FILESDIR}"/${P}-readline-6.3.patch
- rm -f misc/xine-bugreport
- }
- src_configure() {
- econf \
- $(use_enable nls) \
- $(use_enable xinerama) \
- $(use_enable lirc) \
- $(use_enable vdr vdr-keys) \
- --disable-nvtvsimple \
- $(use_enable debug) \
- $(use_with X x) \
- $(use_with readline) \
- $(use_with curl) \
- $(use_with aalib) \
- $(use_with libcaca caca) \
- --without-fb
- }
- src_install() {
- emake \
- DESTDIR="${D}" \
- docdir="/usr/share/doc/${PF}" \
- docsdir="/usr/share/doc/${PF}" \
- install
- dodoc AUTHORS ChangeLog NEWS README
- }
- pkg_preinst() {
- gnome2_icon_savelist
- }
- pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- gnome2_icon_cache_update
- }
- pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- gnome2_icon_cache_update
- }
|