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

# Source: http://bugs.gentoo.org/show_bug.cgi?id=88376
# Submitted-By: didibaba
# Reviewed-By: rl03 2005-12-16

inherit webapp depend.apache depend.php

DESCRIPTION="Yet another wiki written in PHP."
HOMEPAGE="http://www.wikini.net"
SRC_URI="http://www.wikini.net/download/${P}.tar.gz"

LICENSE="GPL-2 BSD"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

need_php_httpd
want_apache

S=${WORKDIR}/${PN}

pkg_setup() {
	require_php_with_use mysql
	webapp_pkg_setup
}

src_install () {
	webapp_src_preinst

	local docs="INSTALL README"
	dodoc ${docs}
	rm -f ${docs} COPYING LICENSE

	cp -R . "${D}"/${MY_HTDOCSDIR}

	touch ${MY_HTDOCSDIR}/wakka.config.php
	webapp_serverowned ${MY_HTDOCSDIR}/wakka.config.php

	webapp_src_install
}