[62059] trunk/dports/java/jakarta-bcel

nox at macports.org nox at macports.org
Mon Dec 28 08:35:36 PST 2009


Revision: 62059
          http://trac.macports.org/changeset/62059
Author:   nox at macports.org
Date:     2009-12-28 08:35:35 -0800 (Mon, 28 Dec 2009)
Log Message:
-----------
Update jakarta-bcel to 5.2

Modified Paths:
--------------
    trunk/dports/java/jakarta-bcel/Portfile

Removed Paths:
-------------
    trunk/dports/java/jakarta-bcel/files/patch-Pass2Verifier.java.diff
    trunk/dports/java/jakarta-bcel/files/patch-StringRepresentation.java.diff

Modified: trunk/dports/java/jakarta-bcel/Portfile
===================================================================
--- trunk/dports/java/jakarta-bcel/Portfile	2009-12-28 16:35:23 UTC (rev 62058)
+++ trunk/dports/java/jakarta-bcel/Portfile	2009-12-28 16:35:35 UTC (rev 62059)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name				jakarta-bcel
-version				5.1
-revision			1
+version				5.2
 
 categories			java
 maintainers			jberry openmaintainer
@@ -20,8 +19,11 @@
 homepage			http://jakarta.apache.org/bcel/
 
 master_sites		apache:jakarta/bcel/source/
-checksums			md5 31ebbd7738325c775bd3ad5ce90dc263
 
+checksums           md5     905b7e718e30e7ca726530ecf106e532 \
+                    sha1    3b3d451664855b0c9aae15dd05b69bf1063d8a1d \
+                    rmd160  824286886500f837c869ea6344e8362edbe10636
+
 distname			bcel-${version}-src
 depends_build		bin:ant:apache-ant
 depends_lib			bin:java:kaffe \
@@ -29,33 +31,21 @@
 
 worksrcdir			bcel-${version}
 
-patchfiles			patch-Pass2Verifier.java.diff \
-					patch-StringRepresentation.java.diff
-
-post-extract {
-	# Cleanup becl's sloppy distribution
-	system "cd ${workpath} && unzip bcel-${version}.zip && unzip -o ${distname}.zip"
-	file delete ${worksrcpath}/bcel-${version}.jar
-	file mkdir ${worksrcpath}/examples
-
-	# There is no manifest in the source distribution
-	reinplace /manifest/d ${worksrcpath}/build.xml
-}
-
 use_configure		no
 
 build.cmd			ant
-build.target		jar
+build.target		jar javadoc
 build.args			-Dname=${name} \
+                    -Dnoget=true \
 					-Dclass.path=${prefix}/share/java/jakarta-regexp.jar
 
 destroot	{
-	xinstall -m 755 -d ${destroot}${prefix}/share/java \
+	xinstall -d ${destroot}${prefix}/share/java \
 		${destroot}${prefix}/share/doc
 	xinstall -m 644 \
-		${worksrcpath}/bin/jakarta-bcel.jar \
-		${destroot}${prefix}/share/java/
-	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+		${worksrcpath}/target/bcel-5.2.jar \
+		${destroot}${prefix}/share/java/jakarta-bcel.jar
+	file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
 }
 
 livecheck.type      regex

Deleted: trunk/dports/java/jakarta-bcel/files/patch-Pass2Verifier.java.diff
===================================================================
--- trunk/dports/java/jakarta-bcel/files/patch-Pass2Verifier.java.diff	2009-12-28 16:35:23 UTC (rev 62058)
+++ trunk/dports/java/jakarta-bcel/files/patch-Pass2Verifier.java.diff	2009-12-28 16:35:35 UTC (rev 62059)
@@ -1,38 +0,0 @@
---- ./src/java/org/apache/bcel/verifier/statics/Pass2Verifier.java	2003-04-25 10:06:16.000000000 -0700
-+++ ./src-fix/java/org/apache/bcel/verifier/statics/Pass2Verifier.java	2005-11-17 23:58:06.000000000 -0800
-@@ -345,7 +345,7 @@
- 
- 			for (int i=0; i<atts.length; i++){
- 				if ((! (atts[i] instanceof SourceFile)) &&
--				    (! (atts[i] instanceof Deprecated))     &&
-+				    (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated))     &&
- 				    (! (atts[i] instanceof InnerClasses)) &&
- 				    (! (atts[i] instanceof Synthetic))){
- 					addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of the ClassFile structure '"+tostring(obj)+"' is unknown and will therefore be ignored.");
-@@ -519,7 +519,7 @@
- 			for (int i=0; i<atts.length; i++){
- 				if ((! (atts[i] instanceof ConstantValue)) &&
- 				    (! (atts[i] instanceof Synthetic))     &&
--				    (! (atts[i] instanceof Deprecated))){
-+				    (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated))){
- 					addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of Field '"+tostring(obj)+"' is unknown and will therefore be ignored.");
- 				}
- 				if  (! (atts[i] instanceof ConstantValue)){
-@@ -660,7 +660,7 @@
- 				if ((! (atts[i] instanceof Code)) &&
- 				    (! (atts[i] instanceof ExceptionTable))     &&
- 				    (! (atts[i] instanceof Synthetic)) &&
--				    (! (atts[i] instanceof Deprecated))){
-+				    (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated))){
- 					addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of Method '"+tostring(obj)+"' is unknown and will therefore be ignored.");
- 				}
- 				if ((! (atts[i] instanceof Code)) &&
-@@ -702,7 +702,7 @@
- 				addMessage("SourceFile attribute '"+tostring(obj)+"' has a funny name: remember not to confuse certain parsers working on javap's output. Also, this name ('"+sourcefilename+"') is considered an unqualified (simple) file name only.");
- 			}
- 		}
--		public void visitDeprecated(Deprecated obj){//vmspec2 4.7.10
-+		public void visitDeprecated(org.apache.bcel.classfile.Deprecated obj){//vmspec2 4.7.10
- 			checkIndex(obj, obj.getNameIndex(), CONST_Utf8);
- 
- 			String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes();

Deleted: trunk/dports/java/jakarta-bcel/files/patch-StringRepresentation.java.diff
===================================================================
--- trunk/dports/java/jakarta-bcel/files/patch-StringRepresentation.java.diff	2009-12-28 16:35:23 UTC (rev 62058)
+++ trunk/dports/java/jakarta-bcel/files/patch-StringRepresentation.java.diff	2009-12-28 16:35:35 UTC (rev 62059)
@@ -1,11 +0,0 @@
---- ./src/java/org/apache/bcel/verifier/statics/StringRepresentation.java	2003-04-25 10:06:16.000000000 -0700
-+++ ./src-fix/java/org/apache/bcel/verifier/statics/StringRepresentation.java	2005-11-17 23:58:06.000000000 -0800
-@@ -172,7 +172,7 @@
- 	public void visitConstantValue(ConstantValue obj){
- 		tostring = toString(obj);
- 	}
--	public void visitDeprecated(Deprecated obj){
-+	public void visitDeprecated(org.apache.bcel.classfile.Deprecated obj){
- 		tostring = toString(obj);
- 	}
- 	public void visitExceptionTable(ExceptionTable obj){
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091228/3bbc00ab/attachment.html>


More information about the macports-changes mailing list