# -*- 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 102093 2013-01-27 22:03:09Z landonf@macports.org $

PortSystem		1.0

name			meld
version			1.6.1
categories		textproc devel
license			GPL-2+
platforms		darwin
supported_archs noarch
maintainers		landonf openmaintainer
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		gnome:sources/${name}/[join [lrange [split $version .] 0 1] .]
use_xz		yes

checksums           rmd160 19c090659da92baee539745ef520cec12186d0f5 \
                    sha256 de9c4d526c7489b6e6c5772b709aea4b77e1b3d1b6cd1701fc1c17ea81733a03

depends_lib		port:intltool \
			port:py27-gnome \
			port:rarian

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

use_configure		no

build.args	PYTHON=${prefix}/bin/python2.7
