summaryrefslogtreecommitdiff
blob: bdf45373585d8ee2b7e9cf8e8f6a1b80dc8969f2 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/PHPonTrax/PHPonTrax-0.14.0.ebuild,v 1.1 2007/11/29 23:42:39 jokey Exp $

inherit php-pear-r1 depend.php depend.apache

DESCRIPTION="Web-application and persistance framework based on Ruby on Rails"
HOMEPAGE="http://www.phpontrax.org/"
SRC_URI="http://pear.phpontrax.com/get/${P}.tgz"

LICENSE="MIT"
SLOT="0"
IUSE="mysql postgres sqlite"

KEYWORDS="~amd64 ~x86"

DEPEND=">=dev-php/PEAR-PEAR-1.6.2"
RDEPEND="dev-php/PEAR-MDB2
	dev-php/PEAR-Mail
	dev-php/PEAR-Mail_Mime
	mysql? ( dev-php/PEAR-MDB2_Driver_mysql )
	postgres? ( dev-php/PEAR-MDB2_Driver_pgsql )
	sqlite? ( dev-php/PEAR-MDB2_Driver_sqlite )
	!mysql? ( !postgres? ( !sqlite? ( dev-php/PEAR-MDB2_Driver_mysql ) ) )"

need_php5_httpd
need_apache2

pkg_setup() {
	# We are not checking for php database features since
	# the PEAR-MDB2_* ebuilds in RDEPEND already take care of this.
	require_php_sapi_from apache2 cgi
	require_php_with_use session imap
}

pkg_postinst() {
	ewarn "This packages requires that you enable mod_rewrite in apache-2."
}