blob: 8227759abf0f2d628e7fcd618d317ea630c6b739 (
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/"
# upstream mirrors such way too much to be usable, mirroring manually
SRC_URI="http://dev.gentooexperimental.org/~jakub/distfiles/${P}.tar.gz
mirror://mysql/Downloads/${PN}/${P}.tar.gz"
LICENSE="GPL-2 PHP LGPL-2.1"
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 TODO UPGRADE"
local files="config templates_c locks logs logs/errors.log"
dodoc ${docs}
dohtml docs/*
cp -r . "${D}"${MY_HTDOCSDIR}
for doc in ${docs} COPYING; do
rm -r "${D}"/${MY_HTDOCSDIR}/${doc}
done
for a in ${files}; do
webapp_serverowned ${MY_HTDOCSDIR}/${a}
done
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_src_install
}
|