# -*- 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 78906 2011-05-26 13:23:08Z singingwolfboy@macports.org $

PortSystem              1.0
PortGroup               python27 1.0

name                    phpsh
set git_author          facebook
version                 1.3
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             port:php5 port:python27 \
                        port:php5-posix port:php5-pcntl

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}
}
