summaryrefslogtreecommitdiff
blob: 2fcf8e7b3201a87a96ab69a97b9653ee7ac7efd4 (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-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit webapp

DESCRIPTION="dotProject is a PHP web-based project management framework"
HOMEPAGE="http://www.dotproject.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

RDEPEND="
	app-text/poppler[utils]
	dev-php/PEAR-Date
	virtual/httpd-php
"

need_httpd_cgi

PATCHES=(
	"${FILESDIR}"/${P}-pear-date.patch
)

src_install() {
	webapp_src_preinst

	dodoc ChangeLog README
	rm -r ChangeLog README lib/PEAR/Date.php lib/PEAR/Date || die

	mv includes/config{-dist,}.php || die

	insinto "${MY_HTDOCSDIR}"
	doins -r .

	webapp_serverowned "${MY_HTDOCSDIR}"/includes/config.php
	webapp_serverowned "${MY_HTDOCSDIR}"/files{,/temp}
	webapp_serverowned "${MY_HTDOCSDIR}"/locales/en

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