Ticket #11754: Portfile

File Portfile, 1.7 KB (added by emory.smith@…, 18 years ago)

Portfile

Line 
1# $Id:
2PortSystem 1.0
3name              php5-syck
4version           0.55
5
6categories        www net devel
7platforms         darwin freebsd openbsd
8maintainers       emory.smith@gmail.com openmaintainer@macports.org
9homepage          http://www.whytheluckystiff.net/syck/
10description       PHP5 bindings for syck
11long_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
15master_sites      http://rubyforge.org/frs/download.php/4492
16checksums         md5 a57b7c46d81170b9318e2f384f77910c
17distname          syck-${version}
18extract.suffix    .tar.gz
19
20depends_lib   port:syck port:php5 port:re2c
21
22worksrcdir    syck-${version}/ext/php
23
24configure.args    --with-syck=${prefix}
25
26platform 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
32pre-configure {
33    cd ${worksrcpath}
34    system "phpize"
35}
36
37destroot.destdir INSTALL_ROOT=${destroot}
38
39post-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}