summaryrefslogtreecommitdiff
path: root/dev-util/findbugs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
commit1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch)
treee48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-util/findbugs
parentd87262dd706fec50cd150aab3e93883b6337466d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/findbugs')
-rw-r--r--dev-util/findbugs/Manifest12
-rw-r--r--dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch48
-rw-r--r--dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch25
-rw-r--r--dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch30
-rw-r--r--dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch25
-rw-r--r--dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch25
-rw-r--r--dev-util/findbugs/files/launchers/fb75
-rw-r--r--dev-util/findbugs/files/launchers/fbwrap3
-rw-r--r--dev-util/findbugs/files/launchers/findbugs83
-rw-r--r--dev-util/findbugs/files/launchers/findbugs289
-rw-r--r--dev-util/findbugs/findbugs-3.0.1.ebuild107
-rw-r--r--dev-util/findbugs/metadata.xml12
12 files changed, 0 insertions, 534 deletions
diff --git a/dev-util/findbugs/Manifest b/dev-util/findbugs/Manifest
deleted file mode 100644
index 785a05e8b51a..000000000000
--- a/dev-util/findbugs/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX 0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch 2267 BLAKE2B e86239e24c9d72e0066056cc4ec5d011a83bfce03b5c65c0d67c0c0e9ce96514253bcbf6825bbdc74ff1712e1461c13de0d6481fe5d5985cb2f12965c1bb9a68 SHA512 66ba7a8f9331b020e7edfae46ca80a1a914bc4ee61b30b2e5f0b18eaf1b60e6dce124e0a3908f588b2e7e240968dcde93125aa32bdf215388b7c3f195a274f83
-AUX 0002-Don-t-bundle-anything-in-the-annotations-jar.patch 785 BLAKE2B 35f72333f22857c541a439c27e96519e66f92a78ac02e5c6c3c4f7a22e086a76120754c8b0e603b8f7cc2cb9cb1fc72c2ffd23bbb35410c6ae2265bc6c92808f SHA512 7810ac73d039bbaf74b6302e73879ac1c13edbe747e400d3d32570f7eeeb89dac5d41c05d2dd5babee4769bb3528bdf826dcb2e244e3a15d8342b9d8f45a6752
-AUX 0003-JDK-1.8-works-fine-for-me.patch 932 BLAKE2B 26813aee8d42c2a35cc3274365d532d2534957599aa20501553243b87c9e779f2ad9bc4deaa369838eb44f2dcb15d8874508bb46d738b985501aff6a1ce65152 SHA512 44dcfc2a45307b71a6106f2c2a8b8343f718816c04614acf9e212cf274f33d0796bab44714c66f75a193d09666269e9e2bdc16b63daad66548faa326780e3fa0
-AUX 0004-Don-t-clean-before-generating-docs.patch 623 BLAKE2B c13fc48a186c82919ca34f35f33c20eb14db041abf6a0fe787999a27f089c70bfac98d2f9e98b8b9cd7c38c179554b42e4c44134157bf7597ab7b94aeae386cf SHA512 4b5eed349a60d78dee3417e20798e8bb6a1054b655438e078d217942379529cb283f36e500b78ab15a893790277111c2ec94ed8c8fe37882aaef126c0af56981
-AUX 0005-Don-t-require-git-to-build.patch 700 BLAKE2B 0c56ef7e6c045e1d1ded9629193a72e0c32d77febd27ec6a3cda961a6bdfd110858989cba1d95b9c416a2a31071d817081f74a513336137d7915d0aee41f7ce3 SHA512 84858e4c64bd3778cc604102df7e8ebb45c5fe4d7f64f065960d78f81c082a11e7037fcf0481d3b7d033bbcec8e24de78bead4d155672092f096029b5239d9bc
-AUX launchers/fb 1190 BLAKE2B a9615d202dba91fa6c34516abf3d9cd765d93d34fc18fb093df9af71361fb5a38145fbc0af18327cb87116c5f874672812ba7f8dcbd428298bd12eb1a41cd5ec SHA512 1e14856fa31f1115509f5efaa0bde86ba4d82fa195a0b2e5218e955f8c51a0b7d5868c2078e6b6fa72d05145395df63b1aa6e923af4008aa555d43c4de6231cf
-AUX launchers/fbwrap 41 BLAKE2B 38bcd17c0c11721d67356967f17e8afa0fdbac5d32a76fe4abe528cd91bb2ef217035123ab3dc0b4e6b0e5f38657e9d7121aa5c1c5a6809db1817ef73e304c61 SHA512 d7b8cb9e8bbb7509b25abfa4f91efca154239f4b107680e4f6125fb236030a3eaae513b89252b7cb6e5893d52bcd3d4706e44733dc0e08a6a99e30865ea30202
-AUX launchers/findbugs 1298 BLAKE2B d91fe99d81ba8f9276ea9ec6d259ea86bc4e54757c0b059de4636a8f1d07bce4663f6e1921dc73f1c4c3ca95e4b2b90800d989e6c2b95fd6977849a2d37b2d1f SHA512 24ba47e65452e36f885a864ae645e58b3a773570bde12371026203d3ca2cd20c2538f4acccf1159b52d2b52d2be913d6ebad794b3f17ab99d4fc3baaa47d1d82
-AUX launchers/findbugs2 1290 BLAKE2B fcb57041f9da8c1baaf4dbbef4d11894c833ea3be0d61ffc400e59b92ec98b13017a0a299c0eca9014c15302437e8b14e924e069698bb90558eb87990ea542c8 SHA512 de0eec2986596e67654ef17771c397c30b064d99d8d78dc89bd61ae309c61233091d82ee56b1965005d2dbfd9afb466b3b98554e602df43ffbf72fec60e764ab
-DIST findbugs-3.0.1-source.zip 9625065 BLAKE2B 26c940ac0eaec16de89ffbbe26d16b0b5c2883a6131a8b3ce93b9a35014a42c221456f977e581d2f4f1b8d9333237c24ac6d5ad8fc2ba6bb018c333b6a09f4eb SHA512 d967769f2356f28b34d92c7451cf3e2ac004e667bfc3b049b5b10b1c19d7be2cfa0db132a77698d042300330f77a2bb5dd8c4baa0d67c37b7e5ae6da9e83a64f
-EBUILD findbugs-3.0.1.ebuild 2955 BLAKE2B f386a210ead373879c31e6ae8a642c7a3bc4a112f5a5997eeec2ca8c33a3887b77a2607184e45b0f63f2b597ba26708a50c98d665aca0fcee7ecb520dd1d3517 SHA512 c47b1f6a097d9a5d0dd74764bbf109d82c9d3069af9cae10ed6910c48e33545ed9421768268650c908aeaa0edc06e5b06afcf61d2af19d80d2b31b5362742b9c
-MISC metadata.xml 1055 BLAKE2B 9a54e2835340933630434b6c15666a104d295ce364f027c3034a5261dc4d372ce905f8f1e4102e12c500616fdf12da2d90321b91d7b7309fb7927ef005039f51 SHA512 82e70de38547ae7e6005e773c0144a131e30737bce6c2768cca4f8264a884cc5166bdd018d1e9474bf5e81421ae61651ee9c2ec285f443fb704c67d1876da039
diff --git a/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch b/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch
deleted file mode 100644
index c92e18741ae1..000000000000
--- a/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From d4ef7a75e6d0e50f6417825d851ad9e5ed757985 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Tue, 10 Mar 2015 23:47:00 +0000
-Subject: [PATCH 1/2] Support bcel 6.0 RC3 instead of a random snapshot
-
----
- .../src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java | 2 +-
- findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java b/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
-index 52468c9..d7cbd0e 100644
---- a/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
-+++ b/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
-@@ -50,7 +50,7 @@ import edu.umd.cs.findbugs.bcel.generic.NULL2Z;
- * @see Frame
- * @see DataflowAnalysis
- */
--public abstract class AbstractFrameModelingVisitor<Value, FrameType extends Frame<Value>> implements VisitorSupportsInvokeDynamic {
-+public abstract class AbstractFrameModelingVisitor<Value, FrameType extends Frame<Value>> extends EmptyVisitor {
- private FrameType frame;
-
- private Location location;
-diff --git a/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java b/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
-index 5d62092..a36abac 100644
---- a/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
-+++ b/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
-@@ -56,7 +56,7 @@ import org.apache.bcel.classfile.StackMap;
- import org.apache.bcel.classfile.StackMapEntry;
- import org.apache.bcel.classfile.Synthetic;
- import org.apache.bcel.classfile.Unknown;
--import org.apache.bcel.classfile.Visitor;
-+import org.apache.bcel.classfile.EmptyVisitor;
-
- /**
- * Fixedup of from org.apache.bcel.classfile.Visitor
-@@ -64,7 +64,7 @@ import org.apache.bcel.classfile.Visitor;
- * @author <A HREF="http://www.cs.umd.edu/~pugh">William Pugh</A>
- * @version 980818
- */
--public abstract class BetterVisitor implements Visitor {
-+public abstract class BetterVisitor extends EmptyVisitor {
-
- /**
- * clone() is overridden to change access control from protected to public.
---
-2.0.4
-
diff --git a/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch b/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch
deleted file mode 100644
index 67938e4e371c..000000000000
--- a/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From c956ffd82e5b88be74dca187dc80afcf6559a78f Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Wed, 11 Mar 2015 21:41:36 +0000
-Subject: [PATCH 2/2] Don't bundle anything in the annotations jar
-
----
- findbugs/build.xml | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/findbugs/build.xml b/findbugs/build.xml
-index 698b91f..3eac5d6 100644
---- a/findbugs/build.xml
-+++ b/findbugs/build.xml
-@@ -298,8 +298,6 @@
- <fileset dir="${src.dir}">
- <include name="**/annotations/*.java"/>
- </fileset>
-- <zipfileset src="${jar.dir}/jcip-annotations.jar" excludes="META-INF/**,**/*.html"/>
-- <zipfileset src="${jar.dir}/jsr305.jar" excludes="META-INF/**,**/*.html"/>
- </jar>
- </target>
-
---
-2.0.4
-
diff --git a/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch b/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch
deleted file mode 100644
index ce4e186f0aca..000000000000
--- a/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From af7e19734c9bbd21d2f1bf8a66b5ca1c131eeacd Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Fri, 13 Mar 2015 00:20:20 +0000
-Subject: [PATCH 3/3] JDK 1.8 works fine for me
-
----
- findbugs/build.xml | 7 -------
- 1 file changed, 7 deletions(-)
-
-diff --git a/findbugs/build.xml b/findbugs/build.xml
-index 3eac5d6..48c8f2b 100644
---- a/findbugs/build.xml
-+++ b/findbugs/build.xml
-@@ -122,13 +122,6 @@
- </javac>
- </target>
- <target name="classes" depends="init">
-- <echo>Requires JDK 7.x (not 8!), using: ${ant.java.version}</echo>
-- <fail message="Requires JDK 7.x (not 8!), using: ${ant.java.version}">
-- <condition>
-- <equals arg1="1.8" arg2="${ant.java.version}"/>
-- </condition>
-- </fail>
--
- <!-- Compile Java source files. -->
- <echo level="info" message="compiling findbugs"/>
- <javac
---
-2.0.4
-
diff --git a/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch b/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch
deleted file mode 100644
index 670f497e507b..000000000000
--- a/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From c73984b12bb3c80a67d993a30c894ee05613d422 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Fri, 13 Mar 2015 13:59:22 +0000
-Subject: [PATCH 4/4] Don't clean before generating docs
-
----
- findbugs/build.xml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/findbugs/build.xml b/findbugs/build.xml
-index 48c8f2b..d0cbc04 100644
---- a/findbugs/build.xml
-+++ b/findbugs/build.xml
-@@ -652,7 +652,7 @@
- </target>
-
-
-- <target name="checkdocs" depends="clean">
-+ <target name="checkdocs">
- <!-- FIXME: check whether docs are up to date -->
- </target>
-
---
-2.0.4
-
diff --git a/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch b/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch
deleted file mode 100644
index acdff2ce96d2..000000000000
--- a/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From cbf9d81dba1ef0a42f79391c87845d7875a13993 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Mon, 18 May 2015 20:41:58 +0100
-Subject: [PATCH 5/5] Don't require git to build
-
----
- findbugs/build.xml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/findbugs/build.xml b/findbugs/build.xml
-index d0cbc04..42c6d09 100644
---- a/findbugs/build.xml
-+++ b/findbugs/build.xml
-@@ -636,7 +636,7 @@
- </target>
-
-
-- <target name="version" depends="classes,-get-git-revision" >
-+ <target name="version" depends="classes" >
- <echo>${gitrnum}</echo>
- <java classpathref="tools.classpath"
- output="${version.props.file}"
---
-2.3.3
-
diff --git a/dev-util/findbugs/files/launchers/fb b/dev-util/findbugs/files/launchers/fb
deleted file mode 100644
index 79d44a41681d..000000000000
--- a/dev-util/findbugs/files/launchers/fb
+++ /dev/null
@@ -1,75 +0,0 @@
-escape_arg() {
- echo "$1" | sed -e "s,\\([\\\"' ]\\),\\\\\\1,g"
-}
-
-# Set defaults
-fb_mainclass="edu.umd.cs.findbugs.workflow.FB"
-user_jvmargs=''
-ea_arg=''
-debug_arg=''
-conservespace_arg=''
-user_props=''
-
-# Handle command line arguments.
-while [ $# -gt 0 ]; do
- case $1 in
- -textui)
- fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
- ;;
-
- -jvmArgs)
- shift
- user_jvmargs="$1"
- ;;
-
- -ea)
- ea_arg='-ea'
- ;;
-
- -maxHeap)
- shift
- fb_maxheap="-Xmx$1m"
- ;;
-
- -debug)
- debug_arg="-Dfindbugs.debug=true"
- ;;
-
- -conserveSpace)
- conservespace_arg="-Dfindbugs.conserveSpace=true"
- ;;
-
- -property)
- shift
- user_props="-D$1 $user_props"
- ;;
-
- -D*=*)
- user_props="$1 $user_props"
- ;;
-
- -version)
- fb_mainclass=edu.umd.cs.findbugs.Version
- fb_appargs="-release"
- while [ $# -gt 0 ]; do
- shift
- done
- ;;
-
- -help)
- fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
- ;;
-
- # All unrecognized arguments will be accumulated and
- # passed to the application.
- *)
- fb_appargs="$fb_appargs `escape_arg "$1"`"
- ;;
- esac
-
- shift
-done
-
-fb_maxheap=${fb_maxheap:-"-Xmx768m"}
-fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
-gjl_pkg_args="$fb_appargs"
diff --git a/dev-util/findbugs/files/launchers/fbwrap b/dev-util/findbugs/files/launchers/fbwrap
deleted file mode 100644
index 7d208611c13c..000000000000
--- a/dev-util/findbugs/files/launchers/fbwrap
+++ /dev/null
@@ -1,3 +0,0 @@
-fb_mainclass="$1"
-unset fb_jvmargs
-shift
diff --git a/dev-util/findbugs/files/launchers/findbugs b/dev-util/findbugs/files/launchers/findbugs
deleted file mode 100644
index e557ce516212..000000000000
--- a/dev-util/findbugs/files/launchers/findbugs
+++ /dev/null
@@ -1,83 +0,0 @@
-escape_arg() {
- echo "$1" | sed -e "s,\\([\\\"' ]\\),\\\\\\1,g"
-}
-
-# Set defaults
-fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
-user_jvmargs=''
-ea_arg=''
-debug_arg=''
-conservespace_arg=''
-user_props=''
-
-# Handle command line arguments.
-while [ $# -gt 0 ]; do
- case $1 in
- -gui)
- # this is the default
- ;;
-
- -gui1)
- user_props="-Dfindbugs.launchUI=1 $user_props"
- ;;
-
- -textui)
- fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
- ;;
-
- -jvmArgs)
- shift
- user_jvmargs="$1"
- ;;
-
- -ea)
- ea_arg='-ea'
- ;;
-
- -maxHeap)
- shift
- fb_maxheap="-Xmx$1m"
- ;;
-
- -debug)
- debug_arg="-Dfindbugs.debug=true"
- ;;
-
- -conserveSpace)
- conservespace_arg="-Dfindbugs.conserveSpace=true"
- ;;
-
- -property)
- shift
- user_props="-D$1 $user_props"
- ;;
-
- -D*=*)
- user_props="$1 $user_props"
- ;;
-
- -version)
- fb_mainclass=edu.umd.cs.findbugs.Version
- fb_appargs="-release"
- while [ $# -gt 0 ]; do
- shift
- done
- ;;
-
- -help)
- fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
- ;;
-
- # All unrecognized arguments will be accumulated and
- # passed to the application.
- *)
- fb_appargs="$fb_appargs `escape_arg "$1"`"
- ;;
- esac
-
- shift
-done
-
-fb_maxheap=${fb_maxheap:-"-Xmx768m"}
-fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
-gjl_pkg_args="$fb_appargs"
diff --git a/dev-util/findbugs/files/launchers/findbugs2 b/dev-util/findbugs/files/launchers/findbugs2
deleted file mode 100644
index d87ea82c0907..000000000000
--- a/dev-util/findbugs/files/launchers/findbugs2
+++ /dev/null
@@ -1,89 +0,0 @@
-# Default UI is GUI2
-fb_launchui="2"
-
-#
-# Stuff we're going to pass to the JVM as JVM arguments.
-#
-jvm_debug=""
-jvm_maxheap="-Xmx768m"
-jvm_ea=""
-jvm_conservespace=""
-jvm_user_props=""
-
-#
-# Process command line args until we hit one we don't recognize.
-#
-finishedArgs=false
-while [ $# -gt 0 ] && [ "$finishedArgs" = "false" ]; do
-
- arg=$1
-
- case $arg in
- -textui)
- shift
- fb_launchui="0"
- ;;
-
- -gui)
- shift
- fb_launchui="2"
- ;;
-
- -gui1)
- shift
- fb_launchui="1"
- ;;
-
- -maxHeap)
- shift
- jvm_maxheap="-Xmx$1m"
- shift
- ;;
-
- -ea)
- shift
- jvm_ea="-ea"
- ;;
-
- -debug)
- shift
- jvm_debug="-Dfindbugs.debug=true"
- ;;
-
- -conserveSpace)
- shift
- jvm_conservespace="-Dfindbugs.conserveSpace=true"
- ;;
-
- -property)
- shift
- jvm_user_props="-D$1 $jvm_user_props"
- shift
- ;;
-
- -D*=*)
- jvm_user_props="$1 $user_props"
- shift
- ;;
-
- -version)
- shift
- fb_launchui="version"
- ;;
-
- -help)
- shift
- fb_launchui="help"
- ;;
-
- # All arguments starting from the first unrecognized arguments
- # are passed on to the Java app.
- *)
- finishedArgs=true
- ;;
- esac
-
-done
-
-fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
-fb_jvmargs="$jvm_debug $jvm_maxheap $jvm_ea $jvm_conservespace $jvm_user_props -Dfindbugs.launchUI=$fb_launchui"
diff --git a/dev-util/findbugs/findbugs-3.0.1.ebuild b/dev-util/findbugs/findbugs-3.0.1.ebuild
deleted file mode 100644
index 2498e2e3a9e4..000000000000
--- a/dev-util/findbugs/findbugs-3.0.1.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-JAVA_PKG_IUSE="doc source"
-
-inherit eutils java-pkg-2 java-ant-2
-
-DESCRIPTION="Find Bugs in Java Programs"
-HOMEPAGE="http://findbugs.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-CDEPEND="dev-java/ant-core:0
- dev-java/apple-java-extensions-bin:0
- >=dev-java/asm-5:4
- >=dev-java/bcel-6:0
- dev-java/commons-lang:2.1
- dev-java/dom4j:1
- dev-java/hamcrest-core:1.3
- dev-java/jaxen:1.1
- dev-java/jcip-annotations:0
- dev-java/jdepend:0
- >=dev-java/jformatstring-2.0.3:0
- dev-java/jsr305:0
- dev-java/junit:4"
-
-RDEPEND=">=virtual/jre-1.7
- ${CDEPEND}"
-
-DEPEND=">=virtual/jdk-1.7
- app-arch/unzip
- doc? (
- app-text/docbook-xsl-stylesheets
- dev-java/saxon:6.5
- )
- test? ( dev-java/ant-junit:0 )
- ${CDEPEND}"
-
-JAVA_ANT_REWRITE_CLASSPATH="true"
-EANT_BUILD_TARGET="build"
-EANT_DOC_TARGET="apiJavadoc docs"
-EANT_TEST_TARGET="runjunit"
-EANT_GENTOO_CLASSPATH="ant-core,apple-java-extensions-bin,asm-4,bcel,commons-lang-2.1,dom4j-1,hamcrest-core-1.3,jaxen-1.1,jcip-annotations,jdepend,jformatstring,jsr305,junit-4"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
- use doc && EANT_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --build-only --with-dependencies saxon-6.5)"
- EANT_EXTRA_ARGS="-Dgitrnum=gentoo -Dxsl.stylesheet.home=${EROOT}usr/share/sgml/docbook/xsl-stylesheets"
-}
-
-java_prepare() {
- epatch \
- "${FILESDIR}/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch" \
- "${FILESDIR}/0002-Don-t-bundle-anything-in-the-annotations-jar.patch" \
- "${FILESDIR}/0003-JDK-1.8-works-fine-for-me.patch" \
- "${FILESDIR}/0004-Don-t-clean-before-generating-docs.patch" \
- "${FILESDIR}/0005-Don-t-require-git-to-build.patch"
-
- # Remove bundled jars.
- find -name "*.jar" -delete || die
-}
-
-src_install() {
- java-pkg_dojar lib/{${PN},${PN}-ant,annotations}.jar
-
- insinto "/usr/share/${PN}/plugin"
- doins plugin/README
-
- use source && java-pkg_dosrc src/*/edu
-
- if use doc; then
- insinto "/usr/share/doc/${PF}/html/web"
- doins -r build/doc/*
- java-pkg_dojavadoc apiJavaDoc
- fi
-
- local SCRIPT CLASS
- local ARGS="-Dfindbugs.home=${EROOT}usr/share/findbugs"
-
- ls src/scripts/standard | grep -E -v '^(findbugs2?|fb|fbwrap)$' | while read SCRIPT; do
- CLASS=$(grep '^fb_mainclass=' "src/scripts/standard/${SCRIPT}" | sed 's/^.*=//')
- java-pkg_dolauncher "findbugs-${SCRIPT#findbugs-}" \
- --java_args "${ARGS}" --main "${CLASS}"
- done
-
- for SCRIPT in findbugs{,2} fb{,wrap}; do
- java-pkg_dolauncher "${SCRIPT}" \
- --java_args "\$fb_jvmargs ${ARGS}" --main '$fb_mainclass' \
- -pre "${FILESDIR}/launchers/${SCRIPT}"
- done
-}
-
-src_test() {
- java-pkg-2_src_test
-}
-
-pkg_postinst() {
- elog "findbugs ships with many launcher scripts. Most of these have been"
- elog "installed with a findbugs- prefix to avoid conflicts and confusion"
- elog "with other executables in the PATH."
-}
diff --git a/dev-util/findbugs/metadata.xml b/dev-util/findbugs/metadata.xml
deleted file mode 100644
index 7f5d054caa9f..000000000000
--- a/dev-util/findbugs/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
- <longdescription>FindBugs uses static analysis to inspect Java bytecode for occurrences of bug patterns. Static analysis means that FindBugs can find bugs by simply inspecting a program's code: executing the program is not necessary. This makes FindBugs very easy to use: in general, you should be able to use it to look for bugs in your code within a few minutes of downloading it. FindBugs works by analyzing Java bytecode (compiled class files), so you don't even need the program's source code to use it. Because its analysis is sometimes imprecise, FindBugs can report false warnings, which are warnings that do not indicate real errors. In practice, the rate of false warnings reported by FindBugs is less than 50%.</longdescription>
- <upstream>
- <remote-id type="sourceforge">findbugs</remote-id>
- </upstream>
-</pkgmetadata>