# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $
PortSystem		1.0

name			meld
version			1.2
revision		1
categories		textproc devel
platforms		darwin
maintainers		landonf
homepage		http://meld.sourceforge.net/
description		Visual diff and merge tool.
long_description	Meld is a visual diff and merge tool. You can compare \
			two or three files and edit them in place (diffs \
			update dynamically). You can compare two or three \
			folders and launch file comparisons. You can browse \
			and view a working copy from popular version control \
			systems such such as CVS, Subversion, Bazaar-ng and \
			Mercurial.

master_sites		http://ftp.gnome.org/pub/gnome/sources/meld/1.2/

depends_lib		port:intltool \
			port:py25-gtk \
			port:py25-gnome \
			port:rarian

#patchfiles		patch-translations \
#			patch-scrollkeeper

use_configure		no

post-patch {
	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/INSTALL
	reinplace "s|#! /usr/bin/env python|#! ${prefix}/bin/python2.5|" ${worksrcpath}/meld

	file mkdir ${worksrcpath}/help/fr/figures
	file mkdir ${worksrcpath}/help/oc/figures

	system "cp ${worksrcpath}/help/C/figures/*.png ${worksrcpath}/help/fr/figures"
	system "cp ${worksrcpath}/help/C/figures/*.png ${worksrcpath}/help/oc/figures"
}

checksums			md5 50ea5a7cdf2451448a78e53b172d7f6f
