| 1 | # $Id: |
|---|
| 2 | PortSystem 1.0 |
|---|
| 3 | name php5-syck |
|---|
| 4 | version 0.55 |
|---|
| 5 | |
|---|
| 6 | categories www net devel |
|---|
| 7 | platforms darwin freebsd openbsd |
|---|
| 8 | maintainers emory.smith@gmail.com openmaintainer@macports.org |
|---|
| 9 | homepage http://www.whytheluckystiff.net/syck/ |
|---|
| 10 | description PHP5 bindings for syck |
|---|
| 11 | long_description \ |
|---|
| 12 | Syck is a parser for YAML -- this package installs the syck php extension, \ |
|---|
| 13 | allowing php code to interface to the libsyck C library. |
|---|
| 14 | |
|---|
| 15 | master_sites http://rubyforge.org/frs/download.php/4492 |
|---|
| 16 | checksums md5 a57b7c46d81170b9318e2f384f77910c |
|---|
| 17 | distname syck-${version} |
|---|
| 18 | extract.suffix .tar.gz |
|---|
| 19 | |
|---|
| 20 | depends_lib port:syck port:php5 port:re2c |
|---|
| 21 | |
|---|
| 22 | worksrcdir syck-${version}/ext/php |
|---|
| 23 | |
|---|
| 24 | configure.args --with-syck=${prefix} |
|---|
| 25 | |
|---|
| 26 | platform darwin { |
|---|
| 27 | # for details on this patch see the "Patch For Mac Users" section |
|---|
| 28 | # of http://trac.symfony-project.com/trac/wiki/InstallingSyck |
|---|
| 29 | patchfiles patch-phpext.c.diff |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | pre-configure { |
|---|
| 33 | cd ${worksrcpath} |
|---|
| 34 | system "phpize" |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | destroot.destdir INSTALL_ROOT=${destroot} |
|---|
| 38 | |
|---|
| 39 | post-install { |
|---|
| 40 | ui_msg "***************************************************************************" |
|---|
| 41 | ui_msg "* To enable the syck extension in php, add or edit the following lines *" |
|---|
| 42 | ui_msg "* in ${prefix}/etc/php.ini: *" |
|---|
| 43 | ui_msg "* *" |
|---|
| 44 | ui_msg "* extension_dir=${prefix}/lib/php/extensions/no-debug-non-zts-20060613 *" |
|---|
| 45 | ui_msg "* extension = syck.so *" |
|---|
| 46 | ui_msg "***************************************************************************" |
|---|
| 47 | } |
|---|