[93143] trunk/dports/php
ryandesign at macports.org
ryandesign at macports.org
Tue May 15 22:40:53 PDT 2012
Revision: 93143
https://trac.macports.org/changeset/93143
Author: ryandesign at macports.org
Date: 2012-05-15 22:40:53 -0700 (Tue, 15 May 2012)
Log Message:
-----------
php-html_parse: unified port; patch to fix build with php 5.4; remove archcheck
Modified Paths:
--------------
trunk/dports/php/php-html_parse/Portfile
Added Paths:
-----------
trunk/dports/php/php-html_parse/
trunk/dports/php/php-html_parse/files/
trunk/dports/php/php-html_parse/files/patch-html_parse.c.diff
Modified: trunk/dports/php/php-html_parse/Portfile
===================================================================
--- trunk/dports/php/php5-html_parse/Portfile 2012-05-16 05:14:34 UTC (rev 93142)
+++ trunk/dports/php/php-html_parse/Portfile 2012-05-16 05:40:53 UTC (rev 93143)
@@ -2,10 +2,10 @@
# $Id$
PortSystem 1.0
-PortGroup archcheck 1.0
-PortGroup php5extension 1.0
+PortGroup php 1.0
-php5extension.setup html_parse 1.0.0 pecl
+php.setup html_parse 1.0.0 pecl
+php.branches 5.3 5.4
license PHP
categories php textproc devel
platforms darwin
@@ -19,24 +19,24 @@
sha1 a287944c9d1e79bed2b9c180f2c76b99cda954ad \
rmd160 6e476ca31f0d85eb70bf4f9ce194f7e811d58d4d
-depends_lib-append \
- port:ekhtml
-
-archcheck.files \
- lib/libekhtml.dylib
-
-configure.args --with-ekhtml=${prefix}
-
-use_parallel_build yes
-
-test.run yes
-test.env TEST_PHP_EXECUTABLE=${prefix}/bin/php
-test.cmd php run-tests.php
-test.args -q
-test.target
-
-post-destroot {
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 644 ${worksrcpath}/CREDITS ${destroot}${docdir}
+if {${name} != ${subport}} {
+ depends_lib-append port:ekhtml
+
+ patchfiles patch-html_parse.c.diff
+
+ configure.args --with-ekhtml=${prefix}
+
+ use_parallel_build yes
+
+ test.run yes
+ test.env TEST_PHP_EXECUTABLE=${prefix}/bin/${php}
+ test.cmd ${prefix}/bin/${php} run-tests.php
+ test.args -q
+ test.target
+
+ post-destroot {
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 ${worksrcpath}/CREDITS ${destroot}${docdir}
+ }
}
Added: trunk/dports/php/php-html_parse/files/patch-html_parse.c.diff
===================================================================
--- trunk/dports/php/php-html_parse/files/patch-html_parse.c.diff (rev 0)
+++ trunk/dports/php/php-html_parse/files/patch-html_parse.c.diff 2012-05-16 05:40:53 UTC (rev 93143)
@@ -0,0 +1,11 @@
+--- html_parse.c.orig 2007-11-28 16:35:42.000000000 -0600
++++ html_parse.c 2012-05-16 00:36:52.000000000 -0500
+@@ -148,7 +148,7 @@
+ /* }}} */
+
+ /* {{{ html_parse_functions[] */
+-function_entry html_parse_functions[] = {
++zend_function_entry html_parse_functions[] = {
+ PHP_FE(html_parser_create , html_parser_create_arg_info)
+ PHP_FE(html_parser_free , html_parser_free_arg_info)
+ PHP_FE(html_parser_starttag_handler, html_parser_starttag_handler_arg_info)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120515/0c3257a2/attachment.html>
More information about the macports-changes
mailing list