ice: build IcePHP extension
Closes Homebrew/homebrew#26109. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
259274d7d5
commit
9a78113d08
1 changed files with 26 additions and 0 deletions
|
@ -44,6 +44,12 @@ class Ice < Formula
|
|||
system "make", *args
|
||||
system "make", "install", *args
|
||||
end
|
||||
|
||||
cd "php" do
|
||||
system "make", *args
|
||||
system "make", "install", *args
|
||||
end
|
||||
|
||||
args << "install_pythondir=#{lib}/python2.7/site-packages"
|
||||
args << "install_libdir=#{lib}/python2.7/site-packages"
|
||||
cd "py" do
|
||||
|
@ -51,6 +57,26 @@ class Ice < Formula
|
|||
system "make", "install", *args
|
||||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
To enable IcePHP, you will need to change your php.ini
|
||||
to load the IcePHP extension. You can do this by adding
|
||||
IcePHP.dy to your list of extensions:
|
||||
|
||||
extension=#{prefix}/php/IcePHP.dy
|
||||
|
||||
Typical Ice PHP scripts will also expect to be able to 'require Ice.php'.
|
||||
|
||||
You can ensure this is possible by appending the path to
|
||||
Ice's PHP includes to your global include_path in php.ini:
|
||||
|
||||
include_path=<your-original-include-path>:#{prefix}/php
|
||||
|
||||
However, you can also accomplish this on a script-by-script basis
|
||||
or via .htaccess if you so desire...
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
|
|
Loading…
Reference in a new issue