[62591] trunk/dports/php
nox at macports.org
nox at macports.org
Mon Jan 11 11:42:43 PST 2010
Revision: 62591
http://trac.macports.org/changeset/62591
Author: nox at macports.org
Date: 2010-01-11 11:42:42 -0800 (Mon, 11 Jan 2010)
Log Message:
-----------
Create new port php5-xrange
xrange is a compiled extension that provides numeric iteration
primitives to PHP on top of SPL. It includes a lean numeric range
generator / iterator, modeled after Python's xrange() function. It's
intended to provide an alternative for all numeric iteration and
looping.
Added Paths:
-----------
trunk/dports/php/php5-xrange/
trunk/dports/php/php5-xrange/Portfile
trunk/dports/php/php5-xrange/files/
trunk/dports/php/php5-xrange/files/patch-xrange.c.diff
Added: trunk/dports/php/php5-xrange/Portfile
===================================================================
--- trunk/dports/php/php5-xrange/Portfile (rev 0)
+++ trunk/dports/php/php5-xrange/Portfile 2010-01-11 19:42:42 UTC (rev 62591)
@@ -0,0 +1,34 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup php5extension 1.0
+
+php5extension.setup xrange 1.3.1 pecl
+license PHP
+categories php devel
+platforms darwin
+maintainers nox openmaintainer
+description Numeric iterator primitives
+
+long_description \
+ xrange is a compiled extension that provides numeric iteration primitives \
+ to PHP on top of SPL. It includes a lean numeric range generator / \
+ iterator, modeled after Python's xrange() function. It's intended to \
+ provide an alternative for all numeric iteration and looping.
+
+checksums md5 f9a2e69e3e5ad4811b79e7d744000709 \
+ sha1 fefd8d125db6b3194008dbfbebe4d198ae98f669 \
+ rmd160 479938267ead2e2803b66f330b362ee48b69a879
+
+patchfiles patch-xrange.c.diff
+
+use_parallel_build yes
+
+test.run yes
+
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} CREDITS \
+ ${destroot}${docdir}
+}
Property changes on: trunk/dports/php/php5-xrange/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/php5-xrange/files/patch-xrange.c.diff
===================================================================
--- trunk/dports/php/php5-xrange/files/patch-xrange.c.diff (rev 0)
+++ trunk/dports/php/php5-xrange/files/patch-xrange.c.diff 2010-01-11 19:42:42 UTC (rev 62591)
@@ -0,0 +1,23 @@
+See http://pecl.php.net/bugs/bug.php?id=16567
+
+--- xrange.c.orig 2010-01-11 01:13:54.000000000 +0100
++++ xrange.c 2010-01-11 01:17:07.000000000 +0100
+@@ -60,7 +60,6 @@
+ /* }}} */
+
+ /* {{{ XRangeIterator seek method argument info */
+-static
+ ZEND_BEGIN_ARG_INFO(arginfo_xrange_xri_seek, 0)
+ ZEND_ARG_INFO(0, position)
+ ZEND_END_ARG_INFO();
+@@ -234,8 +233,8 @@
+ return_value->value.obj = xrange_xri_object_new(
+ php_xrange_xri_entry TSRMLS_CC
+ );
+- return_value->refcount = 1;
+- return_value->is_ref = 0;
++ Z_SET_REFCOUNT_P(return_value, 1);
++ Z_UNSET_ISREF_P(return_value);
+
+ /* setup call to XRangeIterator's constructor (must do manually) */
+ zval methodName, *retval = NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100111/ae6f82ba/attachment-0001.html>
More information about the macports-changes
mailing list