Portfile for php-v8js

Ryan Schmidt ryandesign at macports.org
Thu Mar 21 15:33:06 PDT 2013


On Mar 21, 2013, at 10:26, Nicholas O Rawlings wrote:

> I'm trying to create a Portfile for the V8js PECL module for PHP (Portfile attached).  The configure stage is failing because it can't seem to find the copy of v8.h that was installed by the V8 port (log file attached).  The config script seems to be looking for a variable called PHP_V8JS for guidance on where to look for the header files (config.m4 attached), but including a configure.env-append line in the Portfile (line 31) didn't work.  I'm new to this, so any and all suggestions are appreciated!

Thanks for starting work on this port!

In the PHP configuration system, the values of arguments like --with-xyz are made available in a variable called PHP_XYZ. Therefore, the variable PHP_V8JS that you were trying to fill will be set for you based on the --with-v8js argument. So all you have to do is change that to --with-v8js=${prefix}.

That's not enough to make the port build however. If you'd like me to look at it further let me know. I maintain php and most of the other php modules and I'd be happy to maintain this one as well, if you don't want to. Otherwise, when you get a working port, file a ticket in the issue tracker and attach it, and feel free to Cc me and I'll commit it.




More information about the macports-dev mailing list