ports/148131: Update port: java/castor to version 1.3.1

Chris Rees utisoft at gmail.com
Fri Jun 25 08:20:02 UTC 2010


>Number:         148131
>Category:       ports
>Synopsis:       Update port: java/castor to version 1.3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 25 08:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 8.0-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD amnesiac.bayofrum.net 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Wed May 26 05:45:12 UTC 2010 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	I've updated castor to v1.3.1, but I've also changed the build process to simply fetch, detar and install. The Castor project has switched to using Maven as a build tool, which usually involves some manual steps, making the porting non-trivial. With reference to the Handbook on non-trivial Java ports http://www.freebsd.org/doc/en/books/porters-handbook/using-java.html I've cut out the building.

	The packing list has changed since the project has also changed to a more modular fashion, and apparently all the jars are needed for the full package.

>How-To-Repeat:
	
>Fix:

--- castor.diff begins here ---
diff -ruN castor.orig/Makefile castor/Makefile
--- castor.orig/Makefile	2010-06-24 18:22:45.000000000 +0100
+++ castor/Makefile	2010-06-25 09:03:58.000000000 +0100
@@ -1,4 +1,4 @@
-# Ports collection makefile for:    Castor
+# Ports collection Makefile for:    Castor
 # Date created:         2005/05/12
 # Whom:                 Adam VanderHook <acidos at bandwidth-junkies.net>
 #
@@ -6,33 +6,43 @@
 #
 
 PORTNAME=	castor
-PORTVERSION=	1.1
-PORTREVISION=	2
+PORTVERSION=	1.3.1
 CATEGORIES=	java devel
 MASTER_SITES=	http://dist.codehaus.org/castor/${PORTVERSION}/
-DISTNAME=	${PORTNAME}-${PORTVERSION}-src
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	acidos at bandwidth-junkies.net
 COMMENT=	Data binding for XML (JAXB) and SQL database (JDO)
+LICENSE=	ASL
 
 USE_JAVA=	yes
 JAVA_VERSION=	1.4+
-USE_ANT=	yes
-USE_JIKES=	no
+NO_BUILD=	yes
 
-ALL_TARGET=	jar
-
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-BUILD_WRKSRC=	${WRKSRC}/src
-
-JAVALIBNAME=	${PORTNAME}-${PORTVERSION}
-JARFILE=	${PORTNAME}.jar
-PLIST_FILES=	%%JAVAJARDIR%%/${JARFILE}
+JARSUFXS=	-anttasks.jar \
+			-codegen.jar \
+			-core.jar \
+			-ddlgen.jar \
+			-jdo.jar \
+			-xml-schema.jar \
+			-xml.jar \
+			.jar
+
+PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}-anttasks.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-codegen.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-core.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-ddlgen.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-jdo.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-xml-schema.jar \
+				%%JAVAJARDIR%%/${PORTNAME}-xml.jar \
+				%%JAVAJARDIR%%/${PORTNAME}.jar
 
 do-install:
-	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
-	@${INSTALL_DATA} ${WRKSRC}/dist/${JAVALIBNAME}.jar ${JAVAJARDIR}/${JARFILE}
+.for f in ${JARSUFXS}
+	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}${f}..."
+	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}${f} \
+		${JAVAJARDIR}/${PORTNAME}${f}
 	@${ECHO_MSG} " [ DONE ]"
+.endfor
 
 .include <bsd.port.mk>
diff -ruN castor.orig/distinfo castor/distinfo
--- castor.orig/distinfo	2010-06-24 18:22:45.000000000 +0100
+++ castor/distinfo	2010-06-25 09:05:19.000000000 +0100
@@ -1,3 +1,3 @@
-MD5 (castor-1.1-src.tgz) = 71fdf22433aeefa9ca9956446ae101be
-SHA256 (castor-1.1-src.tgz) = ee9695b3fdc3c2a2471caa40ed962e3ddb170529cc1196d9a34fd8602681cddb
-SIZE (castor-1.1-src.tgz) = 8813761
+MD5 (castor-1.3.1.tgz) = 67febd219e11c8aa6233bc1633b36f16
+SHA256 (castor-1.3.1.tgz) = 639ff895e0294f2111c57d2f2241d06a5fbcc774dd714fc933d36e651922f1b2
+SIZE (castor-1.3.1.tgz) = 4257528
--- castor.diff ends here ---



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list