Ticket #28799: play.3.diff

File play.3.diff, 5.3 KB (added by ci42, 13 years ago)
  • Portfile

    diff -urtN orig/Portfile new/Portfile
    old new  
     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
     26master_sites        https://github.com/playframework/play/tarball/${version}
     27checksums           sha1    e6f72d1323ab798c6ac9a7c08b933cc577ecbd8e \
     28                    rmd160  86f729abc69e66f996e18123412d6b45e7f84c9d
     29
     30use_configure       no
     31
     32patchfiles          patch-framework-build.xml.diff
     33
     34build.cmd           ant
     35build.target        package
     36build.dir           ${worksrcpath}/framework
     37
     38post-extract {
     39    file rename [glob ${workpath}/playframework-play-*] ${worksrcpath}
     40
     41    # delete windows specific files
     42    file delete ${worksrcpath}/play.bat
     43    file delete -force ${worksrcpath}/python
     44}
     45
     46destroot        {
     47    xinstall -m 755 -d ${destroot}${prefix}/share/java/${distname}
     48    file attributes ${build.dir}/dist/play -permissions rwxr-xr-x
     49    foreach f [glob -directory ${build.dir}/dist *] {
     50        file copy $f ${destroot}${prefix}/share/java/${distname}
     51    }
     52
     53    # symlink play into the bin directory
     54    system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${distname}/play"
     55
     56    # symlink the documentation
     57    set docdir ${destroot}${prefix}/share/doc/${name}
     58    xinstall -d $docdir
     59    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/documentation/api"
     60    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/samples-and-tests"
     61    # symlink the repository conifguration
     62    xinstall -d ${destroot}${prefix}/etc/${distname}
     63    system "cd ${destroot}${prefix}/etc/${distname} && ln -s ${prefix}/share/java/${distname}/repositories"
     64}
  • files/patch-framework-build.xml.diff

    diff -urtN orig/files/patch-framework-build.xml.diff new/files/patch-framework-build.xml.diff
    old new  
     1--- framework/build.xml.orig    2011-04-05 23:37:14.000000000 +0200
     2+++ framework/build.xml 2011-04-05 23:40:34.000000000 +0200
     3@@ -3,6 +3,7 @@
     4 <project name="play! framework" default="jar" basedir=".">
     5     
     6     <property name="baseversion" value="1.1.x" />
     7+    <property name="version" value="1.1.1" />
     8 
     9     <path id="project.classpath">
     10         <pathelement path="play.jar"/>
     11@@ -301,11 +302,11 @@
     12     
     13     <target name="package" depends="clean,version,jar,javadoc">
     14         <mkdir dir="dist" />
     15-        <zip destfile="dist/play-${version}.zip" comment="Play! ${version}" update="false">
     16-            <zipfileset prefix="play-${version}" dir=".." includes="**/*" excludes="**/cobertura.ser,**/*.pyc,hs_err*,.*,.*/*,framework/dist/**,id,play,nbproject/**,**/.bzr/**,**/.git/**,*.bzrignore,support/textmate/**,framework/classes/**,framework/tests-results/**,samples-and-tests/**/test-result,samples-and-tests/**/i-am-working-here,samples-and-tests/**/data,samples-and-tests/**/logs,samples-and-tests/**/tmp,samples-and-tests/**/db,samples-and-tests/**/attachments,modules/**" />   
     17-            <zipfileset prefix="play-${version}" dir=".." includes="play" filemode="777" />
     18-            <zipfileset prefix="play-${version}" dir=".." includes="modules/grizzly/**,modules/crud/**,modules/secure/**,modules/docviewer/**,modules/testrunner/**" excludes="**/*.pyc" />
     19-        </zip>
     20+        <copy todir="dist">
     21+            <fileset dir=".." includes="**/*" excludes="**/cobertura.ser,**/*.pyc,hs_err*,.*,.*/*,framework/dist/**,id,play,nbproject/**,**/.bzr/**,**/.git/**,*.bzrignore,support/textmate/**,framework/classes/**,framework/tests-results/**,samples-and-tests/**/test-result,samples-and-tests/i-am-a-developer/**,samples-and-tests/**/data,samples-and-tests/**/logs,samples-and-tests/**/tmp,samples-and-tests/**/db,samples-and-tests/**/attachments,modules/**" />   
     22+            <fileset dir=".." includes="play" />
     23+            <fileset dir=".." includes="modules/grizzly/**,modules/crud/**,modules/secure/**,modules/docviewer/**,modules/testrunner/**" excludes="**/*.pyc" />
     24+        </copy>
     25     </target>
     26     
     27 </project>