Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2015 19:03:31 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386168 - in head/java/berkeley-db: . files
Message-ID:  <201505121903.t4CJ3VEB034033@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Tue May 12 19:03:30 2015
New Revision: 386168
URL: https://svnweb.freebsd.org/changeset/ports/386168

Log:
  Fix the build in the case of newer JUnit, that, in its turn, uses hamcrest now.
  Upgrade from 6.1.5 to 6.2.31. Based on:
  
  PR:		156251
  Submitted by:	pi
  
  Now that the test-target fully works, add "regression-test" alias to it so it
  can be used for that purpose.

Modified:
  head/java/berkeley-db/Makefile
  head/java/berkeley-db/distinfo
  head/java/berkeley-db/files/patch-junit
  head/java/berkeley-db/pkg-descr

Modified: head/java/berkeley-db/Makefile
==============================================================================
--- head/java/berkeley-db/Makefile	Tue May 12 18:25:21 2015	(r386167)
+++ head/java/berkeley-db/Makefile	Tue May 12 19:03:30 2015	(r386168)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	je
-PORTVERSION=	6.1.5
+PORTVERSION=	6.2.31
 CATEGORIES=	java databases
 MASTER_SITES=	http://download.oracle.com/berkeley-db/	\
 		http://download-east.oracle.com/berkeley-db/	\
@@ -20,15 +20,13 @@ JAVA_VERSION=	1.7+
 USE_ANT=	yes
 MAKE_ENV+=	JAVALIBDIR="${JAVALIBDIR}"
 MAKE_ARGS+=	-cp ${JAVALIBDIR}/junit.jar
-USES=		dos2unix
-DOS2UNIX_FILES=	build.xml
 
 PLIST_FILES=	%%JAVAJARDIR%%/je.jar
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
-test:
+regression-test check test:
 	#
 	# Running the vendor-provided self-tests. This may take a while
 	#

Modified: head/java/berkeley-db/distinfo
==============================================================================
--- head/java/berkeley-db/distinfo	Tue May 12 18:25:21 2015	(r386167)
+++ head/java/berkeley-db/distinfo	Tue May 12 19:03:30 2015	(r386168)
@@ -1,2 +1,2 @@
-SHA256 (je-6.1.5.tar.gz) = 778122759dc79080e599410c3540ce2e64e6bcaf26c9b4944639fdfe66d2cc8a
-SIZE (je-6.1.5.tar.gz) = 11171411
+SHA256 (je-6.2.31.tar.gz) = d8854f6385e8369232c9805ef94232c8e9c4800ec0c60ff79a6e60d00036b969
+SIZE (je-6.2.31.tar.gz) = 11198631

Modified: head/java/berkeley-db/files/patch-junit
==============================================================================
--- head/java/berkeley-db/files/patch-junit	Tue May 12 18:25:21 2015	(r386167)
+++ head/java/berkeley-db/files/patch-junit	Tue May 12 19:03:30 2015	(r386168)
@@ -1,31 +1,39 @@
---- build.xml	Wed Sep 20 18:10:10 2006
-+++ build.xml	2014-09-29 14:22:48.000000000 -0400
-@@ -135,6 +135,8 @@
+--- build.xml	2014-12-17 02:30:51 UTC
++++ build.xml	2015-05-12 12:14:56 -0400
+@@ -132,6 +132,9 @@
      </path>
  
 +    <property environment="env"/>
      <path id="unittest.classpath">
        <path refid="class.path"/>
 +      <pathelement location="${env.JAVALIBDIR}/junit.jar"/>
++      <pathelement location="${env.JAVALIBDIR}/hamcrest.jar"/>
        <pathelement location="${unittest.destdir}"/>
-     </path>
-@@ -469,4 +471,5 @@
-           <property name="destdir" value="${unittest.testevolvedir}"/>
+       <pathelement path="${junit.jarfile}"/>
+@@ -872,5 +875,5 @@
+     </target>
+ 
+-    <target name="compile-unittest" depends="compile-src, get-junit-jar">
++    <target name="compile-unittest" depends="compile-src">
+       <ant antfile="ant/compile.xml" dir="." inheritall="false">
+         <property name="srcdir" value="${unittest.srcdir}"/>
+@@ -917,4 +920,5 @@
+           <property name="destdir" value="${unittest.testserialdir}"/>
            <reference refid="class.path" torefid="compile.classpath"/>
 +          <reference refid="unittest.classpath" torefid="compile.classpath"/>
        </ant>
-     </target>
-@@ -1224,5 +1227,4 @@
+ 
+@@ -2127,5 +2131,4 @@
        <mkdir dir="${installdir}"/>
        <mkdir dir="${installdir}/docs"/>
 -      <mkdir dir="${installdir}/bin"/>
        <mkdir dir="${installdir}/lib"/>
        <copy todir="${installdir}/docs">
-@@ -1233,7 +1235,4 @@
-       <copy todir="${installdir}/lib">
+@@ -2137,7 +2140,4 @@
  	 <fileset dir="lib"/>
--      </copy>
+       </copy>
 -      <copy todir="${installdir}/bin">
 -	 <fileset dir="bin"/>
-       </copy>
+-      </copy>
      </target>
+ 

Modified: head/java/berkeley-db/pkg-descr
==============================================================================
--- head/java/berkeley-db/pkg-descr	Tue May 12 18:25:21 2015	(r386167)
+++ head/java/berkeley-db/pkg-descr	Tue May 12 19:03:30 2015	(r386168)
@@ -1,6 +1,5 @@
 This is a pure-Java implementation of Berkeley DB by SleepyCat (now
-Oracle). Java-1.5 is required for building, although the result should
-be usable with 1.4 too. From the
+Oracle). Java-1.7 is required for building. From the
 
 WWW: http://www.oracle.com/technetwork/database/berkeleydb/
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505121903.t4CJ3VEB034033>