blob: 95467aeea30b7a972d287bf725cde3ca0c9e6047 (
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: $
inherit webapp eutils depend.php
DESCRIPTION="amaroK Web Frontend"
HOMEPAGE="http://amarokwebfront.sourceforge.net/"
SRC_URI="mirror://sourceforge/amarokwebfront/${P}.tar.bz2"
LICENSE="GPL-2"
IUSE="mysql postgres"
S=${WORKDIR}/${PN}
need_php
pkg_setup () {
webapp_pkg_setup
local php_flags
use mysql && php_flags="${php_flags} mysql"
use postgres && php_flags="${php_flags} postgres"
require_php_with_use ${php_flags}
}
src_install() {
webapp_src_preinst
local docs="README CHANGELOG DISCLAIMER LICENSE"
dodoc ${docs}
rm -f ${docs} INSTALL DISCLAIMER obsidianmusic.kateprj
rm -r daemon
insinto "${MY_HTDOCSDIR}"
doins -r .
webapp_serverowned "${MY_HTDOCSDIR}"/inc/cache
webapp_configfile "${MY_HTDOCSDIR}"/inc/config.php
webapp_configfile "${MY_HTDOCSDIR}"/inc/auth.users.php
webapp_src_install
}
|