Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264727 - dev-php/phc - open source compiler for PHP with support for plugins (New Package)
Summary: dev-php/phc - open source compiler for PHP with support for plugins (New Pack...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on: 211536
Blocks:
  Show dependency tree
 
Reported: 2009-04-03 07:10 UTC by Anna Gabutero
Modified: 2017-07-06 20:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for phc 0.2.0.3 (phc-0.2.0.3.ebuild,1.31 KB, text/plain)
2009-04-03 07:11 UTC, Anna Gabutero
Details
Ebuild for phc svn (phc-9999.ebuild,1.25 KB, text/plain)
2009-04-03 07:11 UTC, Anna Gabutero
Details
Descriptions of USE flags (metadata.xml,454 bytes, text/plain)
2009-04-03 07:11 UTC, Anna Gabutero
Details
Patch for building 0.2.0.3 (fix_sed_ldflags.patch,1.84 KB, text/plain)
2009-04-03 07:12 UTC, Anna Gabutero
Details
Updated phc-0.2.0.3.ebuild (phc-0.2.0.3.ebuild,1.44 KB, text/plain)
2009-04-04 01:55 UTC, Anna Gabutero
Details
Updated phc-9999.ebuild (phc-9999.ebuild,1.39 KB, text/plain)
2009-04-04 01:55 UTC, Anna Gabutero
Details

Note You need to log in before you can comment on or make changes to this bug.
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.