Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264727

Summary: dev-php/phc - open source compiler for PHP with support for plugins (New Package)
Product: Gentoo Linux Reporter: Anna Gabutero <amdg>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: php-bugs, serkan, StormByte
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 211536    
Bug Blocks:    
Attachments: Ebuild for phc 0.2.0.3
Ebuild for phc svn
Descriptions of USE flags
Patch for building 0.2.0.3
Updated phc-0.2.0.3.ebuild
Updated phc-9999.ebuild

Description Anna Gabutero 2009-04-03 07:10:30 UTC
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:
Comment 1 Anna Gabutero 2009-04-03 07:11:13 UTC
Created attachment 187157 [details]
Ebuild for phc 0.2.0.3
Comment 2 Anna Gabutero 2009-04-03 07:11:30 UTC
Created attachment 187158 [details]
Ebuild for phc svn
Comment 3 Anna Gabutero 2009-04-03 07:11:47 UTC
Created attachment 187159 [details]
Descriptions of USE flags
Comment 4 Anna Gabutero 2009-04-03 07:12:06 UTC
Created attachment 187161 [details]
Patch for building 0.2.0.3
Comment 5 Anna Gabutero 2009-04-03 07:19:25 UTC
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).
Comment 6 Serkan Kaba (RETIRED) gentoo-dev 2009-04-03 07:50:49 UTC
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.
Comment 7 Anna Gabutero 2009-04-04 01:55:22 UTC
Created attachment 187255 [details]
Updated phc-0.2.0.3.ebuild
Comment 8 Anna Gabutero 2009-04-04 01:55:47 UTC
Created attachment 187257 [details]
Updated phc-9999.ebuild
Comment 9 Anna Gabutero 2009-04-04 01:56:29 UTC
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.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2010-08-11 12:02:52 UTC
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.
Comment 11 David Carlos Manuelda 2012-04-04 12:16:26 UTC
Latest version is 0.3.0.1.
Any updates on this front?
Comment 12 Brian Evans (RETIRED) gentoo-dev 2017-07-06 17:05:23 UTC
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.