[24841] trunk/dports/www

source_changes at macosforge.org source_changes at macosforge.org
Sun May 6 01:23:29 PDT 2007


Revision: 24841
          http://trac.macosforge.org/projects/macports/changeset/24841
Author:   boeyms at macports.org
Date:     2007-05-06 01:23:29 -0700 (Sun, 06 May 2007)

Log Message:
-----------
www/php5-syck:
 * Add port as submitted in #11714 and #11754.

Added Paths:
-----------
    trunk/dports/www/php5-syck/
    trunk/dports/www/php5-syck/Portfile
    trunk/dports/www/php5-syck/files/
    trunk/dports/www/php5-syck/files/patch-phpext.c.diff

Added: trunk/dports/www/php5-syck/Portfile
===================================================================
--- trunk/dports/www/php5-syck/Portfile	                        (rev 0)
+++ trunk/dports/www/php5-syck/Portfile	2007-05-06 08:23:29 UTC (rev 24841)
@@ -0,0 +1,47 @@
+# $Id:
+PortSystem 1.0
+name              php5-syck
+version           0.55
+
+categories        www net devel
+platforms         darwin freebsd openbsd
+maintainers       emory.smith at gmail.com openmaintainer at macports.org
+homepage          http://www.whytheluckystiff.net/syck/
+description       PHP5 bindings for syck
+long_description \
+    Syck is a parser for YAML -- this package installs the syck php extension, \
+    allowing php code to interface to the libsyck C library.
+
+master_sites      http://rubyforge.org/frs/download.php/4492
+checksums         md5 a57b7c46d81170b9318e2f384f77910c
+distname          syck-${version}
+extract.suffix    .tar.gz
+
+depends_lib   port:syck port:php5 port:re2c
+
+worksrcdir    syck-${version}/ext/php
+
+configure.args    --with-syck=${prefix}
+
+platform darwin {
+    # for details on this patch see the "Patch For Mac Users" section
+    # of http://trac.symfony-project.com/trac/wiki/InstallingSyck
+    patchfiles patch-phpext.c.diff
+}
+
+pre-configure {
+    cd ${worksrcpath}
+    system "phpize"
+}
+
+destroot.destdir INSTALL_ROOT=${destroot}
+
+post-install {
+    ui_msg "***************************************************************************"
+    ui_msg "* To enable the syck extension in php, add or edit the following lines    *"
+    ui_msg "* in ${prefix}/etc/php.ini:                                               *"
+    ui_msg "*                                                                         *" 
+    ui_msg "* extension_dir=${prefix}/lib/php/extensions/no-debug-non-zts-20060613    *"
+    ui_msg "* extension = syck.so                                                     *" 
+    ui_msg "***************************************************************************"
+}


Property changes on: trunk/dports/www/php5-syck/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/www/php5-syck/files/patch-phpext.c.diff
===================================================================
--- trunk/dports/www/php5-syck/files/patch-phpext.c.diff	                        (rev 0)
+++ trunk/dports/www/php5-syck/files/patch-phpext.c.diff	2007-05-06 08:23:29 UTC (rev 24841)
@@ -0,0 +1,21 @@
+diff -Naur phpext.c.orig phpext.c
+--- phpext.c.orig	2003-09-24 08:36:09.000000000 -0600
++++ phpext.c	2007-04-02 09:01:29.000000000 -0600
+@@ -21,7 +21,7 @@
+ static double zero()    { return 0.0; }
+ static double one() { return 1.0; }
+ static double inf() { return one() / zero(); }
+-static double nan() { return zero() / zero(); }
++static double nanphp() { return zero() / zero(); }
+ 
+ /* {{{ syck_functions[]
+  *
+@@ -220,7 +220,7 @@
+             }
+             else if ( strcmp( n->type_id, "float#nan" ) == 0 )
+             {
+-                ZVAL_DOUBLE( o, nan() );
++                ZVAL_DOUBLE( o, nanphp() );
+             }
+             else if ( strcmp( n->type_id, "float#inf" ) == 0 )
+             {


Property changes on: trunk/dports/www/php5-syck/files/patch-phpext.c.diff
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070506/556aac2c/attachment.html


More information about the macports-changes mailing list