summaryrefslogtreecommitdiff
blob: 2a49bfd296aeea20350b12ac40da0b93a11c83cb (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
46
47
48
49
50
51
52
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit webapp depend.php

DESCRIPTION="User-friendly and flexible issue tracking system in PHP"
HOMEPAGE="http://dev.mysql.com/downloads/other/eventum/"
# SRC_URI="mirror://mysql/Downloads/${PN}/${P}.tar.gz"
SRC_URI="ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/www.mysql.com/Downloads/${PN}/${P}.tar.gz"

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

DEPEND=""
RDEPEND="virtual/mysql
	virtual/cron
	virtual/httpd-cgi"

need_php_httpd

pkg_setup() {
	if ! PHPCHECKNODIE="yes" require_php_with_use pcre session mysql || \
		! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
			die "Re-install ${PHP_PKG} with pcre session mysql and either gd or gd-external in USE."
	fi
	webapp_pkg_setup
}

src_install() {
	webapp_src_preinst

	local docs="ChangeLog FAQ INSTALL README UPGRADE CONTRIB"
	local files="config.inc.php templates_c locks logs logs/errors.log setup.conf.php include/private_key.php"

	dodoc ${docs}
	dohtml docs/*

	cp -r . "${D}"${MY_HTDOCSDIR}
	for doc in ${docs} COPYING; do
		rm -r "${D}"/${MY_HTDOCSDIR}/${doc}
	done

	webapp_configfile ${MY_HTDOCSDIR}/config.inc.php
	for a in ${files}; do
		webapp_serverowned ${MY_HTDOCSDIR}/${a}
	done

	webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
	webapp_src_install
}