summaryrefslogtreecommitdiff
blob: 1ebb374415240b54371d59c619b76c572d08cfc4 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="lightweight low-dependency web interface to mpd"
HOMEPAGE="http://ion0.com/davemp/"
SRC_URI="http://ion0.com/davemp/downloads/files/${P}.tar.gz"

LICENSE="CCPL-Attribution-NonCommercial-ShareAlike-2.5"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="dev-perl/JSON-XS
	dev-perl/HTTP-Server-Simple
	dev-perl/Class-Accessor
	media-sound/mpd"

RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${WORKDIR}/${P}"
	sed -i 's_themeroot = ./themes_themeroot=/usr/share/davemp/themes_' "davemp.conf"
	sed -i "s_use lib './lib'_use lib '/usr/lib/davemp/'_" "davempd.pl"
}

src_install() {
	doinitd ${FILESDIR}/davemp
	insinto /usr/share/${PN}/
	doins -r themes
	insinto /usr/lib/${PN}/
	doins -r lib/*
	insinto /etc
	newins davemp.conf davemp.conf
	dobin davempd.pl
	dodoc README Changelog
}