commit:     b2c1dd2244ca939b055e233845a0ef3c5128f16e
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 10:15:17 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 10:21:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2c1dd22

dev-java/colt: treeclean

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 dev-java/colt/Manifest                             |   1 -
 dev-java/colt/colt-1.2.0-r3.ebuild                 |  45 -----
 .../colt-1.2.0-benchmark-no-deprecation.patch      |  31 ---
 ...colt-1.2.0-remove-concurrent-util-imports.patch | 210 ---------------------
 dev-java/colt/metadata.xml                         |   8 -
 profiles/package.mask                              |   1 -
 6 files changed, 296 deletions(-)

diff --git a/dev-java/colt/Manifest b/dev-java/colt/Manifest
deleted file mode 100644
index 90c27a167a80..000000000000
--- a/dev-java/colt/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST colt-1.2.0.tar.gz 2545695 BLAKE2B 
be5a1e2ca50650a3dfe003855801350f4b01b931b11b59f41e635c4daeb011b7a761a7db8532168157bfbfac5a4473a39e0b49698d9ccd32e0099149dd7d4adb
 SHA512 
a5e88e0cf671faeb336241d120daeb1ad90f1e2061827d06c0c2dc507cd3ae2ab45f2b80451aaedca0f5a8b3de66c13533178e3b6352ed8b2df886d25a924ce0

diff --git a/dev-java/colt/colt-1.2.0-r3.ebuild 
b/dev-java/colt/colt-1.2.0-r3.ebuild
deleted file mode 100644
index 24cb77f19188..000000000000
--- a/dev-java/colt/colt-1.2.0-r3.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-JAVA_PKG_IUSE="source doc"
-
-inherit java-pkg-2 java-ant-2 epatch
-
-DESCRIPTION="Java Libraries for High Performance Scientific and Technical 
Computing"
-SRC_URI="http://dsd.lbl.gov/~hoschek/colt-download/releases/${P}.tar.gz";
-HOMEPAGE="http://www-itg.lbl.gov/~hoschek/colt/";
-
-LICENSE="colt"
-IUSE=""
-SLOT="0"
-KEYWORDS="amd64 ~ppc64 x86"
-
-DEPEND=">=virtual/jdk-1.7"
-RDEPEND=">=virtual/jre-1.7"
-
-S="${WORKDIR}/${PN}"
-
-EANT_BUILD_TARGET="javac jar"
-JAVA_ANT_ENCODING="ISO-8859-1"
-
-# [0]: I don't know but it must be useful.
-# [1]: Monkey patch manually some classes to get rid of the
-# oswego.edu.concurrent.util imports.
-PATCHES=(
-       "${FILESDIR}/${P}-benchmark-no-deprecation.patch"
-       "${FILESDIR}/${P}-remove-concurrent-util-imports.patch"
-)
-
-java_prepare() {
-       epatch "${PATCHES[@]}"
-       java-pkg_clean
-}
-
-src_install() {
-       java-pkg_dojar "lib/${PN}.jar"
-
-       dohtml README.html
-       use doc && java-pkg_dojavadoc doc/api
-       use source && java-pkg_dosrc src/*
-}

diff --git a/dev-java/colt/files/colt-1.2.0-benchmark-no-deprecation.patch 
b/dev-java/colt/files/colt-1.2.0-benchmark-no-deprecation.patch
deleted file mode 100644
index 2617dc49ad57..000000000000
--- a/dev-java/colt/files/colt-1.2.0-benchmark-no-deprecation.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- src/cern/colt/matrix/impl/BenchmarkMatrix2D.java   2005-12-13 
00:57:28.000000000 -0600
-+++ src/cern/colt/matrix/impl/BenchmarkMatrix2D.java   2005-12-13 
01:20:09.000000000 -0600
-@@ -331,6 +331,8 @@
-       cern.colt.Timer timer1 = new cern.colt.Timer();
-       cern.colt.Timer timer2 = new cern.colt.Timer();
- 
-+   cern.jet.math.Functions F = cern.jet.math.Functions.functions;
-+
-       long size = (((long)rows)*columns)*runs;
- 
-       DoubleMatrix2D  matrix = null;
-@@ -344,7 +346,8 @@
-       //if (kind.equals("sparse")) 
((SparseDoubleMatrix2D)matrix).elements.hashCollisions = 0;
-       for (int i=0; i<runs; i++) {
-               timer1.start();
--              cern.colt.matrix.doublealgo.Transform.mult(matrix, 3);
-+              //cern.colt.matrix.doublealgo.Transform.mult(matrix, 3);
-+      matrix.assign(F.mult(3));
-               timer1.stop();
-       }
-       timer1.display();
-@@ -366,7 +369,8 @@
-       //if (kind.equals("sparse")) 
((SparseDoubleMatrix2D)matrix).elements.hashCollisions = 0;
-       for (int i=0; i<runs; i++) {
-               timer2.start();
--              cern.colt.matrix.doublealgo.Transform.mult(matrix,3);
-+              // cern.colt.matrix.doublealgo.Transform.mult(matrix,3);
-+      matrix.assign(F.mult(3));
-               timer2.stop();
-       }
-       timer2.display();

diff --git 
a/dev-java/colt/files/colt-1.2.0-remove-concurrent-util-imports.patch 
b/dev-java/colt/files/colt-1.2.0-remove-concurrent-util-imports.patch
deleted file mode 100644
index 2cfbef761baf..000000000000
--- a/dev-java/colt/files/colt-1.2.0-remove-concurrent-util-imports.patch
+++ /dev/null
@@ -1,210 +0,0 @@
---- src/cern/colt/matrix/linalg/SmpBlas.java.orig      2015-10-07 
22:23:44.969486000 +0000
-+++ src/cern/colt/matrix/linalg/SmpBlas.java   2015-10-07 22:29:15.475486000 
+0000
-@@ -10,7 +10,8 @@
- 
- import cern.colt.matrix.DoubleMatrix1D;
- import cern.colt.matrix.DoubleMatrix2D;
--import EDU.oswego.cs.dl.util.concurrent.FJTask;
-+
-+import java.util.concurrent.ForkJoinTask;
- /**
- Parallel implementation of the Basic Linear Algebra System for symmetric 
multi processing boxes.
- Currently only a few algorithms are parallelised; the others are fully 
functional, but run in sequential mode.
-@@ -198,7 +199,7 @@
-       
-       // set up concurrent tasks
-       int span = width/noOfTasks;
--      final FJTask[] subTasks = new FJTask[noOfTasks];
-+      final ForkJoinTask[] subTasks = new ForkJoinTask[noOfTasks];
-       for (int i=0; i<noOfTasks; i++) {
-               final int offset = i*span;
-               if (i==noOfTasks-1) span = width - span*i; // last span may be 
a bit larger
-@@ -217,24 +218,30 @@
-                       CC = C.viewPart(offset,0,span,p);
-               }
-                               
--              subTasks[i] = new FJTask() { 
-+              subTasks[i] = new ForkJoinTask() { 
-                       public void run() { 
-                               
seqBlas.dgemm(transposeA,transposeB,alpha,AA,BB,beta,CC); 
-                               //System.out.println("Hello "+offset); 
-                       }
-+
-+      public boolean exec() { return true; }
-+      public void setRawResult(Object o) {}
-+      public Object getRawResult() {return null;}
-               };
-       }
-       
-       // run tasks and wait for completion
--      try { 
--              this.smp.taskGroup.invoke(
--                      new FJTask() {
--                              public void run() {     
--                                      coInvoke(subTasks);     
--                              }
--                      }
--              );
--      } catch (InterruptedException exc) {}
-+  this.smp.taskGroup.invoke(
-+          new ForkJoinTask() {
-+              public void run() {     
-+                  invokeAll(subTasks);        
-+              }
-+
-+              public boolean exec() { return true; }
-+              public void setRawResult(Object o) {}
-+              public Object getRawResult() {return null;}
-+          }
-+          );
- }
- public void dgemv(final boolean transposeA, final double alpha, 
DoubleMatrix2D A, final DoubleMatrix1D x, final double beta, DoubleMatrix1D y) {
-       /*
-@@ -271,7 +278,7 @@
-       
-       // set up concurrent tasks
-       int span = width/noOfTasks;
--      final FJTask[] subTasks = new FJTask[noOfTasks];
-+      final ForkJoinTask[] subTasks = new ForkJoinTask[noOfTasks];
-       for (int i=0; i<noOfTasks; i++) {
-               final int offset = i*span;
-               if (i==noOfTasks-1) span = width - span*i; // last span may be 
a bit larger
-@@ -280,24 +287,30 @@
-               final DoubleMatrix2D AA = A.viewPart(offset,0,span,n);
-               final DoubleMatrix1D yy = y.viewPart(offset,span);
-                               
--              subTasks[i] = new FJTask() { 
-+              subTasks[i] = new ForkJoinTask() { 
-                       public void run() { 
-                               seqBlas.dgemv(transposeA,alpha,AA,x,beta,yy); 
-                               //System.out.println("Hello "+offset); 
-                       }
-+
-+      public boolean exec() { return true; }
-+      public void setRawResult(Object o) {}
-+      public Object getRawResult() {return null;}
-               };
-       }
-       
-       // run tasks and wait for completion
--      try { 
--              this.smp.taskGroup.invoke(
--                      new FJTask() {
--                              public void run() {     
--                                      coInvoke(subTasks);     
--                              }
--                      }
--              );
--      } catch (InterruptedException exc) {}
-+  this.smp.taskGroup.invoke(
-+          new ForkJoinTask() {
-+              public void run() {     
-+                  invokeAll(subTasks);        
-+              }
-+
-+              public boolean exec() { return true; }
-+              public void setRawResult(Object o) {}
-+              public Object getRawResult() {return null;}
-+          }
-+          );
- }
- public void dger(double alpha, DoubleMatrix1D x, DoubleMatrix1D y, 
DoubleMatrix2D A) {
-       seqBlas.dger(alpha,x,y,A);
-@@ -369,9 +382,6 @@
- /**
-  * Prints various snapshot statistics to System.out; Simply delegates to 
{@link EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup#stats}.
-  */
--public void stats() {
--      if (this.smp!=null) this.smp.stats();
--}
- private double xsum(DoubleMatrix2D A) {
-       double[] sums = run(A,true,
-               new Matrix2DMatrix2DFunction() {
---- src/cern/colt/matrix/linalg/Smp.java.orig  2015-10-07 21:08:19.443486000 
+0000
-+++ src/cern/colt/matrix/linalg/Smp.java       2015-10-07 22:28:24.722486000 
+0000
-@@ -9,12 +9,13 @@
- package cern.colt.matrix.linalg;
- 
- import cern.colt.matrix.DoubleMatrix2D;
--import EDU.oswego.cs.dl.util.concurrent.FJTask;
--import EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup;
-+import java.util.concurrent.ForkJoinTask;
-+import java.util.concurrent.ForkJoinPool;
-+
- /*
- */
- class Smp {
--      protected FJTaskRunnerGroup taskGroup; // a very efficient and light 
weight thread pool
-+      protected ForkJoinPool taskGroup; // a very efficient and light weight 
thread pool
- 
-       protected int maxThreads;       
- /**
-@@ -24,41 +25,39 @@
-       maxThreads = Math.max(1,maxThreads);
-       this.maxThreads = maxThreads;
-       if (maxThreads>1) {
--              this.taskGroup = new FJTaskRunnerGroup(maxThreads);
-+              this.taskGroup = new ForkJoinPool(maxThreads);
-       }
-       else { // avoid parallel overhead
-               this.taskGroup = null;
-       }
- }
--/**
-- * Clean up deamon threads, if necessary.
-- */
--public void finalize() {
--      if (this.taskGroup!=null) this.taskGroup.interruptAll();
--}
- protected void run(final DoubleMatrix2D[] blocksA, final DoubleMatrix2D[] 
blocksB, final double[] results, final Matrix2DMatrix2DFunction function) {
--      final FJTask[] subTasks = new FJTask[blocksA.length];
-+      final ForkJoinTask[] subTasks = new ForkJoinTask[blocksA.length];
-       for (int i=0; i<blocksA.length; i++) {
-               final int k = i;
--              subTasks[i] = new FJTask() { 
-+              subTasks[i] = new ForkJoinTask() { 
-                       public void run() {
-                               double result = 
function.apply(blocksA[k],blocksB != null ? blocksB[k] : null);
-                               if (results!=null) results[k] = result; 
-                               //System.out.print("."); 
-                       }
-+      public boolean exec() { return true; }
-+      public void setRawResult(Object o) {}
-+      public Object getRawResult() {return null;}
-               };
-       }
- 
-       // run tasks and wait for completion
--      try { 
--              this.taskGroup.invoke(
--                      new FJTask() {
--                              public void run() {     
--                                      coInvoke(subTasks);     
--                              }
--                      }
--              );
--      } catch (InterruptedException exc) {}
-+  this.taskGroup.invoke(
-+          new ForkJoinTask() {
-+              public void run() {     
-+                  invokeAll(subTasks);        
-+              }
-+              public boolean exec() { return true; }
-+              public void setRawResult(Object o) {}
-+              public Object getRawResult() {return null;}
-+          }
-+          );
- }
- protected DoubleMatrix2D[] splitBlockedNN(DoubleMatrix2D A, int threshold, 
long flops) {
-       /*
-@@ -186,10 +185,4 @@
-       }
-       return blocks;
- }
--/**
-- * Prints various snapshot statistics to System.out; Simply delegates to 
{@link EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup#stats}.
-- */
--public void stats() {
--      if (this.taskGroup!=null) this.taskGroup.stats();
--}
- }

diff --git a/dev-java/colt/metadata.xml b/dev-java/colt/metadata.xml
deleted file mode 100644
index 6021501589e0..000000000000
--- a/dev-java/colt/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-<maintainer type="project">
-       <email>[email protected]</email>
-       <name>Java</name>
-</maintainer>
-</pkgmetadata>

diff --git a/profiles/package.mask b/profiles/package.mask
index ce120d7d148b..e033dbe4ae9f 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -192,7 +192,6 @@ dev-java/ecj-gcj
 dev-java/freehep-graphicsio-tests
 dev-java/freehep-graphicsio
 dev-java/freehep-graphics2d
-dev-java/colt
 
 # James Beddek <[email protected]> (2022-01-19)
 # FFmpeg 5.0 ABI/API changes break many packages.

Reply via email to