# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                diffuse
version             0.4.8
revision            1
categories-prepend  devel
platforms           any
maintainers         nomaintainer
license             GPL-2+
supported_archs     noarch

description         diffuse is a graphical diffing and merging tool
long_description    Diffuse is a small and simple text merge tool \
                    written in Python. With Diffuse, you can easily \
                    merge, edit, and review changes to your code.

homepage            http://diffuse.sourceforge.net
master_sites        sourceforge

checksums           sha256  c1d3b79bba9352fcb9aa4003537d3fece248fb824781c5e21f3fcccafd42df2b \
                    rmd160  c424ba8e48a86d0eeab2b51b15bb6f81dd23e95d \
                    size    557966

use_bzip2           yes

python.default_version  27

depends_lib-append  port:py${python.version}-pygtk

use_configure       no

post-patch {
    reinplace "s|/usr/bin/env python|${python.bin}|g" \
        ${worksrcpath}/src/usr/bin/diffuse
}

build {}

destroot {
    system -W "${worksrcpath}" "${python.bin} \
       ./install.py \
       --pythonbin=${python.bin} \
       --prefix=${prefix} \
       --destdir=${destroot} \
       --sysconfdir=${prefix}/etc"
}
