# $Id: Portfile,v 1.1 2006/03/09 08:02:46 blb Exp $
                       
PortSystem             1.0
PortGroup              ruby 1.0
ruby.setup             libxml-ruby 0.3.6 extconf.rb {} rubyforge:8775
name                   rb-libxml2
categories-append      ruby textproc 
maintainers            lharple@comcast.net
platforms              darwin
homepage               http://libxml.rubyforge.org/
description            Ruby bindings for libxml2
long_description       C-language Ruby binding to the Gnome libxml2 \
                       library, supporting a wide range of XML technologies and offering very \
                       competitive performance across the board.
                       
checksums              md5    dc427ade84aca1f5fba8349340b8cbbd \
                       sha1   d137255eca7fe8e5457bc71012554b11f6351c54 \
                       rmd160 60d67674f28d3b538b21386fbe78d37fb5772378
                       
depends_lib-append     port:libxml2 \
                       port:zlib \
                       port:libiconv

patchfiles             extconf.rb.patch
                       
configure.cmd          ${ruby.bin} -rvendor-specific ext/xml/extconf.rb
configure.args-append  --with-zlib-dir=${prefix} \
                       --with-iconv-dir=${prefix} \
                       --with-xml2-include=${prefix}/include/libxml2 \
                       --with-xml2-lib=${prefix}/lib
