Ticket #29093: Portfile

File Portfile, 2.4 KB (added by ci42, 13 years ago)

use this to reproduce the bug

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                play
7version             1.1.1
8categories          devel java
9maintainers         googlemail.com:ciserlohn
10
11description         Rapid webapplication development framework
12long_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
22homepage            http://www.playframework.org
23platforms           darwin
24license             Apache-2
25
26fetch.type          git
27git.url             https://github.com/playframework/play.git
28git.branch          ${version} 
29
30use_configure       no
31
32build.cmd           ant
33build.target        package
34
35worksrcdir ${distname}/framework       
36
37post-extract {
38    # delete windows specific files
39    file delete ${worksrcpath}/play.bat
40    file delete -force ${worksrcpath}/python
41}
42
43destroot        {
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}