Ticket #53223: Portfile.diff

File Portfile.diff, 1.6 KB (added by josephsacco, 7 years ago)

Portfile diff

  • (a) Portfile- vs. (b) Portfile

    a b  
    33PortSystem              1.0
    44
    55name                    wordpress
    6 version                 3.5
     6version                 4.7
    77categories              www
    88platforms               darwin freebsd
    99maintainers             nomaintainer
     
    1818homepage                http://wordpress.org/
    1919master_sites            ${homepage}
    2020
    21 checksums               rmd160  dc436fcbcefefd8cd3a17540c6666e9602a76c8c \
    22                         sha256  def1d094dbd3fcc52208d4e63ae4c31901dfd97e9b4cd619b7d017fd342972ab
     21checksums               rmd160  8ffa3dce1b36ef68e8d6d03d2dc3d733529509fa \
     22                        sha256  7eae27ff70716dae2d2ba58280f2832fd70a208c9cdaf29ab36ac789c14d6977
    2323
    24 depends_lib             port:php5-web \
    25                         port:php5-mysql \
    26                         port:php5-zip \
    27                         port:php5-gd
     24# The php variants deliberately do not conflict
     25
     26foreach php {php55 php56 php70 php71} {
     27    eval [subst {
     28        variant ${php} description "Use ${php}" {
     29            depends_run-append  port:${php}-gd \
     30                                port:${php}-mbstring \
     31                                port:${php}-mcrypt \
     32                                port:${php}-mysql \
     33                                port:${php}-zip
     34        }
     35    }]
     36}
     37
     38if {![variant_isset php55] && ![variant_isset php56] &&
     39    ![variant_isset php70] && [variant_isset php71]} {
     40    default_variants +php71
     41}
    2842
    2943livecheck.type          regex
    3044livecheck.url           ${homepage}