blob: 844f6a0cc85c84e49d8754d59fcd80d56991e48e (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmproxy/lastfmproxy-1.3b.ebuild,v 1.1 2008/04/11 23:39:07 yngwin Exp $
DESCRIPTION="A proxy server for listening to last.fm streams with any stream-capable audio player"
HOMEPAGE="http://vidar.gimp.org/lastfmproxy/"
SRC_URI="http://vidar.gimp.org/wp-content/uploads/2007/12/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
DEPEND=""
RDEPEND=""
src_install() {
BASE=/usr/share/lastfmproxy
cd "${S}"
dodoc README.txt ChangeLog.txt
insinto ${BASE}
doins -r *.py data
fperms 755 ${BASE}/changestation.py ${BASE}/main.py
newinitd "${FILESDIR}"/lastfmproxy.rc lastfmproxy
}
pkg_postinst() {
echo
einfo "Please modify:"
einfo " /usr/share/lastfmproxy/config.py"
einfo "with last.fm credentials and/or proxy information."
einfo ""
einfo "Then, to start lastfmproxy:"
einfo " /etc/init.d/lastfmproxy start"
einfo ""
einfo "Here's how to make the lastfm://station links work:"
einfo ' In Firefox, open the location "about:config"'
einfo ' Right-click, select "New String"'
einfo ' As name, enter "network.protocol-handler.app.lastfm"'
einfo ' As value, enter "/usr/share/lastfmproxy/changestation.py"'
echo
}
|