blob: ae016e03898ea13394c040d20fcf200293b2b281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools gnome2-utils xdg-utils
DESCRIPTION="Xine movie player"
HOMEPAGE="https://xine-project.org/home"
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}
virtual/pkgconfig
nls? ( >=sys-devel/gettext-0.18.3 )
X? (
x11-base/xorg-proto
x11-libs/libXt
)
"
PATCHES=(
"${FILESDIR}"/${P}-desktop.patch
"${FILESDIR}"/${P}-libcaca.patch
)
src_prepare() {
default
eautoreconf
rm misc/xine-bugreport || die
}
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() {
# xine-list apparently may cause sandbox violation, bug 654394
addpredict /dev/dri
emake \
DESTDIR="${D}" \
docdir="/usr/share/doc/${PF}" \
docsdir="/usr/share/doc/${PF}" \
install
einstalldocs
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
|