Ticket #28799: play.diff

File play.diff, 5.6 KB (added by ci42, 13 years ago)

Portfile and patches

  • 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 License 2.0
     25
     26fetch.type          git
     27git.url             https://github.com/playframework/play.git
     28git.branch          ${version}
     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    # delete windows specific files
     43    file delete ${worksrcpath}/play.bat
     44    file delete -force ${worksrcpath}/python
     45}
     46
     47destroot        {
     48    xinstall -m 755 -d ${destroot}${prefix}/share/java/${distname}
     49    file attributes ${workpath}/${worksrcdir}/dist/play -permissions rwxr-xr-x
     50    foreach f [glob -directory ${workpath}/${worksrcdir}/dist *] {
     51        file copy $f ${destroot}${prefix}/share/java/${distname}
     52    }
     53
     54    # symlink play into the bin directory
     55    system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${distname}/play"
     56
     57    # symlink the documentation
     58    set docdir ${destroot}${prefix}/share/doc/${distname}
     59    xinstall -d $docdir
     60    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/documentation/api"
     61    system "cd $docdir && ln -s ${prefix}/share/java/${distname}/samples-and-tests"
     62    # symlink the repository conifguration
     63    xinstall -d ${destroot}${prefix}/etc/${distname}
     64    system "cd ${destroot}${prefix}/etc/${distname} && ln -s ${prefix}/share/java/${distname}/repositories"
     65}
  • 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-03-13 21:53:45.000000000 +0100
     2+++ framework/build.xml 2011-03-13 21:53:41.000000000 +0100
     3@@ -38,9 +38,9 @@
     4     <target name="version" unless="version">
     5         <exec executable="git" outputproperty="gitversion" errorproperty="giterror" failonerror="false" failifexecutionfails="false">
     6             <arg value="describe" />
     7-            <arg value="--always" />
     8+            <arg value="--tags" />
     9         </exec>
     10-        <condition property="version" value="${baseversion}-${gitversion}" else="${baseversion}-localbuild">
     11+        <condition property="version" value="${gitversion}" else="${baseversion}-localbuild">
     12             <equals arg1="" arg2="${giterror}" trim="true" />
     13         </condition>
     14         <echo message="Version ${version}"></echo>
     15@@ -301,11 +301,11 @@
     16     
     17     <target name="package" depends="clean,version,jar,javadoc">
     18         <mkdir dir="dist" />
     19-        <zip destfile="dist/play-${version}.zip" comment="Play! ${version}" update="false">
     20-            <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/**" />   
     21-            <zipfileset prefix="play-${version}" dir=".." includes="play" filemode="777" />
     22-            <zipfileset prefix="play-${version}" dir=".." includes="modules/grizzly/**,modules/crud/**,modules/secure/**,modules/docviewer/**,modules/testrunner/**" excludes="**/*.pyc" />
     23-        </zip>
     24+        <copy todir="dist">
     25+            <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/**" />   
     26+            <fileset dir=".." includes="play" />
     27+            <fileset dir=".." includes="modules/grizzly/**,modules/crud/**,modules/secure/**,modules/docviewer/**,modules/testrunner/**" excludes="**/*.pyc" />
     28+        </copy>
     29     </target>
     30     
     31 </project>