require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php55Excel < AbstractPhp55Extension
init
homepage ''
url 'https://github.com/iliaal/php_excel.git'
sha1 ''
depends_on 'autoconf' => :build
depends_on 'php55' unless build.include?('without-homebrew-php')
def install
# See https://github.com/mxcl/homebrew/pull/5947
ENV.universal_binary
safe_phpize
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-libxl-libdir=/usr/local/Cellar/libxl/HEAD/lib/",
"--with-libxl-incdir=/usr/local/Cellar/libxl/HEAD/include_c/"
system "make" # if this fails, try separate make/make install steps
prefix.install "modules/excel.so"
write_config_file unless build.include? "without-config-file"
end
def test
system "false"
end
end
require 'formula'
class Libxl < Formula
homepage 'http://www.libxl.com/'
url 'http://www.libxl.com/download/libxl-mac.tar.gz'
sha1 'AF2A73F3474127891FF6BAF6D14E3525'
def install
prefix.install Dir['*']
end
def test
system "false"
end
end