Ticket #31229: Portfile

File Portfile, 1.6 KB (added by singingwolfboy@…, 13 years ago)

unified py*-googleappengine ports

Line 
1# -*- 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
2# $Id: Portfile 80965 2011-07-22 15:19:21Z snc@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-googleappengine
8version                 1.5.3
9python.versions         25 26 27
10python.default_version  25
11categories-append       devel www
12maintainers             snc gmail.com:newlix.yang openmaintainer
13description             The Google App Engine Python SDK
14long_description        This is the official Google App Engine SDK for Python.
15platforms               darwin
16
17homepage                http://code.google.com/appengine/
18master_sites            googlecode:googleappengine
19distname                google_appengine_${version}
20use_zip                 yes
21worksrcdir              google_appengine
22
23checksums           sha1    e9dfade61e897f624dd3eee681b6b9d7e593316e \
24                    rmd160  e538b05cb88df224971639c25f89c1819ce9be39
25
26post-build {
27    eval reinplace "\"s|#!/usr/bin/env python|#!${python.bin}|\"" [glob ${worksrcpath}/*.py]
28}
29
30destroot {
31    file rename ${worksrcpath} ${destroot}${prefix}/share/${worksrcdir}
32
33    # add this directory to the python path, so we can `import google`
34    xinstall -d ${destroot}${python.pkgd}
35    set fp [open "${destroot}${python.pkgd}/googleappengine.pth" "w"]
36    puts $fp "${prefix}/share/${worksrcdir}"
37    close $fp
38}
39build {}
40
41livecheck.name          googleappengine
42livecheck.regex         "location\.href='http://googleappengine.googlecode.com/files/google_appengine_(\\d+\\.\\d+\\.\\d+)\\.zip"