Ticket #32849: Portfile

File Portfile, 2.9 KB (added by nhojpatrick (John Patrick), 10 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem              1.0
5
6name                    webtoolkit-java-sdk
7version                 2.4.0
8revision                0
9categories              java devel
10maintainers             gmail.com:nhoj.patrick
11platforms               darwin
12supported_archs         noarch
13
14description             Google Web Toolkit SDK for Java
15
16long_description        Google Web Toolkit (GWT) is a development toolkit for \
17                        building and optimizing complex browser-based applications.
18
19homepage                http://code.google.com/webtoolkit/
20master_sites            googlecode:google-web-toolkit
21distfiles               gwt-${version}.zip
22worksrcdir              gwt-${version}
23use_zip                 yes
24
25checksums               sha256  27d48a4b6df9de01eaf1bd3ba3971a8f32742886f67041ddc3cd9dbe01787ebf \
26                        rmd160  79d159ba2176a4b96d7cefdfcc557301ebb1d31d
27
28use_configure           no
29
30livecheck.type          regex
31livecheck.url           ${homepage}release-notes.html
32livecheck.regex         "Release Notes for (\\d+\\.\\d+(\\.\\d+)?)"
33
34build                   {}
35
36destroot {
37    # Create the target java directory
38    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
39
40    # Copy over the needed elements of our directory tree
41    file copy ${worksrcpath}/doc \
42        ${worksrcpath}/samples \
43        ${worksrcpath}/COPYING \
44        ${worksrcpath}/COPYING.html \
45        ${worksrcpath}/about.html \
46        ${worksrcpath}/about.txt \
47        ${worksrcpath}/benchmarkViewer \
48        ${worksrcpath}/benchmarkViewer.cmd \
49        ${worksrcpath}/gwt-api-checker.jar \
50        ${worksrcpath}/gwt-benchmark-viewer.war \
51        ${worksrcpath}/gwt-dev.jar \
52        ${worksrcpath}/gwt-ll.dll \
53        ${worksrcpath}/gwt-module.dtd \
54        ${worksrcpath}/gwt-servlet-deps.jar \
55        ${worksrcpath}/gwt-servlet.jar \
56        ${worksrcpath}/gwt-soyc-vis.jar \
57        ${worksrcpath}/gwt-user.jar \
58        ${worksrcpath}/i18nCreator \
59        ${worksrcpath}/i18nCreator.cmd \
60        ${worksrcpath}/release_notes.html \
61        ${worksrcpath}/requestfactory-apt.jar \
62        ${worksrcpath}/requestfactory-client+src.jar \
63        ${worksrcpath}/requestfactory-client-src.jar \
64        ${worksrcpath}/requestfactory-client.jar \
65        ${worksrcpath}/requestfactory-server+src.jar \
66        ${worksrcpath}/requestfactory-server-src.jar \
67        ${worksrcpath}/requestfactory-server.jar \
68        ${worksrcpath}/validation-api-1.0.0.GA-sources.jar \
69        ${worksrcpath}/validation-api-1.0.0.GA.jar \
70        ${worksrcpath}/webAppCreator \
71        ${worksrcpath}/webAppCreator.cmd \
72        ${destroot}${prefix}/share/java/${name}
73}
74
75notes "
76Remember to set the environment variable WEBTOOLKIT_HOME path:
77WEBTOOLKIT_HOME=${prefix}/share/java/${name} ; export WEBTOOLKIT_HOME
78PATH=\${PATH}:\${WEBTOOLKIT_HOME}/bin ; export PATH
79"