# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		libxml
version		1.8.17
set branch      [join [lrange [split ${version} .] 0 1] .]
categories	textproc
maintainers	nomaintainer
description	XML parsing library
long_description	\
	Libxml is the XML C library developed for the Gnome project. XML \
	itself is a metalanguage to design markup languages, i.e. text \
	language where semantic and structure are added to the content using \
	extra "markup" information enclosed between angle brackets. HTML is \
	the most well-known markup language. Though the library is written \
	in C a variety of language bindings make it available in other \
	environments.
homepage	http://xmlsoft.org/
platforms	darwin
master_sites	gnome:sources/${name}/1.8
checksums	md5 53846294aa850a7d042948176d1d19dc
depends_build	path:bin/pkg-config:pkgconfig \
		port:libtool
configure.args	--disable-static

platform darwin {
	patchfiles	patches
}

pre-configure {
	system "cd ${worksrcpath} && autoreconf -fvi"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
