# $Id: Portfile 83067 2011-08-25 03:18:51Z jmr@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_build	port:intltool port:pkgconfig
depends_lib	port:libgnomeprintui port:libxslt port:libgnome
use_bzip2 	yes
configure.args	--mandir=${prefix}/share/man \
		--with-gconf-source="xml::${destroot}${prefix}/etc/gconf/gconf.xml.defaults"
pre-destroot    { file mkdir ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/ }
post-destroot {
	file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml \
	            ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml \
	            ${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+)*)}
