summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2012-08-02 11:47:14 +0000
committerOle Markus With <olemarkus@gentoo.org>2012-08-02 11:47:14 +0000
commite866a4aeaa86bf3b3c621d8215362f4b495117d9 (patch)
treeca818557d709e6bf998ea403d455f30483efbc10 /dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild
parentAdd missing dependency on kdepimlibs thanks to Cesko Voeten <cvoeten@gmail.co... (diff)
downloadgentoo-2-e866a4aeaa86bf3b3c621d8215362f4b495117d9.tar.gz
gentoo-2-e866a4aeaa86bf3b3c621d8215362f4b495117d9.tar.bz2
gentoo-2-e866a4aeaa86bf3b3c621d8215362f4b495117d9.zip
Fix php 5.4 support. Bug 409963
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild')
-rw-r--r--dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild b/dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild
new file mode 100644
index 000000000000..dd039acb10e3
--- /dev/null
+++ b/dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-syck/pecl-syck-0.9.3-r2.ebuild,v 1.1 2012/08/02 11:47:14 olemarkus Exp $
+
+EAPI="4"
+
+PHP_EXT_NAME="syck"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+DOCS="CHANGELOG TODO"
+
+USE_PHP="php5-4 php5-3"
+inherit php-ext-pecl-r2
+
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+DESCRIPTION="PHP bindings for Syck - reads and writes YAML with it."
+LICENSE="PHP-3.01"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-libs/syck
+ || ( <dev-lang/php-5.3.1[hash,spl] >=dev-lang/php-5.3.1[hash] )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ local slot
+ for slot in $(php_get_slots); do
+ php_init_slot_env ${slot}
+ epatch "${FILESDIR}"/fix-php-5-4-support.patch
+ done
+ php-ext-source-r2_src_prepare
+}