# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name            ige-mac-integration
version         0.8.2
categories      devel
maintainers     flyn.org:mike

description	Mac OS X menu bar integration library for GTK2 quartz

long_description \
		A simple library whose purpose is to \
		allow GTK2 quartz applications to integrate with \
		the Mac OS X menu bar. Requires gtk2 and its \
                dependencies to be built with variants +no_x11 +quartz

homepage        http://live.gnome.org/GTK%2B/OSX/Integration
platforms       darwin

master_sites    http://ftp.imendio.com/pub/imendio/ige-mac-integration/

checksums       md5     c9ad0b80b5daa23891be654e29d7bcdc \
                sha1    4d5f2a88c3d354133105b3c84e4a12abcb017eeb \
                rmd160  857dce9f7377484901e08ce68fd8a72f5261abd5

depends_build   port:pkgconfig

depends_lib     port:py25-gtk

pre-configure {
    if {![file exists ${prefix}/lib/pkgconfig/gdk-quartz-2.0.pc]} {
        ui_error "

****
**** ige-mac-integration is meant to be used only in a GTK2 quartz
**** development environment but your version of GTK2 does not
**** support quartz.  Please make sure that port gtk2 and all its
**** dependencies are built with variants +no_x11 +quartz and try again.
****
"
        error "gtk2 +no_x11 +quartz not installed."
    }
}

configure.python ${prefix}/bin/python2.5

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
