source: trunk/dports/php/phpsh/Portfile @ 88421

Last change on this file since 88421 was 88421, checked in by ryandesign@…, 6 years ago

Set svn:eol-style to native

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- 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
2# $Id: Portfile 88421 2012-01-02 01:09:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python27 1.0
6
7name                    phpsh
8set git_author          facebook
9version                 1.3
10revision                1
11categories              php devel
12maintainers             singingwolfboy openmaintainer
13supported_archs         noarch
14license                 BSD
15platforms               darwin freebsd
16
17homepage                http://www.phpsh.org
18fetch.type              git
19git.url                 https://github.com/${git_author}/${name}.git
20git.branch              ${version}
21description             PHP read-eval-print-loop
22long_description \
23    phpsh is a read-eval-print-loop for PHP that features readline history, tab \
24    completion, and quick access to documentation. It was developed at Facebook \
25    and ironically, is written mostly in Python.
26
27depends_lib             path:bin/php:php5 port:python27 \
28                        port:php5-posix port:php5-pcntl
29
30use_configure           yes
31configure {
32    eval reinplace "s|/etc/phpsh|${prefix}/etc/phpsh|g" \
33        ${worksrcpath}/setup.py ${worksrcpath}/rc.example.php \
34        [glob ${worksrcpath}/src/*] [glob ${worksrcpath}/src/doc/*]
35}
36python.link_binaries_suffix
37post-destroot {
38    set mandir ${destroot}${prefix}/share/man/man1
39    xinstall -d ${mandir}
40    move ${destroot}${python.prefix}/man/man1/phpsh.1 ${mandir}
41}
Note: See TracBrowser for help on using the repository browser.