Ticket #27086: junit4.9.diff

File junit4.9.diff, 6.5 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

incomplete patch

  • files/patch-build.xml.diff

     
    1 --- build.xml.orig      2009-06-12 21:55:56.000000000 +0200
    2 +++ build.xml   2009-06-12 22:15:35.000000000 +0200
    3 @@ -18,7 +18,7 @@
    4         <property name="javadocdir" location="${dist}/javadoc" />
    5         <property name="javadoczip" location="${dist}-javadoc.zip" />
    6         <property name="javadocpackages" value="org.junit, org.junit.runner, org.junit.runner.description, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners, org.hamcrest.core, org.junit.matchers" />
    7 -       <property name="hamcrestlib" location="lib/hamcrest-core-1.1.jar" />
    8 +       <property name="hamcrestlib" value="${prefix}/share/java/hamcrest-core.jar;${prefix}/share/java/hamcrest-library.jar" />
    9         <property name="hamcrestsrc" location="${dist}/temp.hamcrest.source" />
    10        
    11         <target name="init">
    12 @@ -72,8 +72,6 @@
    13        
    14         <target name="build" depends="versiontag">
    15                 <junit_compilation srcdir="${src}" destdir="${bin}" classpath="${hamcrestlib}"/>
    16 -               <unjar src="${hamcrestlib}" dest="${bin}" />
    17 -               <junit_compilation srcdir="${testsrc}" destdir="${testbin}" classpath="${hamcrestlib};${bin}"/>
    18         </target>
     1--- build.xml.orig      2011-08-22 14:10:26.000000000 -0500
     2+++ build.xml   2011-09-21 10:03:20.000000000 -0500
     3@@ -27,7 +27,7 @@
    194 
    20         <target name="jars">
    21 @@ -106,17 +104,16 @@
    22                 <unjar src="${hamcrestlib}" dest="${hamcrestsrc}" />
    23         </target>
    24        
    25 -       <target name="javadoc" depends="unjar.hamcrest">
    26 +       <target name="javadoc">
    27                 <javadoc packagenames="${javadocpackages}"
    28                          destdir="${javadocdir}"
    29                          author="false"
    30                          version="false"
    31                          use="false"
    32                          windowtitle="JUnit API"
    33 -                        stylesheetfile="stylesheet.css"
    34 +                        classpath="${hamcrestlib}"
    35                 >
    36                         <sourcepath location="${src}" />
    37 -                       <sourcepath location="${hamcrestsrc}" />
    38                 </javadoc>
    39         </target>
     5   <property name="javadocdir" location="${dist}/javadoc" />
     6   <property name="javadoczip" location="${dist}-javadoc.zip" />
     7-  <property name="hamcrestlib" location="lib/hamcrest-core-1.1.jar" />
     8+  <property name="hamcrestlib" value="${prefix}/share/java/hamcrest-core.jar;${prefix}/share/java/hamcrest-library.jar" />
     9   <property name="hamcrestsrc" location="${dist}/temp.hamcrest.source" />
    4010 
     11   <target name="init">
     12@@ -76,8 +76,6 @@
     13   
     14   <target name="build" depends="versiontag">
     15     <junit_compilation srcdir="${src}" destdir="${bin}" classpath="${hamcrestlib}"/>
     16-    <unjar src="${hamcrestlib}" dest="${bin}" />
     17-    <junit_compilation srcdir="${testsrc}" destdir="${testbin}" classpath="${hamcrestlib};${bin}"/>
     18   </target>
     19 
     20   <target name="jars" depends="build">
     21@@ -137,20 +135,19 @@
     22     </exec>
     23   </target>
     24   
     25-  <target name="javadoc" depends="unjar.hamcrest">
     26+  <target name="javadoc">
     27     <javadoc destdir="${javadocdir}"
     28              author="false"
     29              version="false"
     30              use="false"
     31              windowtitle="JUnit API"
     32-             stylesheetfile="stylesheet.css"
     33+             classpath="${hamcrestlib}"
     34              >
     35       <excludepackage name="junit.*" />
     36       <excludepackage name="org.junit.internal.*" />
     37       <excludepackage name="org.junit.experimental.theories.internal.*" />
     38       
     39       <sourcepath location="${src}" />
     40-      <sourcepath location="${hamcrestsrc}" />
     41       <link href="http://java.sun.com/javase/6/docs/api/" />
     42     </javadoc>
     43   </target>
  • files/patch-hamcrest-1.2-upgrade.diff

     
    158158+               // TODO Auto-generated constructor stub
    159159+       }
    160160 }
    161 --- src/main/java/org/junit/matchers/JUnitMatchers.java 2009-06-12 05:01:47.000000000 +0200
    162 +++ src/main/java/org/junit/matchers/JUnitMatchers.java 2009-06-12 15:54:29.000000000 +0200
     161--- src/main/java/org/junit/matchers/JUnitMatchers.java.orig    2011-08-22 13:52:10.000000000 -0500
     162+++ src/main/java/org/junit/matchers/JUnitMatchers.java 2011-09-21 10:03:58.000000000 -0500
    163163@@ -1,38 +1,46 @@
    164164 package org.junit.matchers;
    165165 
     
    268268        /**
    269269@@ -76,8 +92,10 @@
    270270         * <pre>
    271          *   assertThat(string, both(containsString("a")).and(containsString("b")));
     271         *   assertThat(string, either(containsString("a")).or(containsString("b")));
    272272         * </pre>
    273273+        * @deprecated Use org.hamcrest.CoreMatchers.either
    274274         */
  • files/patch-src-main-java-org-junit-matchers-package-info.java.diff

     
    1 --- src/main/java/org/junit/matchers/package-info.java.orig     2009-06-12 22:13:05.000000000 +0200
    2 +++ src/main/java/org/junit/matchers/package-info.java  2009-06-12 22:13:18.000000000 +0200
    3 @@ -4,6 +4,6 @@
    4   * statement
    5   *
    6   * @since 4.0
    7 - * @see JUnitMatchers
    8 + * @see org.junit.matchers.JUnitMatchers
    9   */
    10  package org.junit.matchers;
  • Portfile

     
    44PortSystem      1.0
    55
    66name            junit
    7 version         4.6
    8 revision        2
     7version         4.9
    98categories      java devel
    109platforms       darwin
    1110maintainers     nomaintainer
     
    1918    testing frameworks.
    2019
    2120homepage        http://www.junit.org/
    22 master_sites    sourceforge
     21master_sites    http://github.com/KentBeck/junit/downloads
    2322distname        ${name}${version}
    2423use_zip         yes
    2524
    26 checksums       md5     2e59ed558001fd3b10d2146189167ff5 \
    27                 sha1    98c8c625e999f0c7463397a684a5c47a0ea106e3 \
    28                 rmd160  4f87024e91b7252af89ad925db5cda0e17128525
     25checksums       rmd160  e106ace5086955798d214074b534189f557b1ea1 \
     26                sha256  160afefea9d15dbc7301cab276ab2450696e167075254f311b023d3dad2ea3b6
    2927
    3028patchfiles      patch-build.xml.diff \
    31                 patch-src-main-java-org-junit-matchers-package-info.java.diff \
    3229                patch-hamcrest-1.2-upgrade.diff
    3330
    3431post-extract {
     
    6663        file copy ${worksrcpath}/javadoc ${destroot}${docdir}/
    6764    }
    6865}
     66
     67livecheck.type  regex
     68livecheck.url   [lindex ${master_sites} 0]
     69livecheck.regex ${name}(\[0-9.\]+)${extract.suffix}