Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102825 | Differences between
and this patch

Collapse All | Expand All

(-)acid-0.9.6_beta23.ebuild.orig (-12 / +4 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.12 2005/07/09 18:41:59 swegener Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.12 2005/07/09 18:41:59 swegener Exp $
4
4
5
inherit webapp versionator eutils
5
inherit webapp versionator eutils depend.php
6
6
7
MY_P=${P/_beta/b}
7
MY_P=${P/_beta/b}
8
S=${WORKDIR}/${PN}
8
S=${WORKDIR}/${PN}
Lines 20-42 Link Here
20
	>=dev-php/adodb-4.0.5
20
	>=dev-php/adodb-4.0.5
21
	>=dev-php/jpgraph-1.12.2
21
	>=dev-php/jpgraph-1.12.2
22
	media-libs/gd
22
	media-libs/gd
23
	=dev-php/mod_php-4*"
23
	=virtual/httpd-php-4*"
24
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}
25
	>=sys-apps/sed-4"
25
	>=sys-apps/sed-4"
26
26
27
pkg_setup() {
27
pkg_setup() {
28
	webapp_pkg_setup
28
	webapp_pkg_setup
29
29
30
	built_with_use dev-php/mod_php gd || \
30
	need_php4
31
		die "dev-php/mod_php must be built with USE=gd"
31
	require_php_with_use gd session
32
33
	# If mod_php used is >= 5.0.0, it has to have session useflag enabled.
34
	local ver_modphp=$(best_version dev-php/mod_php)
35
	ver_modphp="${ver_modphp/dev-php\/mod_php-/}"
36
	if [[ $(get_major_version ${ver_modphp}) -ge 5 ]] ; then
37
		built_with_use dev-php/mod_php session || \
38
			die "dev-php/mod_php must be built with USE=session"
39
	fi
40
}
32
}
41
33
42
src_unpack() {
34
src_unpack() {

Return to bug 102825