blob: a4d9b3f0b9eb60c2d4b28e161d7e3f1e02dfb9d4 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils multilib
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-ShareAlike-NonCommercial-2.5"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-perl/JSON-XS
dev-perl/HTTP-Server-Simple
dev-perl/Class-Accessor"
src_prepare() {
epatch "${FILESDIR}"/${P}-run-in-foreground.diff
epatch "${FILESDIR}"/${P}-json-fix.diff
sed -i -e 's@themeroot = ./themes@themeroot=/usr/share/davemp/themes@' davemp.conf || die
sed -i -e "s@use lib './lib'@use lib '/usr/$(get_libdir)/davemp/'@" davempd.pl || die
}
src_install() {
dobin davempd.pl || die
doinitd "${FILESDIR}"/davemp || die
dodoc README Changelog || die
insinto /usr/share/${PN}
doins -r themes || die
insinto /usr/$(get_libdir)/${PN}
doins -r lib/* || die
insinto /etc
doins davemp.conf || die
}
pkg_postinst() {
enewuser mpd "" "" "/var/lib/mpd" audio
}
|