# -*- 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			macclipboard-gimp
version			0.7
maintainers		nomaintainer
license         GPL-2
description		Gimp <-> Mac clipboard
long_description \
    MacClipboard is a port of the WinClipboard plugin for Gimp 2.0 to Mac OS X. \
    you can copy Gimp layers and paste them into Macintosh programs \
    and paste images into Gimp from Mac programs. \
    Access to system services for screen capture and scanning is also provided.

universal_variant no

categories      aqua graphics
platforms       macosx
homepage		http://leuksman.com/pages/MacClipboard

master_sites	sourceforge:gimp-mac-helper
checksums		md5 5176f2dd865c5925cad5e6c5695e6e8d

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

patchfiles patch-Lion.diff

post-patch {
    reinplace "s|gcc|${configure.cc}|g" ${worksrcpath}/Makefile
    delete ${worksrcpath}/macclipboard
}

use_configure   no

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

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