josegonzalez/homebrew-php — pull request #361 by patrickli (2012-11-11 09:27:43+00:00)
Title: Fix problems introduced by abstracting php base

The introduction of abstract-php and abstract-php-extension causes a few problems:

* `brew doctor` will show "Error: Failed to import: abstract-php" as in #357.
* Any version of PHP is not installable any more form scratch. Brew cannot find information about dependencies and options at all. There is a bunch of issues related to this.

It seems the `homepage`, `option`, `depends_on` functions called in the class definition does no effect in the subclasses. So I wrapped them up in a static method and call it in all the subclasses.

My ruby is pretty rough so please improve them.