Changeset 107701


Ignore:
Timestamp:
Jul 4, 2013, 1:49:47 PM (7 years ago)
Author:
g5pw@…
Message:

php/phpsh:

use python portgroup
fix checksum typo
fix reinplace error on ML
add variants for other php versions

Location:
trunk/dports/php/phpsh
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/php/phpsh/Portfile

    r99643 r107701  
    44PortSystem              1.0
    55PortGroup               github 1.0
    6 PortGroup               python27 1.0
     6PortGroup               python 1.0
    77
    88github.setup            facebook phpsh 1.3
    9 revision                1
     9revision                2
    1010categories              php devel
    1111maintainers             nomaintainer
     
    1313license                 BSD
    1414platforms               darwin freebsd
     15
     16python.default_version 27
     17python.link_binaries_suffix
    1518
    1619homepage                http://www.phpsh.org
     
    2124    and ironically, is written mostly in Python.
    2225checksums               rmd160  5188164d79f107d3494a240b33b5e05b1344b40a \
    23                         sha256  2792485c541ad8420f912e01a6be85c07b9c352c087e3b4d54a5a61e53f51d0e 
     26                        sha256  2792485c541ad8420f912e01a6be85c07b9c352c087e3b4d54a5a61e53f51d0e
    2427
    25 depends_lib             path:bin/php:php5 port:python27 \
    26                         port:php5-posix port:php5-pcntl
     28patchfiles              src-__init__.py.diff
    2729
    28 post-patch {
    29     eval reinplace "s|/etc/phpsh|${prefix}/etc/phpsh|g" \
     30pre-patch {
     31    eval reinplace -locale C s|/etc/phpsh|${prefix}/etc/phpsh|g \
    3032        ${worksrcpath}/setup.py ${worksrcpath}/rc.example.php \
    3133        [glob ${worksrcpath}/src/*] [glob ${worksrcpath}/src/doc/*]
    3234}
    33 python.link_binaries_suffix
     35
    3436post-destroot {
    3537    set mandir ${destroot}${prefix}/share/man/man1
     
    3739    move ${destroot}${python.prefix}/man/man1/phpsh.1 ${mandir}
    3840}
     41
     42set php_versions [ list 53 54 55 ]
     43
     44foreach php_version $php_versions {
     45    variant php${php_version} description "Build ${name} with php${php_version}" {
     46       
     47        depends_lib-append      port:php${php_version}-posix \
     48                                port:php${php_version}-pcntl
     49
     50    }
     51    post-patch {
     52        reinplace s|@@PHP_EXECUTABLE@@|${prefix}/bin/php${php_version}| src/__init__.py
     53
     54    }
     55}
     56
     57default_variants +php55
Note: See TracChangeset for help on using the changeset viewer.