source: trunk/dports/php/phpsh/Portfile

Last change on this file was 142815, checked in by jmr@…, 22 months ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 142815 2015-11-24 03:22:35Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6PortGroup               python 1.0
7
8github.setup            facebook phpsh 1.3
9revision                2
10categories              php devel
11maintainers             nomaintainer
12supported_archs         noarch
13license                 BSD
14platforms               darwin freebsd
15
16python.default_version 27
17
18homepage                http://www.phpsh.org
19description             PHP read-eval-print-loop
20long_description \
21    phpsh is a read-eval-print-loop for PHP that features readline history, tab \
22    completion, and quick access to documentation. It was developed at Facebook \
23    and ironically, is written mostly in Python.
24checksums               rmd160  5188164d79f107d3494a240b33b5e05b1344b40a \
25                        sha256  2792485c541ad8420f912e01a6be85c07b9c352c087e3b4d54a5a61e53f51d0e
26
27patchfiles              src-__init__.py.diff
28
29pre-patch {
30    reinplace -locale C s|/etc/phpsh|${prefix}/etc/phpsh|g \
31        ${worksrcpath}/setup.py ${worksrcpath}/rc.example.php \
32        {*}[glob ${worksrcpath}/src/*] {*}[glob ${worksrcpath}/src/doc/*]
33}
34
35post-destroot {
36    set mandir ${destroot}${prefix}/share/man/man1
37    xinstall -d ${mandir}
38    move ${destroot}${python.prefix}/man/man1/phpsh.1 ${mandir}
39}
40
41set php_versions [ list 53 54 55 ]
42
43foreach php_version $php_versions {
44    variant php${php_version} description "Build ${name} with php${php_version}" {
45       
46        depends_lib-append      port:php${php_version}-posix \
47                                port:php${php_version}-pcntl
48
49    }
50    post-patch {
51        reinplace s|@@PHP_EXECUTABLE@@|${prefix}/bin/php${php_version}| src/__init__.py
52
53    }
54}
55
56default_variants +php55
Note: See TracBrowser for help on using the repository browser.