# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		mlview
version		0.7.1
set branch      [join [lrange [split ${version} .] 0 1] .]
description	XML-editor for GNOME.
long_description 	The MlView project is an ongoing effort to develop \
			an xml editor for GNOME environment.
maintainers	nomaintainer
categories	gnome
platforms	darwin
homepage	http://www.freespiders.org/projects/gmlview/
master_sites    gnome:sources/${name}/${branch}/
checksums	md5 85383331e5bb6d59293cee5b86595284
depends_lib	lib:libgnomeprintui-2-2:libgnomeprintui
use_bzip2 	yes
configure.args	--mandir=${prefix}/share/man \
		--with-gconf-source="xml::${destroot}${prefix}/etc/gconf/gconf.xml.defaults"
configure.cppflags-append "-L${prefix}/lib"
configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
pre-destroot    { file mkdir -f ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/ }
post-destroot {
	file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml
	file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml
	file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/apps/%gconf.xml
}

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