1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 # we need webapp's default pkg_setup()
10 DESCRIPTION="An uncomplicated web-based bug tracking system"
11 HOMEPAGE="http://flyspray.org/"
12 SRC_URI="http://flyspray.org/${P}.zip"
18 # need_apache and friends not used because they aren't EAPI="2" friendly
19 DEPEND="app-arch/unzip"
20 RDEPEND="graphviz? ( media-gfx/graphviz )
22 || ( =dev-lang/php-5.3*[mysql]
23 =dev-lang/php-5.3*[mysqli]
24 =dev-lang/php-5.3*[postgres] )
28 #http://bugs.flyspray.org/task/1617
29 epatch "${FILESDIR}"/${P}-system-adodb.patch
31 mv htaccess.dist .htaccess || die
32 touch ${PN}.conf.php || die
34 rm -r adodb || die "removing bundled dev-php/adodb"
40 dodoc docs/*.txt || die
43 insinto "${MY_HTDOCSDIR}"
46 webapp_serverowned "${MY_HTDOCSDIR}"/{attachments,cache,${PN}.conf.php}
47 webapp_configfile "${MY_HTDOCSDIR}"/{.htaccess,${PN}.conf.php}
49 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt