summaryrefslogtreecommitdiff
blob: b3d6dfbc8fda17782289b6dfb859acda33bfe1f8 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-radius/pecl-radius-1.2.5-r2.ebuild,v 1.2 2013/03/29 20:51:41 olemarkus Exp $

EAPI=5

PHP_EXT_NAME="radius"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"

USE_PHP="php5-5 php5-3 php5-4"

inherit php-ext-pecl-r2

KEYWORDS="~amd64 ~x86"

DESCRIPTION="Provides full support for RADIUS authentication (RFC 2865) and RADIUS accounting (RFC 2866)."
LICENSE="BSD BSD-2"
SLOT="0"
IUSE="examples"

src_prepare() {
	# Remove this in the next release
	if use php_targets_php5-4 ; then
		sed -i -e 's,function_entry,zend_function_entry,' \
		"${WORKDIR}/php5.4/radius.c"
	fi
	php-ext-source-r2_src_prepare
}