# -*- 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 68073 2010-05-26 06:04:07Z jmr@macports.org $

PortSystem              1.0
PortGroup               python25 1.0

name                    py25-googleappengine
version                 1.3.4
categories-append       devel www
maintainers             gmail.com:newlix.yang openmaintainer
description             The Google App Engine Python SDK
long_description        This is the official Google App Engine SDK for Python.
platforms               darwin

homepage                http://code.google.com/appengine/
master_sites            googlecode:googleappengine
distname                google_appengine_${version}
use_zip                 yes
worksrcdir              google_appengine

checksums           md5     3fb39e087114ad3e5e5c75625fe7192d \
                    sha1    1e5a792f2a479f00c288d9c2ac8c499f07e58b2f \
                    rmd160  738042a64fb049982ae008d3a0716c73b19251e1

destroot {
    file rename ${worksrcpath} ${destroot}${prefix}/share/${worksrcdir}

    # add this directory to the python path, so we can `import google`
    xinstall -d ${destroot}${python.pkgd}
    set fp [open "${destroot}${python.pkgd}/googleappengine.pth" "w"]
    puts $fp "${prefix}/share/${worksrcdir}"
    close $fp
}
build {}

livecheck.name          googleappengine
livecheck.regex         "location\.href='http://googleappengine.googlecode.com/files/google_appengine_(\\d+\\.\\d+\\.\\d+)\\.zip"
