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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name play |
---|
7 | version 1.1.1 |
---|
8 | categories devel java |
---|
9 | maintainers googlemail.com:ciserlohn |
---|
10 | |
---|
11 | description Rapid webapplication development framework |
---|
12 | long_description The Play framework is a clean alternative to bloated Enterprise Java stacks. \ |
---|
13 | It focuses on developer productivity and targets RESTful architectures. \ |
---|
14 | Play is a perfect companion to agile software development. \ |
---|
15 | Play is a pure Java framework and allows you to keep your preferred \ |
---|
16 | development tools and libraries. If you already use Java as a \ |
---|
17 | development platform you don't need to switch to another language, \ |
---|
18 | another IDE and other libraries. \ |
---|
19 | The Play framework's goal is to ease web applications \ |
---|
20 | development while sticking with Java. (From the documentation) |
---|
21 | |
---|
22 | homepage http://www.playframework.org |
---|
23 | platforms darwin |
---|
24 | license Apache-2 |
---|
25 | |
---|
26 | fetch.type git |
---|
27 | git.url https://github.com/playframework/play.git |
---|
28 | git.branch ${version} |
---|
29 | |
---|
30 | use_configure no |
---|
31 | |
---|
32 | build.cmd ant |
---|
33 | build.target package |
---|
34 | |
---|
35 | worksrcdir ${distname}/framework |
---|
36 | |
---|
37 | post-extract { |
---|
38 | # delete windows specific files |
---|
39 | file delete ${worksrcpath}/play.bat |
---|
40 | file delete -force ${worksrcpath}/python |
---|
41 | } |
---|
42 | |
---|
43 | destroot { |
---|
44 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${distname} |
---|
45 | file attributes ${workpath}/${distname}/play -permissions rwxr-xr-x |
---|
46 | foreach f [glob -directory ${workpath}/${distname} *] { |
---|
47 | file copy $f ${destroot}${prefix}/share/java/${distname} |
---|
48 | } |
---|
49 | |
---|
50 | # symlink play into the bin directory |
---|
51 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${distname}/play" |
---|
52 | |
---|
53 | # symlink the documentation |
---|
54 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
55 | xinstall -d $docdir |
---|
56 | system "cd $docdir && ln -s ${prefix}/share/java/${distname}/documentation/api" |
---|
57 | system "cd $docdir && ln -s ${prefix}/share/java/${distname}/samples-and-tests" |
---|
58 | # symlink the repository conifguration |
---|
59 | xinstall -d ${destroot}${prefix}/etc/${distname} |
---|
60 | system "cd ${destroot}${prefix}/etc/${distname} && ln -s ${prefix}/share/java/${distname}/repositories" |
---|
61 | } |
---|