# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 102293 2013-01-30 07:22:54Z jmr@macports.org $

PortSystem              1.0
PortGroup               php 1.1

name                    php-solr
version                 1.0.2
revision                1
categories-append       devel
license                 PHP-3.01
platforms               darwin
maintainers             ryandesign openmaintainer

php.branches            5.3 5.4 5.5
php.pecl                yes

description             a PHP interface to Apache Solr

long_description        ${name} is an extremely fast, light-weight, feature-rich \
                        library that allows PHP developers to communicate easily \
                        and efficiently with Apache Solr server instances.

checksums               rmd160  6092f515e6c443a278d72fac11c6a604bed29530 \
                        sha256  d5868daab01290f820b4b754e3c560dc6e983f82d9f6640b3146cede4d9a8581

if {${name} != ${subport}} {
    depends_build-append    port:curl \
                            port:libxml2
    
    depends_lib-append      port:${php}-curl
    
    configure.args-append   --with-curl=${prefix} \
                            --with-libxml-dir=${prefix}
    
    use_parallel_build      yes
}
