Ticket #26987: Portfile

File Portfile, 2.6 KB (added by derek.munneke@…, 13 years ago)

appengine-java-sdk Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
2# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
3# $Id$
4
5PortSystem 1.0
6
7name                    appengine-java-sdk
8version                 1.3.8
9revision                0
10categories              devel java
11maintainers             openmaintainer dmunneke@2moro.com.au
12platforms               darwin
13description             Google App Engine SDK for Java
14long_description        \
15    With App Engine, you can build web applications using standard Java technologies \
16    and run them on Google's scalable infrastructure. The Java environment provides a \
17    Java 6 JVM, a Java Servlets interface, and support for standard interfaces to the \
18    App Engine scalable datastore and services, such as JDO, JPA, JavaMail, and JCache. \
19    Standards support makes developing your application easy and familiar, and also makes \
20    porting your application to and from your own servlet environment straightforward.
21
22homepage                http://appengine.google.com/
23
24#http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.8.zip
25#http://googleappengine.googlecode.com/files/google-appengine-docs-20101014.zip
26#master_sites           http://googleappengine.googlecode.com/files/
27master_sites            googlecode:googleappengine
28distname                ${name}-${version}
29use_zip                 yes
30
31checksums               sha1 5395bb75ab8913ec2312e0cd65815e04858e3d33
32
33worksrcdir              ${name}-${version}
34set workTarget          ""
35
36use_configure           no
37build.cmd               true
38
39platform darwin {
40    extract.post_args   | gnutar -x
41    build.env           JAVA_HOME=/Library/Java/Home
42}
43
44pre-destroot {
45
46}
47
48destroot        {
49        # Create the target java directory
50        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
51
52        # Copy over the needed elements of our directory tree
53        file copy ${worksrcpath}/bin                                    \
54                          ${worksrcpath}/config                         \
55                          ${worksrcpath}/demos                          \
56                          ${worksrcpath}/docs                           \
57                          ${worksrcpath}/lib                            \
58                          ${worksrcpath}/ABOUT                          \
59                          ${worksrcpath}/COPYING                        \
60                          ${worksrcpath}/README                         \
61                          ${worksrcpath}/RELEASE_NOTES                  \
62                          ${worksrcpath}/README.ORM                     \
63                          ${worksrcpath}/RELEASE_NOTES.ORM              \
64                          ${destroot}${prefix}/share/java/${name}
65
66}
67
68post-activate {
69                ui_msg "****************************************************************************"
70                ui_msg "* Remember to set the environment variable APPENGINE_HOME path:             "
71                ui_msg " export APPENGINE_HOME=${prefix}/share/java/${name}                         "
72                ui_msg " export PATH=$PATH:$APPENGINE_HOME/bin                                      "
73                ui_msg "****************************************************************************"
74 }