summaryrefslogtreecommitdiff
blob: 1b2217ebd932e8360b8d364b183304987b140391 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-fileinfo/pecl-fileinfo-1.0.4-r2.ebuild,v 1.4 2011/04/16 19:49:38 angelos Exp $

EAPI="3"

PHP_EXT_NAME="fileinfo"
PHP_EXT_PECL_PKG="Fileinfo"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"

# fileinfo is bundled with php5.3
USE_PHP="php5-2"

inherit php-ext-pecl-r2

KEYWORDS="amd64 ~hppa ~x86"

DESCRIPTION="libmagic bindings for PHP."
LICENSE="PHP-3"
SLOT="0"
IUSE=""

DEPEND="sys-apps/file"
RDEPEND="${DEPEND}"

src_prepare() {
	for slot in $(php_get_slots) ; do
		cd "${WORKDIR}/${slot}"
		epatch "${FILESDIR}"/fileinfo-1.0.4-file-5.0-compat.patch
	done
	php-ext-source-r2_src_prepare
}