[Midnightbsd-cvs] mports: java/berkeley-db: update to 3.2.76

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Jun 12 22:16:42 EDT 2008


Log Message:
-----------
update to 3.2.76

Modified Files:
--------------
    mports/java/berkeley-db:
        Makefile (r1.1 -> r1.2)
        distinfo (r1.1 -> r1.2)
        pkg-descr (r1.1 -> r1.2)
    mports/java/berkeley-db/files:
        patch-junit (r1.1 -> r1.2)

-------------- next part --------------
Index: pkg-descr
===================================================================
RCS file: /home/cvs/mports/java/berkeley-db/pkg-descr,v
retrieving revision 1.1
retrieving revision 1.2
diff -L java/berkeley-db/pkg-descr -L java/berkeley-db/pkg-descr -u -r1.1 -r1.2
--- java/berkeley-db/pkg-descr
+++ java/berkeley-db/pkg-descr
@@ -1,6 +1,8 @@
-This is a pure-Java implementation of Berkeley DB. From the
+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
 
-WWW: http://www.sleepycat.com/products/je.shtml
+WWW: http://www.oracle.com/database/berkeley-db/index.html
 
 "Berkeley DB JE was designed from the ground up in Java. It takes full
  advantage of the Java environment. The Berkeley DB JE API provides a
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/java/berkeley-db/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -L java/berkeley-db/Makefile -L java/berkeley-db/Makefile -u -r1.1 -r1.2
--- java/berkeley-db/Makefile
+++ java/berkeley-db/Makefile
@@ -2,33 +2,89 @@
 # Date created:		Feb 2, 2005
 # Whom:			Mikhail Teterin
 #
-# $FreeBSD: ports/java/berkeley-db/Makefile,v 1.2 2005/03/25 00:59:41 mi Exp $
+# $MidnightBSD$
+# $FreeBSD: ports/java/berkeley-db/Makefile,v 1.15 2008/06/06 13:38:26 edwin Exp $
 #
 
 PORTNAME=	je
-PORTVERSION=	1.7.1
+PORTVERSION=	3.2.76
+PORTREVISION=	0
 CATEGORIES=	java databases
-MASTER_SITES=	http://downloads.sleepycat.com/ \
-		ftp://ftp.sleepycat.com/releases/
+MASTER_SITES=	http://download.oracle.com/berkeley-db/	\
+		http://download-east.oracle.com/berkeley-db/	\
+		http://download-west.oracle.com/berkeley-db/
 
-MAINTAINER=	mi at aldan.algebra.com
+MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	Berkeley DB Java Edition
+LICENSE=	other
+
+OPTIONS=	TEST "Run the self-tests after building automatically" off
 
 BUILD_DEPENDS=	${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
 
-EXTRACT_AFTER_ARGS=       | ${TAR} -xf - --exclude '*.jar' --exclude ${DISTNAME}/docs/
 USE_JAVA=	yes
+JAVA_VERSION=	1.5+
 USE_ANT=	yes
-MAKE_ARGS+=	-verbose
 MAKE_ENV+=	JAVALIBDIR="${JAVALIBDIR}"
+MAKE_ARGS+=	-cp ${JAVALIBDIR}/junit.jar
+USE_DOS2UNIX=	build.xml
+
+PLIST_FILES=	%%JAVAJARDIR%%/je.jar
+
+.if !defined(NOPORTDOCS)
+PORTDOCS=	*
+.endif
+
+test:
+	#
+	# Running the vendor-provided self-tests. This may take a while
+	#
+	if ! (cd ${BUILD_WRKSRC} ; ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET}) ; \
+	then	\
+		${ECHO_MSG} Please, review test failures and consider \
+			reporting them via \
+			http://forums.oracle.com/forums/forum.jspa?forumID=273 ; \
+		${FALSE} ; \
+	fi
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_TEST)
+post-build:	test
+	#
+	# Please, review the reported failures (if any) and consider
+	# reporting them to the developers via:
+	# 	http://forums.oracle.com/forums/forum.jspa?forumID=273
+	# You can re-run the tests without rebuilding the port by
+	# simply doing `make test'
+	#
+.else
+post-build:
+	#
+	# Doing `make test' now might be useful (if time-consuming).
+	# Please, review the reported failures (if any) and consider
+	# reporting them via
+	# 	http://forums.oracle.com/forums/forum.jspa?forumID=273
+	#
+.endif
+
+
+post-patch:
+	@${REINPLACE_CMD} "s,/usr/local,${PREFIX}," ${WRKSRC}/build.xml
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR}
+	@${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR}
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${TAR} -C ${DOCSDIR} -zxpf ${_DISTDIR}/${_DISTFILES} ${DISTNAME}/docs
-	${MV} ${DOCSDIR}/${DISTNAME}/docs/* ${DOCSDIR}
-	${RM} -rf ${DOCSDIR}/${DISTNAME}
+	@${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
+	@${MKDIR} ${EXAMPLESDIR}
+	@${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
+
+post-install:
+	@${FIND} ${EXAMPLESDIR} ! -type d | \
+		${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
+	@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
+		${SED} -e "s,^${PREFIX}/, at dirrm ," >> ${TMPPLIST}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/java/berkeley-db/distinfo,v
retrieving revision 1.1
retrieving revision 1.2
diff -L java/berkeley-db/distinfo -L java/berkeley-db/distinfo -u -r1.1 -r1.2
--- java/berkeley-db/distinfo
+++ java/berkeley-db/distinfo
@@ -1,3 +1,3 @@
-MD5 (je-1.7.1.tar.gz) = ef824adfa0ad71fb8cdd5bbb1d597b16
-SHA256 (je-1.7.1.tar.gz) = 1877a8291ed68a4426d94bd6768b16f28b3ce2d10f9222c268f6227fb6369c52
-SIZE (je-1.7.1.tar.gz) = 2657577
+MD5 (je-3.2.76.tar.gz) = 9bd00be8587c8b49c92b87bb23a2dff1
+SHA256 (je-3.2.76.tar.gz) = 017744ec57580d709c7f8dca985b71f81f5e41615d014ad187368a0a14627b02
+SIZE (je-3.2.76.tar.gz) = 4873715
Index: patch-junit
===================================================================
RCS file: /home/cvs/mports/java/berkeley-db/files/patch-junit,v
retrieving revision 1.1
retrieving revision 1.2
diff -L java/berkeley-db/files/patch-junit -L java/berkeley-db/files/patch-junit -u -r1.1 -r1.2
--- java/berkeley-db/files/patch-junit
+++ java/berkeley-db/files/patch-junit
@@ -1,11 +1,32 @@
---- build.xml	Mon Nov  8 21:13:38 2004
-+++ build.xml	Fri Feb  4 18:27:53 2005
-@@ -65,6 +65,8 @@
+--- build.xml	Wed Sep 20 18:10:10 2006
++++ build.xml	Fri Oct  6 20:12:12 2006
+@@ -80,7 +80,9 @@
      </path>
  
 +    <property environment="env"/>
      <path id="unittest.classpath">
-       <path refid="class.path"/>
+       <pathelement location="${destdir}"/>
+       <pathelement location="."/>
 +      <pathelement location="${env.JAVALIBDIR}/junit.jar"/>
        <pathelement location="${unittest.destdir}"/>
      </path>
+@@ -469,4 +471,5 @@
+           <property name="destdir" value="${unittest.testevolvedir}"/>
+           <reference refid="class.path" torefid="compile.classpath"/>
++          <reference refid="unittest.classpath" torefid="compile.classpath"/>
+       </ant>
+     </target>
+@@ -1224,5 +1227,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">
+ 	 <fileset dir="lib"/>
+-      </copy>
+-      <copy todir="${installdir}/bin">
+-	 <fileset dir="bin"/>
+       </copy>
+     </target>


More information about the Midnightbsd-cvs mailing list