# -*- 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 84550 2011-09-27 21:05:11Z snc@macports.org $

PortSystem              1.0
PortGroup xcode         1.0

name                    macports-notifier
version                 0.1.2
categories              sysutils aqua macports
maintainers             nomaintainer

description             A menubar notifier for MacPorts.

long_description        MacPorts Notifier is a menubar notifier for MacPorts. \
                        It works like the Gmail notifier, updating the port \
                        tree automatically and notifying the user if any \
                        ports are outdated.

homepage                http://portsnotifier.googlecode.com/
master_sites            googlecode:portsnotifier

checksums               md5     06b1d3e87b38c14f784d7c5ca747fcbe \
                        sha1    d9fe71ec593ad1ea2a7b0850a234446bfd6c3c34

worksrcdir              portsnotifier

patchfiles              patch-PortsNotifier.xcodeproj-project.pbxproj.diff

post-patch {
    reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/PNDefines.h \
                                         ${worksrcpath}/net.sourceforge.portsnotifier.plist \
                                         ${worksrcpath}/PNPortWrapper.m \
                                         ${worksrcpath}/PortsHelper.c
}

xcode.target            PortsNotifier
xcode.configuration     Release

post-destroot {
    move ${destroot}${applications_dir}/macports-sync-agent ${destroot}${prefix}/bin
}
