# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 87738 2011-12-03 03:36:50Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           php5extension 1.0

php5extension.setup excel 0.9.6
categories-append   textproc
platforms           darwin
maintainers         ryandesign

description         PHP interface to LibXL for reading and writing \
                    Microsoft Excel spreadsheets

long_description    ${name} is a ${description}.

homepage            https://github.com/iliaal/php_excel
master_sites        https://github.com/downloads/iliaal/php_excel/
use_bzip2           yes
distfiles           [suffix php-excel-${version}]

checksums           rmd160  3a131021e6f2c3e10258ba2856808c15b8339d38 \
                    sha256  a4453e45d7f420413c3a30e67eb3c4e7083726e717b27203e7787d504abcccbe

depends_lib-append  port:libxl

# libxl is Intel-only
supported_archs     i386 x86_64
configure.universal_archs i386 x86_64

configure.args      --with-libxl-incdir=${prefix}/include/libxl-c \
                    --with-libxl-libdir=${prefix}/lib

livecheck.url       ${homepage}/downloads
livecheck.regex     php-excel-(\[0-9.\]+)${extract.suffix}
