Re: [145995] trunk/dports/www/wp-cli/Portfile
> On Feb 23, 2016, at 7:14 PM, take...@macports.org wrote: > > Revision > 145995 > Author > take...@macports.org > Date > 2016-02-23 17:14:08 -0800 (Tue, 23 Feb 2016) > Log Message > > wp-cli: add run-time dependency to php binary > Modified Paths > > • trunk/dports/www/wp-cli/Portfile > > +depends_run bin:php:php70 The php70 port doesn't provide a php binary; it provides a php70 binary. So if wp-cli is expecting a php binary, php70 by itself is not enough to provide that. The user would have to run "sudo port select php php70" to get a php symlink pointing to the php70 binary. OS X has shipped with /usr/bin/php for a long time, so hopefully that's enough for all OS X users. ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: WP-CLI
On Feb 22, 2016, at 3:00 AM, Takeshi Enomoto wrote: > - The script in phar does not require the extract phase. Can I > destroot directly from ${distpath}? Yes, but instead of overriding the extract phase with extract {} it is preferred to clear the extract.only variable with extract.only ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: WP-CLI
On Feb 22, 2016, at 4:24 PM, Joshua Root wrote: > On 2016-2-22 20:00 , Takeshi Enomoto wrote: >> Hi, >> >> I created a Portfile for WP-CLI, >> which is very useful installing and managing WordPress sites. >> >> <http://wp-cli.org> >> >> It is just a compressed PHP script so it might not worth packaging, >> but Homebrew has a formula and it is mentioned at the WP-CLI web site >> as and alternative method to install. >> So I thought we should also provide a Portfile. >> >> - The script runs with php that it finds. Is this OK? > > If it works fine with any version of php this may be OK. If not, > variants adding a dependency on different php ports may be appropriate. The other reason to use a specific PHP version (i.e. with variants) is if this script needs a PHP module that would be installed with MacPorts. If it needs no modules, and works with any version of PHP, then no need for a MacPorts PHP dependency. ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: WP-CLI
Dear Sterling and Joshua, Thank you for response. I could have commit the port, but I don't have enough experience with PHP ports. So I asked for advice. > If it works fine with any version of php this may be OK. If not, > variants adding a dependency on different php ports may be appropriate. > Does this script need to use the same php as the wordpress installation > it manages? I don't think you need the same version. BTW our wordpress port is out of date. WP-CLI installs the newest version by default, we don't have to maintain this port. --- Takeshi Enomoto take...@macports.org ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: WP-CLI
On 2016-2-22 20:00 , Takeshi Enomoto wrote: > Hi, > > I created a Portfile for WP-CLI, > which is very useful installing and managing WordPress sites. > > <http://wp-cli.org> > > It is just a compressed PHP script so it might not worth packaging, > but Homebrew has a formula and it is mentioned at the WP-CLI web site > as and alternative method to install. > So I thought we should also provide a Portfile. > > - The script runs with php that it finds. Is this OK? If it works fine with any version of php this may be OK. If not, variants adding a dependency on different php ports may be appropriate. Does this script need to use the same php as the wordpress installation it manages? > - The script in phar does not require the extract phase. Can I > destroot directly from ${distpath}? Yes, that's fine. - Josh ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: WP-CLI
I suspect someone will ask you to open a ticket for this, which is the usual method for asking for a new port. -Sterling On Feb 22, 2016, at 1:00AM, Takeshi Enomoto <take...@macports.org> wrote: > Hi, > > I created a Portfile for WP-CLI, > which is very useful installing and managing WordPress sites. > > <http://wp-cli.org> > > It is just a compressed PHP script so it might not worth packaging, > but Homebrew has a formula and it is mentioned at the WP-CLI web site > as and alternative method to install. > So I thought we should also provide a Portfile. > > - The script runs with php that it finds. Is this OK? > - The script in phar does not require the extract phase. Can I > destroot directly from ${distpath}? > > --- > Takeshi Enomoto > take...@macports.org > ___ > macports-dev mailing list > macports-dev@lists.macosforge.org > https://lists.macosforge.org/mailman/listinfo/macports-dev ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
WP-CLI
Hi, I created a Portfile for WP-CLI, which is very useful installing and managing WordPress sites. <http://wp-cli.org> It is just a compressed PHP script so it might not worth packaging, but Homebrew has a formula and it is mentioned at the WP-CLI web site as and alternative method to install. So I thought we should also provide a Portfile. - The script runs with php that it finds. Is this OK? - The script in phar does not require the extract phase. Can I destroot directly from ${distpath}? --- Takeshi Enomoto take...@macports.org Portfile Description: Binary data ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev