# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 55191 2009-08-07 11:57:56Z snc@macports.org $

PortSystem 1.0
PortGroup xcode 1.0

name                    macports-notifier
version                 0.1
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 teee automatically and notifying \	the user if any ports are outdated.
homepage                http://portsnotifier.sourceforge.net
#master_sites
#distname               ${name}
#checksums              md5 c586fd603d9978b306aee428ea39e329
platforms               macosx

fetch.type              svn
svn.url                 http://portsnotifier.googlecode.com/svn/trunk/

worksrcdir              trunk

use_configure	yes
configure	{
	reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/PNDefines.h
	reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/net.sourceforge.portsnotifier.plist
}

xcode.target            PortsNotifier
xcode.configuration     Release

post-destroot	{
	xinstall -d ${destroot}${prefix}/bin
	xinstall -c ${worksrcpath}/build/macports-sync-agent ${destroot}${prefix}/bin
	file delete ${destroot}/Applications/MacPorts/macports-sync-agent
}
