diff options
author | 2017-01-22 15:09:05 +0100 | |
---|---|---|
committer | 2017-01-22 15:10:04 +0100 | |
commit | 2b28fbb27e1dec410a4a6ea0711df851d3d07086 (patch) | |
tree | 46669a3c24ebbaf50bb330372288b964d50f6893 /dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch | |
parent | app-admin/packagekit: version bump to 1.1.5 #606798 (diff) | |
download | gentoo-2b28fbb27e1dec410a4a6ea0711df851d3d07086.tar.gz gentoo-2b28fbb27e1dec410a4a6ea0711df851d3d07086.tar.bz2 gentoo-2b28fbb27e1dec410a4a6ea0711df851d3d07086.zip |
dev-lang/tuprolog: Remove old
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch')
-rw-r--r-- | dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch b/dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch deleted file mode 100644 index 539aea342de2..000000000000 --- a/dev-lang/tuprolog/files/tuprolog-2.7.2-no-ikvm.patch +++ /dev/null @@ -1,105 +0,0 @@ -diff -urN tuprolog-2.7.2.orig/src/alice/tuprolog/LibraryManager.java tuprolog-2.7.2/src/alice/tuprolog/LibraryManager.java ---- tuprolog-2.7.2.orig/src/alice/tuprolog/LibraryManager.java 2013-07-15 13:38:22.000000000 +0200 -+++ tuprolog-2.7.2/src/alice/tuprolog/LibraryManager.java 2014-11-09 18:24:47.000000000 +0100 -@@ -8,11 +8,11 @@ - import java.net.URL; - import java.net.URLClassLoader; - import java.util.*; --import cli.System.Reflection.Assembly; -+//import cli.System.Reflection.Assembly; - - import alice.tuprolog.event.LibraryEvent; - import alice.tuprolog.event.WarningEvent; --import alice.util.AssemblyCustomClassLoader; -+//import alice.util.AssemblyCustomClassLoader; - - - /** -@@ -112,27 +112,7 @@ - } - else // .NET - { -- Assembly asm = null; -- boolean classFound = false; -- className = "cli." + className.substring(0, className.indexOf(",")).trim(); -- for(int i = 0; i < paths.length; i++) -- { -- try { -- asm = Assembly.LoadFrom(paths[i]); -- loader = new AssemblyCustomClassLoader(asm, urls); -- lib = (Library) Class.forName(className, true, loader).newInstance(); -- if(lib != null) -- { -- classFound = true; -- break; -- } -- } catch (Exception e) { -- e.printStackTrace(); -- continue; -- } -- } -- if(!classFound) -- throw new InvalidLibraryException(className, -1, -1); -+ throw new InvalidLibraryException(className, -1, -1); - } - String name = lib.getName(); - Library alib = getLibrary(name); -diff -urN tuprolog-2.7.2.orig/src/alice/tuprologx/ide/LibraryManager.java tuprolog-2.7.2/src/alice/tuprologx/ide/LibraryManager.java ---- tuprolog-2.7.2.orig/src/alice/tuprologx/ide/LibraryManager.java 2013-07-15 13:38:21.000000000 +0200 -+++ tuprolog-2.7.2/src/alice/tuprologx/ide/LibraryManager.java 2014-11-09 18:25:45.000000000 +0100 -@@ -18,7 +18,7 @@ - package alice.tuprologx.ide;
-
- import alice.tuprolog.*;
--import alice.util.AssemblyCustomClassLoader;
-+//import alice.util.AssemblyCustomClassLoader;
-
- import java.io.File;
- import java.net.URL;
-@@ -26,7 +26,7 @@ - import java.util.ArrayList;
- import java.util.Hashtable;
- import java.util.StringTokenizer;
--import cli.System.Reflection.Assembly;
-+//import cli.System.Reflection.Assembly;
-
- /**
- * A dynamic manager for tuProlog libraries.
-@@ -156,10 +156,7 @@ - // .NET
- if(System.getProperty("java.vm.name").equals("IKVM.NET"))
- {
-- Assembly asm = Assembly.LoadFrom(file.getPath());
-- loader = new AssemblyCustomClassLoader(asm, new URL[]{url});
-- libraryClassname = "cli." + libraryClassname.substring(0,
-- libraryClassname.indexOf(",")).trim();
-+ throw new InvalidLibraryException(libraryClassname,-1,-1);
- }
- // JVM
- else
-diff -urN tuprolog-2.7.2.orig/src/alice/util/AssemblyCustomClassLoader.java tuprolog-2.7.2/src/alice/util/AssemblyCustomClassLoader.java ---- tuprolog-2.7.2.orig/src/alice/util/AssemblyCustomClassLoader.java 2013-07-15 13:38:23.000000000 +0200 -+++ tuprolog-2.7.2/src/alice/util/AssemblyCustomClassLoader.java 1970-01-01 01:00:00.000000000 +0100 -@@ -1,21 +0,0 @@ --package alice.util;
--
--import java.net.URL;
--
--public class AssemblyCustomClassLoader extends java.net.URLClassLoader
--{
-- public AssemblyCustomClassLoader(cli.System.Reflection.Assembly asm, URL[] urls)
-- {
-- super(new java.net.URL[0], new ikvm.runtime.AssemblyClassLoader(asm));
-- // explicitly calling addURL() is safer than passing it to the super constructor,
-- // because this class loader instance may be used during the URL construction.
-- for (URL url : urls) {
-- addURL(url);
-- }
-- }
--
-- public void addUrl(URL url)
-- {
-- addURL(url);
-- }
--} -\ No newline at end of file |