# $Id: Portfile 65514 2010-03-26 22:57:51Z juanger@macports.org $

PortSystem 1.0
PortGroup xcode 1.0

name                    MacPorts_Framework
version                 1.2.0
categories              devel macports framework
maintainers             juanger armahg
description             Cocoa framework for MacPorts.
long_description    \
    MacPorts.framework is a framework for linking Cocoa applications to the \
    MacPorts infrastructure.
homepage                http://www.macports.org
#master_sites
#distname               ${name}
#checksums              md5 c586fd603d9978b306aee428ea39e329
platforms               macosx

fetch.type              svn
svn.url                 http://svn.macosforge.org/repository/macports/contrib/MacPorts_Framework
svn.revision            65491

worksrcdir              MacPorts_Framework

xcode.target            MacPorts

if {"darwin" == ${os.platform}} {
  if {9 <= ${os.major}} {
    xcode.configuration     Release
  } elseif {8 == ${os.major}} {
    xcode.configuration     Release-Tiger
  } else {
    ui_error "You need Mac OS X Tiger at least to build this port."
    return -code error "incompatible Mac OS X version"
  }
}

xcode.destroot.type     framework

#Clean up MPHelperInstallTool and MPHelperTool from directory
post-destroot {
  file delete ${destroot}${frameworks_dir}/MPHelperTool \
    ${destroot}${frameworks_dir}/MPHelperInstallTool
}
