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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-googleappengine |
---|
8 | version 1.5.3 |
---|
9 | python.versions 25 26 27 |
---|
10 | python.default_version 25 |
---|
11 | categories-append devel www |
---|
12 | maintainers snc gmail.com:newlix.yang openmaintainer |
---|
13 | description The Google App Engine Python SDK |
---|
14 | long_description This is the official Google App Engine SDK for Python. |
---|
15 | platforms darwin |
---|
16 | |
---|
17 | homepage http://code.google.com/appengine/ |
---|
18 | master_sites googlecode:googleappengine |
---|
19 | distname google_appengine_${version} |
---|
20 | use_zip yes |
---|
21 | worksrcdir google_appengine |
---|
22 | |
---|
23 | checksums sha1 e9dfade61e897f624dd3eee681b6b9d7e593316e \ |
---|
24 | rmd160 e538b05cb88df224971639c25f89c1819ce9be39 |
---|
25 | |
---|
26 | post-build { |
---|
27 | eval reinplace "\"s|#!/usr/bin/env python|#!${python.bin}|\"" [glob ${worksrcpath}/*.py] |
---|
28 | } |
---|
29 | |
---|
30 | destroot { |
---|
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 | } |
---|
39 | build {} |
---|
40 | |
---|
41 | livecheck.name googleappengine |
---|
42 | livecheck.regex "location\.href='http://googleappengine.googlecode.com/files/google_appengine_(\\d+\\.\\d+\\.\\d+)\\.zip" |
---|