add old ebuilds from svn ub0rlay
[ub0rlay.git] / media-sound / remuco-server / remuco-server-0.7.2.ebuild
blobd4e4c1bd9f0abd829add43f53b3a22dd9a3b12cb
1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 inherit eutils
7 PROXY_V=${PV/2/1}
8 MY_PN="remuco"
10 DESCRIPTION="Remuco is a remote control system for Linux media players and
11 mobile devices equipped with Bluetooth or WLAN"
12 HOMEPAGE="http://remuco.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.gz
14 mirror://sourceforge/${MY_PN}/remuco-xmms2-${PROXY_V}.tar.gz
15 mirror://sourceforge/${MY_PN}/remuco-rhythmbox-${PROXY_V}.tar.gz"
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="amarok daemon mpd rhythmbox totem xmms2"
22 DEPEND="dev-libs/glib:2 dev-libs/dbus-glib net-wireless/bluez-libs"
23 RDEPEND="${DEPEND}
24 xmms2? ( dev-python/dbus-python )
25 rhythmbox? (
26 dev-python/dbus-python
27 >=media-sound/rhythmbox-0.11.5
28 )
29 "
31 pkg_preinst() {
32 use daemon && enewuser remuco -1 -1 /etc/remuco
33 }
35 src_install() {
36 emake install DESTDIR="${D}" || die "failed install remuco-server"
38 if use daemon ; then
39 keepdir /etc/remuco/.config/remuco
40 fowners remuco:root /etc/remuco/
41 fowners remuco:root /etc/remuco/.config
42 fowners remuco:root /etc/remuco/.config/remuco
43 dosym .config/remuco /etc/remuco/config
44 newinitd "${FILESDIR}/remuco-server.initd-0" remuco-server
45 fi
47 if use xmms2 ; then
48 cd "${S}/../remuco-xmms2-${PV}"
49 emake install DESTDIR="${D}" || die "failed install remuco-xmms2"
50 cd "$S"
51 einfo "run ln -s /usr/bin/remuco-xmms2 ~/.config/xmms2/startup.d to use\
52 remuco-xmms2 for your user account"
53 fi
55 if use rhythmbox ; then
56 cd ${S}/../remuco-rhythmbox-${PV}
57 emake install DESTDIR="${D}" || die "failed install remuco-rhythmbox"
58 cd "${S}"
59 fi
61 if use amarok ; then
62 insinto /usr/share/${PN}
63 newins ${FILESDIR}/amarok.bpp-0 amarok.bpp
64 use daemon && dosym /usr/share/${PN}/amarok.bpp /etc/remuco/config/
65 einfo "run ln -s /usr/share/${PN}/amarok.bpp ~/.config/remuco/ to use it"
66 fi
68 if use mpd ; then
69 insinto /usr/share/${PN}
70 newins ${FILESDIR}/mpd.bpp-0 mpd.bpp
71 use daemon && dosym /usr/share/${PN}/mpd.bpp /etc/remuco/config/
72 einfo "ln -s /usr/share/${PN}/mpd.bpp ~/.config/remuco/ to use it"
73 fi
75 if use totem ; then
76 insinto /usr/share/${PN}
77 newins ${FILESDIR}/totem.bpp-0 totem.bpp
78 use daemon && dosym /usr/share/${PN}/totem.bpp /etc/remuco/config/
79 einfo "ln -s /usr/share/${PN}/totem.bpp ~/.config/remuco/ to use it"
80 fi
81 }