# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 88421 2012-01-02 01:09:15Z ryandesign@macports.org $ PortSystem 1.0 PortGroup python27 1.0 name phpsh set git_author facebook version 1.3 revision 1 categories php devel maintainers singingwolfboy openmaintainer supported_archs noarch license BSD platforms darwin freebsd homepage http://www.phpsh.org fetch.type git git.url https://github.com/${git_author}/${name}.git git.branch ${version} description PHP read-eval-print-loop long_description \ phpsh is a read-eval-print-loop for PHP that features readline history, tab \ completion, and quick access to documentation. It was developed at Facebook \ and ironically, is written mostly in Python. depends_lib path:bin/php:php5 port:python27 \ port:php5-posix port:php5-pcntl use_configure yes configure { eval reinplace "s|/etc/phpsh|${prefix}/etc/phpsh|g" \ ${worksrcpath}/setup.py ${worksrcpath}/rc.example.php \ [glob ${worksrcpath}/src/*] [glob ${worksrcpath}/src/doc/*] } python.link_binaries_suffix post-destroot { set mandir ${destroot}${prefix}/share/man/man1 xinstall -d ${mandir} move ${destroot}${python.prefix}/man/man1/phpsh.1 ${mandir} }