From the project homepage: "phc is an open source compiler for PHP with support for plugins. In addition, it can be used to pretty-print or obfuscate PHP code, as a framework for developing applications that process PHP scripts, or to convert PHP into XML and back, enabling processing of PHP scripts using XML tools." I'm attaching two ebuilds for building phc: one for the svn version, and one for the latest release (0.2.0.3). Also attached are metadata.xml for the USE flags and a patch for building 0.2.0.3. Reproducible: Always Steps to Reproduce:
Created attachment 187157 [details] Ebuild for phc 0.2.0.3
Created attachment 187158 [details] Ebuild for phc svn
Created attachment 187159 [details] Descriptions of USE flags
Created attachment 187161 [details] Patch for building 0.2.0.3
Support for compiling PHP code depends on a dev-lang/php package built with the embed SAPI (Bug 211536). Without this, phc can only be built by disabling the compiler USE flag (in this ebuild).
Thank you for your submission. I have a few comments for the ebuilds and the patch. * Please declare EAPI as 2 since you're using USE deps. * Does app-text/docbook-sgml-dtd dependency exactly need this version (A slot dependency may be used) * dodoc, dohtml, emake need dies. * patch should be moved to src_prepare since EAPI 2 will be used. * patch may alter Makefile.am only and eautoreconf may be called for regeneration of files.
Created attachment 187255 [details] Updated phc-0.2.0.3.ebuild
Created attachment 187257 [details] Updated phc-9999.ebuild
Thanks for the review! Updated ebuilds attached. * EAPI="2" * app-text/docbook-sgml-dtd slot dependency * dies added * patch moved to src_prepare; configure moved to src_configure I left the patch alone since it seems like overkill to regenerate everything for just that line. The bug that it addresses is also fixed in the svn version.
How about sticking this into the php overlay for additional visibility until someone finds the time to actually maintain this in-tree? I could either push it myself or get you a git account for the overlay.
Latest version is 0.3.0.1. Any updates on this front?
Homepage died.. Repo now at https://github.com/pbiggar/phc; However it is unmaintained upstream and last updated for PHP 5.2. It is unlikely to work with current PHPs.