blob: 000e9b92fa75438c73f1eba47ac3bf87dd0e69b3 (
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
# Copyright 2006-2007 BreakMyGentoo.org
# Copyright 2008-2008 Daniel Gryniewcz
# Distributed under the terms of the GNU General Public License v2
inherit distutils python
DESCRIPTION="Elisa is an open source, cross platform media center solution for Linux, MacOSX and Windows on top of GStreamer."
HOMEPAGE="http://elisa.fluendo.com/"
SRC_URI="http://elisa.fluendo.com/static/download/${PN}/${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~ppc ~x86"
IUSE="daap doc dvd hal ipod flash lirc upnp weather"
MAKEOPTS="-j1"
RDEPEND=">=dev-lang/python-2.5
dev-python/setuptools
>=dev-python/imaging-1
>=dev-python/twisted-2.2
dev-python/twisted-web
dev-python/pyopenssl
dev-python/pygtk
>=dev-python/pigment-python-0.3.5
>=media-libs/gstreamer-0.10.4
>=dev-python/gst-python-0.10
>=media-plugins/gst-plugins-ogg-0.10
>=media-plugins/gst-plugins-vorbis-0.10
>=media-plugins/gst-plugins-theora-0.10
media-plugins/libvisual-plugins:0.4
media-fonts/liberation-fonts
x11-misc/xdg-user-dirs
dev-python/pyxdg
dvd? (
media-libs/libdvdcss
>=media-plugins/gst-plugins-ffmpeg-0.10
>=media-libs/gst-plugins-bad-0.10
>=media-libs/gst-plugins-ugly-0.10
dev-python/tagpy
)
flash? (
>=media-plugins/gst-plugins-ffmpeg-0.10
>=media-libs/gst-plugins-bad-0.10
dev-python/gdata
)
lirc? (
app-misc/lirc
dev-python/pylirc
)
daap? (
dev-python/PythonDaap
>=sys-apps/dbus-1
>=dev-python/dbus-python-0.71
>=net-dns/avahi-0.6
)
hal? (
>=sys-apps/hal-0.5
>=dev-python/dbus-python-0.71
)
ipod? (
media-libs/libgpod
)
upnp? (
dev-python/coherence
)
weather? (
dev-python/pymetar
)"
DEPEND="${DEPEND}
>=dev-util/pkgconfig-0.9"
PDEPEND=">=media-plugins/elisa-plugins-good-${PV}
>=media-plugins/elisa-plugins-bad-${PV}
>=media-plugins/elisa-plugins-ugly-${PV}"
DOCS="AUTHORS ChangeLog COPYING NEWS FIRST_RUN"
pkg_setup() {
if use daap ; then
if built_with_use net-dns/avahi python ; then
einfo "Avahi Python bindings found ..."
else
eerror "Please rebuild net-dns/avahi with python support enabled!"
eerror "Try USE=\"python\" emerge net-dns/avahi,"
eerror "or add \"python\" to your USE string in /etc/make.conf and"
eerror "emerge net-dns/avahi."
die "USE flag \"python\" must be enabled in net-dns/avahi"
fi
fi
if use ipod ; then
if built_with_use media-libs/libgpod python ; then
einfo "libgpod Python bindings found ..."
else
eerror "Please rebuild media-libs/libgpod with python support enabled!"
eerror "Try USE=\"python\" emerge media-libs/libgpod,"
eerror "or add \"python\" to your USE string in /etc/make.conf and"
eerror "emerge media-libs/libgpod."
die "USE flag \"python\" must be enabled in media-libs/libgpod"
fi
fi
addpredict "/root/.gstreamer-0.10"
}
pkg_postinst() {
einfo "After first run of the box, edit elisa.conf and add some media"
einfo "locations in [xmlmenu:locaions_builder]"
einfo "e.g."
einfo "locations = ['file://./sample_data/pictures', 'file:///media/videos']"
einfo ""
einfo "If you get failures loading plugins, delete ~/.elisa"
einfo ""
einfo "Please replace gstreamer:gst_metadata_client with"
einfo "gstreamer:gst_metadata in your ~/.elisa/elisa.conf to get song"
einfo "metadata scanning"
}
|