diff options
| author | Mikkel Krautz | 2014-01-23 00:41:18 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-12 21:33:26 -0700 |
| commit | 9addf4a9a6826ff8f57e264cb77d957c916923d7 (patch) | |
| tree | 7b29466ea20f958c4d3ff2921470da8525842042 /Library/Formula/ice.rb | |
| parent | ae0b37a1fd22f92a2335f42a1da5bd4de66477a9 (diff) | |
| download | homebrew-9addf4a9a6826ff8f57e264cb77d957c916923d7.tar.bz2 | |
ice: build IcePHP extension
Closes #26109.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ice.rb')
| -rw-r--r-- | Library/Formula/ice.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/ice.rb b/Library/Formula/ice.rb index 4a5f20531..198286543 100644 --- a/Library/Formula/ice.rb +++ b/Library/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=<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__ |
