From 1798c4aeca70ac8d0a243684d6a798fbc65735f8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 20:57:42 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/skinlf/Manifest | 6 - dev-java/skinlf/files/skinlf-6.7-build.xml | 276 --------------------- dev-java/skinlf/files/skinlf-6.7-common.xml | 171 ------------- .../skinlf-6.7-image-utils-without-jimi.patch | 77 ------ dev-java/skinlf/metadata.xml | 8 - dev-java/skinlf/skinlf-6.7-r1.ebuild | 58 ----- 6 files changed, 596 deletions(-) delete mode 100644 dev-java/skinlf/Manifest delete mode 100644 dev-java/skinlf/files/skinlf-6.7-build.xml delete mode 100644 dev-java/skinlf/files/skinlf-6.7-common.xml delete mode 100644 dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch delete mode 100644 dev-java/skinlf/metadata.xml delete mode 100644 dev-java/skinlf/skinlf-6.7-r1.ebuild (limited to 'dev-java/skinlf') diff --git a/dev-java/skinlf/Manifest b/dev-java/skinlf/Manifest deleted file mode 100644 index d32b3008b4fb..000000000000 --- a/dev-java/skinlf/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX skinlf-6.7-build.xml 10712 BLAKE2B c9fd2045a56b230ce4acb836a90bed998b39ee2d075bd4e05618ea90b36a7602acf57e143b7463baeefa3b817770ea2b663110877a9110adc6a0d365a8b2100e SHA512 0d4ecaabdcab41095bdf94388a92812095ae40afd81229d093183926ee4ff29672c98bda8c7dc549a692c26ba238751f623eafb8727f9214759d0ea4ee9bf45c -AUX skinlf-6.7-common.xml 5452 BLAKE2B a71f3553dc85a0a08b6926389a87574133b004d642d28007699eafc51f120bc3e59af860d23d0bf4cfb3cbc3313accaa998b468ddd554b32de405a4c55da8b46 SHA512 0703e8b463d62355aabba1705d7c05aeb8c700c3a494d3898c356f781172dd09e777d1357ddeb0225753b85242f2d15052733c73c5656f263875570a3c4d896d -AUX skinlf-6.7-image-utils-without-jimi.patch 2935 BLAKE2B e9d8a10a5f5848bb9c1d4b13c8e294907d72b93a98cd69fd6bea89bed997b8aa676f275d4c7244257b5b46092381461a30cd1f8b8d3099e173228d1a41eba493 SHA512 b05e63e4decb26e325c3a902d8f1391c0026c41114146462fa1cb87e9ff5431941a69615da96751689c8f3ff10fb31f277711b355778c621a7a3d38bfecba033 -DIST skinlf-6.7-20060722.zip 827174 BLAKE2B 72ada5c0b04023b0e51778698ce0b93da1d02457837cd5aedcb6f651e231e1c1a9dede2490bc182d18af9849f8f182542f71d6c864e02d4c2abbfc4c8bdab7f5 SHA512 e4df9c6a85b5bbdbd40af177595641a5ad55a5cb16e5a31217fb3f5badd25727e4b48fa78ba2374f4eb55224068807b5bd6df9fba7f2418b7b810b25cf2043b6 -EBUILD skinlf-6.7-r1.ebuild 1384 BLAKE2B d232c624eb3ea07ce6fddb6c7c18c84ab4e4b0f09a250e551be101731ae4620ebb32bd74534803606161dc11a7be1a1b468ff040ef4b74f9e6d42aec4e13addc SHA512 7aea3626973965005d19bfa764af9acf73525cb547357d72c64883d5d0c9d402d250cdd1b48d748101366b773cf873e5037eb6d1660cc19e9d6b0cc71eb68988 -MISC metadata.xml 230 BLAKE2B f980b23f7e5db048ac5b7b660bd9140a5212c9648c15ffcb566afcd151bb8f136ccbede3513a61cb587ab9bdd793622183b30718465fdb42d22491443ffb7d35 SHA512 476218dbd8032db6ef1b9ff1fe425808b717eb4b19668ffd21fea661bed536104bfb0c0766fd98de7c99be9677af6b17a5209ee70c7e9568e814bc6ed85d6a3e diff --git a/dev-java/skinlf/files/skinlf-6.7-build.xml b/dev-java/skinlf/files/skinlf-6.7-build.xml deleted file mode 100644 index 42b4c1145aa2..000000000000 --- a/dev-java/skinlf/files/skinlf-6.7-build.xml +++ /dev/null @@ -1,276 +0,0 @@ - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - &build-COMMON; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/dev-java/skinlf/files/skinlf-6.7-common.xml b/dev-java/skinlf/files/skinlf-6.7-common.xml deleted file mode 100644 index c2803acc5bab..000000000000 --- a/dev-java/skinlf/files/skinlf-6.7-common.xml +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch b/dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch deleted file mode 100644 index 3e797bf08d86..000000000000 --- a/dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch +++ /dev/null @@ -1,77 +0,0 @@ -diff -ru skinlf-1.2.12-orig/src/com/l2fprod/tools/ImageUtils.java skinlf-1.2.12/src/com/l2fprod/tools/ImageUtils.java ---- src/com/l2fprod/tools/ImageUtils.java 2006-01-24 20:09:36.000000000 +0100 -+++ src/com/l2fprod/tools/ImageUtils.java 2006-01-24 20:19:19.000000000 +0100 -@@ -6,15 +6,12 @@ - - import javax.swing.ImageIcon; - --import com.ibm.imageconversion.*; --import com.sun.jimi.core.*; -+import javax.imageio.*; - - public class ImageUtils { - - public static Component bitmapCreator = new javax.swing.JLabel(); - -- static BMPDecoder decoder = new BMPDecoder(); -- static BMPEncoder encoder = new BMPEncoder(); - - public static Image loadPng(String pathToImage) throws Exception { - ImageIcon icon = new ImageIcon(new File(pathToImage).toURL()); -@@ -22,29 +19,33 @@ - } - - public static void savePng(Image image, String pathToImage) throws Exception { -- Jimi.putImage(image, pathToImage); -+ ImageIO.write((RenderedImage)image, "png", new File(pathToImage)); - } - -+ private static String getFileFmt(String pathToImage) throws Exception { -+ String fmt; -+ if (pathToImage.toLowerCase().endsWith(".png")) { -+ return "png"; -+ } -+ if (pathToImage.toLowerCase().endsWith(".gif")) { -+ return "gif"; -+ } -+ if (pathToImage.toLowerCase().endsWith(".bmp")) { -+ return "bmp"; -+ } -+ return ""; -+ } -+ - public static void createPicture(String pathToImage, int index, int maxParts, - String filename, boolean horizontal) { - try { - System.out.println("working with " + pathToImage); - Image image = null; -- -- if (pathToImage.toLowerCase().endsWith(".png") || -- pathToImage.toLowerCase().endsWith(".gif")) { -- image = loadPng(pathToImage); -- } else if (pathToImage.toLowerCase().endsWith(".bmp")) { -- decoder.setInputFilename(pathToImage); -- decoder.triggerAction(); -- image = decoder.getResult(); -- } else { -- throw new Error("do not know how to load " + pathToImage); -- } -+ image = Toolkit.getDefaultToolkit().getImage(pathToImage); - - // if only one image, dump it as it -- if (index == 0 && maxParts == 1) { -- Jimi.putImage(image, filename); -+ if (index == 0 && maxParts == 1) { -+ ImageIO.write((RenderedImage)image, getFileFmt(pathToImage), new File(pathToImage)); - } else { - if (horizontal) { - int partHeight = image.getHeight(bitmapCreator) / maxParts; -@@ -55,7 +56,7 @@ - image = grab(image, partWidth * index, 0, - partWidth, image.getHeight(bitmapCreator)); - } -- Jimi.putImage(image, filename); -+ ImageIO.write((RenderedImage)image, getFileFmt(pathToImage), new File(pathToImage)); - } - } catch (Exception e) { - System.out.println("error while working with " + pathToImage); diff --git a/dev-java/skinlf/metadata.xml b/dev-java/skinlf/metadata.xml deleted file mode 100644 index 0cd2a3b2609e..000000000000 --- a/dev-java/skinlf/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - -java@gentoo.org -Java - - diff --git a/dev-java/skinlf/skinlf-6.7-r1.ebuild b/dev-java/skinlf/skinlf-6.7-r1.ebuild deleted file mode 100644 index 96b555f81873..000000000000 --- a/dev-java/skinlf/skinlf-6.7-r1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -JAVA_PKG_IUSE="examples source" -WANT_ANT_TASKS="ant-nodeps" - -inherit eutils java-pkg-2 java-ant-2 - -MY_P="${P}-20060722" - -DESCRIPTION="Skin Look and Feel - Skinning Engine for the Swing toolkit" -HOMEPAGE="http://skinlf.l2fprod.com/" -SRC_URI="https://${PN}.dev.java.net/files/documents/66/37801/${MY_P}.zip" - -LICENSE="Apache-1.1" -SLOT="0" -KEYWORDS="amd64 x86" - -CDEPEND="dev-java/laf-plugin:0 - dev-java/xalan:0" - -RDEPEND=">=virtual/jre-1.4 - ${CDEPEND}" - -DEPEND=">=virtual/jdk-1.4 - app-arch/unzip:0 - ${CDEPEND}" - -java_prepare() { - epatch "${FILESDIR}/${P}-image-utils-without-jimi.patch" - - cp "${FILESDIR}/${P}-build.xml" build.xml || die - cp "${FILESDIR}/${P}-common.xml" common.xml || die - - cd lib || die - - # assert_built_jar_equals is your friend, upstream your enemy - unzip ${PN}.jar '*.gif' '*.template' -d ../src || die - rm -v *.jar || die - - java-pkg_jar-from xalan,laf-plugin -} - -src_install() { - java-pkg_dojar build/${PN}.jar - - # laf-plugin.jar is referenced in manifest's Class-Path - # doesn't work without it due to class loader trickery - # upstream solved this by absorbing laf-plugin in own jar... - java-pkg_dojar lib/laf-plugin.jar - - use examples && java-pkg_doexamples src/examples - use source && java-pkg_dosrc src/com src/*.java - - dodoc CHANGES README -} -- cgit v1.2.3