From 9a78113d08fad45725afb8082af542e2202556ee Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Thu, 23 Jan 2014 00:41:18 +0100 Subject: [PATCH] ice: build IcePHP extension Closes Homebrew/homebrew#26109. Signed-off-by: Adam Vandenberg --- Formula/ice.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Formula/ice.rb b/Formula/ice.rb index 4a5f2053183..1982865435c 100644 --- a/Formula/ice.rb +++ b/Formula/ice.rb @@ -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=:#{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__