# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0

name                    appengine-java-sdk
version                 1.6.5
categories              java devel
maintainers             gmail.com:nhoj.patrick 2moro.com.au:dmunneke openmaintainer
platforms               darwin
supported_archs         noarch

description             Google App Engine SDK for Java

long_description        With App Engine, you can build web applications using \
                        standard Java technologies and run them on Google's \
                        scalable infrastructure. The Java environment \
                        provides a Java 6 JVM, a Java Servlets interface, and \
                        support for standard interfaces to the App Engine \
                        scalable datastore and services, such as JDO, JPA, \
                        JavaMail, and JCache. Standards support makes \
                        developing your application easy and familiar, and \
                        also makes porting your application to and from your \
                        own servlet environment straightforward.

homepage                https://appengine.google.com/
master_sites            googlecode:googleappengine
use_zip                 yes

checksums               sha256  fe7f2aee26df355e4bf57677b813547c3282568d74535fda65b748e6735417ed \
                        rmd160  d8218195b7aed4a49bddb6cf6a2ad5c94839572f

use_configure           no

build                   {}

destroot {
    # Create the target java directory
    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}

    # Copy over the needed elements of our directory tree
    file copy ${worksrcpath}/bin \
        ${worksrcpath}/config \
        ${worksrcpath}/demos \
        ${worksrcpath}/docs \
        ${worksrcpath}/lib \
        ${worksrcpath}/ABOUT \
        ${worksrcpath}/COPYING \
        ${worksrcpath}/README \
        ${worksrcpath}/RELEASE_NOTES \
        ${worksrcpath}/README.ORM \
        ${worksrcpath}/RELEASE_NOTES.ORM \
        ${destroot}${prefix}/share/java/${name}
}

notes "
Remember to set the environment variable APPENGINE_HOME path:
export APPENGINE_HOME=${prefix}/share/java/${name}
export PATH=\$PATH:\$APPENGINE_HOME/bin
"