Ticket #28799: play.4.diff
File play.4.diff, 5.2 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 4 PortSystem 1.0 5 6 name play 7 version 1.2 8 categories devel java 9 maintainers googlemail.com:ciserlohn 10 11 description Rapid webapplication development framework 12 long_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 22 homepage http://www.playframework.org 23 platforms darwin 24 license Apache-2 25 26 master_sites https://github.com/playframework/play/tarball/${version} 27 checksums sha1 1ebc9f02e3204258966ff8e6226a7ddb7c8bb2e2 \ 28 rmd160 7a9984b800eaf699bcdea99e60e47bab8a7e99f9 29 30 use_configure no 31 32 patchfiles patch-framework-build.xml.diff 33 34 build.cmd ant 35 build.target package 36 build.dir ${worksrcpath}/framework 37 38 post-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 46 destroot { 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 conifgurationq 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-13 22:25:15.000000000 +0200 2 +++ framework/build.xml 2011-04-13 22:22:36.000000000 +0200 3 @@ -3,6 +3,7 @@ 4 <project name="play! framework" default="jar" basedir="."> 5 6 <property name="baseversion" value="1.2.x" /> 7 + <property name="version" value="1.2" /> 8 9 <path id="project.classpath"> 10 <fileset dir="."> 11 @@ -352,11 +353,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>