summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/eventum/eventum-2.1.ebuild')
-rw-r--r--www-apps/eventum/eventum-2.1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/www-apps/eventum/eventum-2.1.ebuild b/www-apps/eventum/eventum-2.1.ebuild
new file mode 100644
index 0000000..4df9620
--- /dev/null
+++ b/www-apps/eventum/eventum-2.1.ebuild
@@ -0,0 +1,53 @@
+# 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
+
+ webapp_configfile ${MY_HTDOCSDIR}/config.php
+ for a in ${files}; do
+ webapp_serverowned ${MY_HTDOCSDIR}/${a}
+ done
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}