# -*- 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

PortSystem          1.0
PortGroup           github 1.0

github.setup        wp-cli wp-cli 2.4.0 v
revision            0

categories          www php devel
license             MIT
maintainers         {takeshi @tenomoto} openmaintainer
platforms           any
supported_archs     noarch

description         A command line interface for WordPress
long_description    WP-CLI is a set of command-line tools for managing\
                    WordPress installations. You can update plugins, set\
                    up multisite installs and much more, without using a\
                    web browser.

github.tarball_from releases
livecheck.url       ${homepage}/${github.tarball_from}/latest

homepage            https://${name}.org

checksums           rmd160  260fab9c22a64fbefb46722e30ee0c0af0ad6d24 \
                    sha256  139dcc86ed39ef751679efbdaf57a53528f1afda972c4e3622667cc27397b540 \
                    size    5568133

extract.suffix      .phar
extract.only

use_configure       no
build {}

destroot {
    xinstall -m 755 ${distpath}/${distfiles} ${destroot}${prefix}/bin/wp
}

notes "
WordPress recommend servers running version 7.4 or greater of PHP and MySQL\
version 5.6 OR MariaDB version 10.1 or greater. They also recommend either\
Apache or Nginx as the most robust options for running WordPress, but neither\
is required.
"
