# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name			macfile-gimp
version			0.1
maintainers		nomaintainer
description		\"Show in Finder\" Gimp plugin
long_description \
    Quickie plugin to add a \"Show in Finder\" to the \
    Gimp image window file menu.

universal_variant no

categories      aqua graphics
license			GPL-2+
platforms       macosx
homepage		http://leuksman.com/pages/MacFile

master_sites	sourceforge:gimp-mac-helper
checksums		md5 38b4d3f860fb1d8fe511915f2f8670c3

depends_build   port:pkgconfig
depends_lib     lib:libgimp-2.0:gimp2

patch {
    reinplace "s|/sw|${prefix}|g" ${worksrcpath}/Makefile
    reinplace "s|gcc|${configure.cc}|g" ${worksrcpath}/Makefile
    delete ${worksrcpath}/macfile
}

use_configure   no

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/lib/gimp/2.0/plug-ins
    xinstall -m 755 ${worksrcpath}/macfile \
        ${destroot}${prefix}/lib/gimp/2.0/plug-ins
}

livecheck.regex "/macfile-gimp-(\\d+(?:\\.\\d+)*).tar.gz"
