Ticket #28799: play.2.diff

File play.2.diff, 5.3 KB (added by ci42, 14 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
     36
     37pre-build {
     38    worksrcdir ${distname}/framework   
     39}
     40
     41post-extract {
     42    file rename [glob ${workpath}/playframework-play-*] ${worksrcpath}
     43
     44    # delete windows specific files
     45    file delete ${worksrcpath}/play.bat
     46    file delete -force ${worksrcpath}/python
     47}
     48
     49destroot        {
     50    xinstall -m 755 -d ${destroot}${prefix}/share/java/${distname}
     51    file attributes ${workpath}/${worksrcdir}/dist/play -permissions rwxr-xr-x
     52    foreach f [glob -directory ${workpath}/${worksrcdir}/dist *] {
     53        file copy $f ${destroot}${prefix}/share/java/${distname}
     54    }
     55
     56    # symlink play into the bin directory
     57    system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${distname}/play"
     58
     59    # symlink the documentation
     60    set docdir ${destroot}${prefix}/share/doc/${name}
     61    xinstall -d $docdir
     62    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/documentation/api"
     63    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/samples-and-tests"
     64    # symlink the repository conifguration
     65    xinstall -d ${destroot}${prefix}/etc/${distname}
     66    system "cd ${destroot}${prefix}/etc/${distname} && ln -s ${prefix}/share/java/${distname}/repositories"
     67}
  • 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>