source: trunk/dports/devel/play/Portfile

Last change on this file was 148644, checked in by g5pw@…, 18 months ago

devel/play: remove upstream-included patchfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
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: Portfile 148644 2016-05-13 09:16:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                play
7conflicts           sox
8version             1.2.7.2
9categories          devel java www
10platforms           darwin
11license             Apache-2
12maintainers         ciserlohn
13supported_archs     noarch
14
15description         Rapid webapplication development framework
16
17long_description    The Play framework is a clean alternative to bloated Enterprise Java stacks. \
18                    It focuses on developer productivity and targets RESTful architectures. \
19                    Play is a perfect companion to agile software development. \
20                    Play is a pure Java framework and allows you to keep your preferred \
21                    development tools and libraries. If you already use Java as a  \
22                    development platform you don't need to switch to another language, \
23                    another IDE and other libraries. \
24                    The Play framework's goal is to ease web applications \
25                    development while sticking with Java. (From the documentation)
26
27homepage            http://www.playframework.org/
28master_sites        https://github.com/playframework/play/tarball/${version}
29
30checksums           rmd160  c0e96c2539e0d90503a17c2b6155f7f7a3cc0275 \
31                    sha256  b2f8622ddba0fbaff6cde717a8b2ceb534d0fb8295554e2a4716cadecd893933
32
33depends_build       port:apache-ant
34
35depends_lib         port:python27
36
37post-extract {
38    file rename [glob ${workpath}/playframework-play1-*] ${worksrcpath}
39
40    # delete windows specific files
41    delete ${worksrcpath}/play.bat ${worksrcpath}/python
42}
43
44patchfiles          patch-framework-build.xml.diff
45
46post-patch {
47    reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|" ${worksrcpath}/play
48}
49
50use_configure       no
51
52build.cmd           ant
53build.target        package
54build.dir           ${worksrcpath}/framework
55
56destroot {
57    xinstall -m 755 -d ${destroot}${prefix}/share/java/${distname}
58    file attributes ${build.dir}/dist/play -permissions rwxr-xr-x
59    foreach f [glob -directory ${build.dir}/dist *] {
60        file copy $f ${destroot}${prefix}/share/java/${distname}
61    }
62
63    # symlink the binary
64    ln -s ${prefix}/share/java/${distname}/play ${destroot}${prefix}/bin
65
66    # symlink the documentation
67    set docdir ${destroot}${prefix}/share/doc/${name}
68    xinstall -d ${docdir}
69    ln -s ${prefix}/share/java/${distname}/documentation/api ${docdir}
70    ln -s ${prefix}/share/java/${distname}/samples-and-tests ${docdir}
71
72}
73
74livecheck.type      regex
75livecheck.url       ${homepage}download
76livecheck.regex     ${name}-(1(\\.\\d+)*).zip
Note: See TracBrowser for help on using the repository browser.