diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/skinlf |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/skinlf')
-rw-r--r-- | dev-java/skinlf/Manifest | 8 | ||||
-rw-r--r-- | dev-java/skinlf/files/skinlf-6.7-build.xml | 276 | ||||
-rw-r--r-- | dev-java/skinlf/files/skinlf-6.7-common.xml | 171 | ||||
-rw-r--r-- | dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch | 77 | ||||
-rw-r--r-- | dev-java/skinlf/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/skinlf/skinlf-6.7-r1.ebuild | 58 |
6 files changed, 598 insertions, 0 deletions
diff --git a/dev-java/skinlf/Manifest b/dev-java/skinlf/Manifest new file mode 100644 index 000000000000..71b9b94acaa2 --- /dev/null +++ b/dev-java/skinlf/Manifest @@ -0,0 +1,8 @@ +AUX skinlf-6.7-build.xml 10712 SHA256 85dd7092c1756b3e70e95c2c2fd36745b22634fa38410a0f9ee53fe3f7983e93 SHA512 0d4ecaabdcab41095bdf94388a92812095ae40afd81229d093183926ee4ff29672c98bda8c7dc549a692c26ba238751f623eafb8727f9214759d0ea4ee9bf45c WHIRLPOOL 2dea2336cb2fc957f8ed6cb0f1904c27590a2f7f7d6fee1d38e40f0482256c1aebadb4bcbedd2788f5f8a31c4e6ec8a81111a5507cf5e947a41bb37bfec5b4e5 +AUX skinlf-6.7-common.xml 5452 SHA256 a6ea18e7187684e86797ca51f45c0224f44433184f0473afbb32b08cadc95732 SHA512 0703e8b463d62355aabba1705d7c05aeb8c700c3a494d3898c356f781172dd09e777d1357ddeb0225753b85242f2d15052733c73c5656f263875570a3c4d896d WHIRLPOOL 5fa41df4b12e66a0840074c50436c45dda822e2b88d9c794a3b9e81df5c4eb655586fa0132662b91c97d8292d45fb36a2b536af2ac1c29c3005d83801742738f +AUX skinlf-6.7-image-utils-without-jimi.patch 2935 SHA256 9bf37bf2a74b04a1228cbae1741baf9ecd2df00530214e8848e73ce45c0567c0 SHA512 b05e63e4decb26e325c3a902d8f1391c0026c41114146462fa1cb87e9ff5431941a69615da96751689c8f3ff10fb31f277711b355778c621a7a3d38bfecba033 WHIRLPOOL 9b24f1e3b38d766a2ebd2d60920c96063cec968e9ca085fcda80fb95efcaab57a8faeb75a4bfb8e641410025489d6b8448ad958f99a0c17a545d9e18bb357154 +DIST skinlf-6.7-20060722.zip 827174 SHA256 3d31ffbe1fa1325049cb94e675971a2b8d89ae24558cb173e7e4e1f926dd7daa SHA512 e4df9c6a85b5bbdbd40af177595641a5ad55a5cb16e5a31217fb3f5badd25727e4b48fa78ba2374f4eb55224068807b5bd6df9fba7f2418b7b810b25cf2043b6 WHIRLPOOL f1ba8c9408fc77fd1d68a5c2b7834ed0f1c79dbaa3095e015f95464da0a852a892e3f40635b86dde14f6af314902f88be3e6218f313a9722d76037fa6a944bba +EBUILD skinlf-6.7-r1.ebuild 1384 SHA256 e1d57c8aa984fb6aaa0c00a106bc7ff77459906c758eb874f880b3419e8f7746 SHA512 7aea3626973965005d19bfa764af9acf73525cb547357d72c64883d5d0c9d402d250cdd1b48d748101366b773cf873e5037eb6d1660cc19e9d6b0cc71eb68988 WHIRLPOOL ecf655a876602e5739be0f1567d6266c67f3f83fa590bf191417c63d689a385e0a87bf94811c72b3c2eb6765532cf15c867c93c656931240b61b5aaf062e7d23 +MISC ChangeLog 3588 SHA256 a26ba4952b52f2cbd85f16ac1e7b1086083f8d427b98732935b1261a2088aaf4 SHA512 9bd3eba34aaf126da5104c3c8867d11fcea1cb67a1a859cf0e67ef241d710b31495a0badee781ed93ddce24d870005feda54ce43fe585afd48428a9ee4f4d9ea WHIRLPOOL ec67bf658114a5054208f04525419591db4f92c4ba705fdef5e2a19cdf005e64f5112dcc5ae5b30f294c74e6036ab4a526a23179dc5c704b1f525e2dc1f03b4e +MISC ChangeLog-2015 2054 SHA256 e66aed332635181c535ac02d4fc59209244a076a13510d9402e4aee56dd34d88 SHA512 f437a794f1bb2b08bfcfc5c121009b5cc5e65bbd3b35751d595457784ae37f532da90d3a552ac31e3634f5581cf1ac43b0eb97005b931b368587419f5bf67f2b WHIRLPOOL feac50540b6c88253885626a61e25474c60cb57dac102b2ee06993c9e5a6d150ef0b925e1a88cec0ac791890caec1ecc73441b296de0273e2e19de9418141605 +MISC metadata.xml 230 SHA256 fe2634b9f9502d3a74784a61fbcf092f7be0a2104fd575ec60c4d32344ec228f SHA512 476218dbd8032db6ef1b9ff1fe425808b717eb4b19668ffd21fea661bed536104bfb0c0766fd98de7c99be9677af6b17a5209ee70c7e9568e814bc6ed85d6a3e WHIRLPOOL f5bc97b89483f9badf9bcb1aeece3606b57468012f4912f8c250f3959d9510079bab84dcf31163bac299066dc282bf4464dd1cb8a712640ce9ee53032013b1ae diff --git a/dev-java/skinlf/files/skinlf-6.7-build.xml b/dev-java/skinlf/files/skinlf-6.7-build.xml new file mode 100644 index 000000000000..42b4c1145aa2 --- /dev/null +++ b/dev-java/skinlf/files/skinlf-6.7-build.xml @@ -0,0 +1,276 @@ +<!DOCTYPE project [ + <!ENTITY build-COMMON SYSTEM "common.xml"> +]> + +<!-- + Skin Look And Feel Build +--> +<project name="skinlf" default="compile.java" basedir="."> + + <!-- Allow user to override settings --> + <property file="${user.home}/skinlf-ant.properties" /> + <property file="build.properties" /> + + <!-- Project Identification --> + <property name="project" value="skinlf"/> + <property name="version" value="6.7"/> + <property name="year" value="2000-2006"/> + <property name="project.fullname" value="Skin Look And Feel"/> + <property name="project.nativeskin" value="nativeskin"/> + + <property name="javadoc.packagenames" value="com.l2fprod.gui,com.l2fprod.gui.plaf.skin,com.l2fprod.gui.region,com.l2fprod.gui.nativeskin"/> + + + + <path id="classpath"> + <fileset dir="lib" includes="**/*.jar"/> + </path> + + <property name="classpath.asprop" refid="classpath"/> + + &build-COMMON; + + <target name="compile.javacc" depends="init"> + <javacc target="src/com/l2fprod/gui/plaf/skin/impl/gtk/parser/GtkParser.jj" + outputdirectory="src/com/l2fprod/gui/plaf/skin/impl/gtk/parser" + javacchome="lib" + static="false" + javaunicodeescape="true" /> + </target> + + <target name="compile" depends="init"> + </target> + + <!-- + Utility targets to use the style converters + --> + <target name="convert.msstyles"> + <fail unless="msstyle" message="Specify path to msstyle xml -Dmsstyle=pathtoxml"/> + <fail unless="skin" message="Specify themepack folder -Dskin=pathtothemepackdir"/> + <java classname="com.l2fprod.tools.msstyles.MsStylesToSkinLF" + classpath="${classpath.asprop}:${java.src.dir}:${build.classes}" + fork="yes"> + <arg value="${msstyle}" /> + <arg value="${msstyle}.xml" /> + <arg value="${skin}" /> + </java> + <copy todir="${skin}"> + <fileset dir="src/themepacks/skeletonthemepack" includes="**"/> + </copy> + </target> + + <!-- + Start Demos + --> + <target name="demo"> + <java classname="examples.demo" + classpath="${classpath.asprop}:${java.src.dir}:${build.classes}" + fork="yes"> + <arg value="${skin}" /> + </java> + </target> + + <!-- Dist targets --> + <target name="jar" depends="compile.java"> + <jar destfile="${build.dir}/${project}.jar"> + <fileset dir="${build.classes}" includes="*.class,com/**/*.class" excludes="**/region/**,**/nativeskin/**"/> + <fileset dir="${java.src.dir}" includes="com/**/*.properties"/> + <fileset dir="${java.src.dir}" includes="com/**/*.template"/> + <fileset dir="${java.src.dir}" includes="com/**/*.gif"/> + <manifest> + <attribute name="Built-by" value="${user.name}"/> + <attribute name="Main-Class" value="com.l2fprod.gui.plaf.skin.Skinit"/> + <attribute name="Class-Path" value="laf-plugin.jar"/> + <section name="com/l2fprod/gui/plaf/skin"> + <attribute name="Specification-Title" value="${project.fullname}"/> + <attribute name="Specification-Version" value="${version}"/> + <attribute name="Specification-Vendor" value="L2FProd.com"/> + <attribute name="Implementation-Title" value="${project.fullname}"/> + <attribute name="Implementation-Version" value="${version}"/> + <attribute name="Implementation-Vendor" value="L2FProd.com"/> + </section> + </manifest> + </jar> + </target> + + <target name="obfuscate" depends="jar"> + <taskdef name="proguard" + classname="proguard.ant.ProGuardTask" + classpath="lib/proguard.jar"/> + <move file="${build.dir}/${project}.jar" + tofile="${build.dir}/${project}-toobfuscate.jar"/> + <proguard + outjar="${build.dir}/${project}.jar" + obfuscate="yes" + usemixedclassnames="no" + overloadaggressively="yes" + printmapping="obfuscatemapping.txt" + printusage="obfuscateusage.txt"> + <libraryjar name="${java.home}/lib/rt.jar"/> + <injar name="${build.dir}/${project}-toobfuscate.jar"/> + <keep access="public" type="class" name="Skinit"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.SkinApplet"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.SkinChooser"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.WindowSnapping"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.nativeskin.**"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.CompoundSkin"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.IncorrectVersionException"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.LinuxLookAndFeel"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.Skin"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinButton"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinFrame"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.Skinit"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinLookAndFeel"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinPersonality"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinPreviewWindow"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinProgress"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinScrollbar"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinSeparator"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinSlider"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinSplitPane"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.SkinTab"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.impl.*"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.impl.gtk.GtkSkin"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.plaf.skin.impl.kde.KdeSkin"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.gui.region.*"> + <method name="*"/> + </keep> + <keep access="public" type="class" name="com.l2fprod.tools.**"> + <method name="*"/> + </keep> + <keep type="class" name="com.l2fprod.util.**"> + <method name="*"/> + </keep> + </proguard> + </target> + + <target name="dist.pre" depends="jar"> + <!-- examples.jar --> + <jar destfile="${build.dist.lib}/examples.jar"> + <fileset dir="${build.classes}" includes="examples/**.class"/> + <fileset dir="${java.src.dir}" includes="examples/**.properties,examples/**.gif,examples/**.jpg"/> + </jar> + <!-- nativeskin.jar --> + <jar jarfile="${build.dist.lib}/nativeskin.jar"> + <fileset dir="${build.classes}" + includes="com/l2fprod/gui/region/**,com/l2fprod/gui/nativeskin/**,com/l2fprod/util/OS**,,com/l2fprod/util/Access**" + excludes="**/*.html"/> + </jar> + <!-- batch files --> + <copy todir="${build.dist.bin}" + flatten="yes" + preservelastmodified="yes"> + <fileset dir="src" includes="**/*.bat"/> + </copy> + <!-- dlls --> + <copy todir="${build.dist.lib}"> + <fileset dir="src/native/win32" includes="*.dll"/> + </copy> + <!-- default theme --> + <zip destfile="${build.dist.lib}/themepack.zip"> + <zipfileset dir="src/themepacks/whistlerthemepack"/> + </zip> + </target> + + <!-- + Publish the new version of SKinLF + --> + <target name="publish" depends="init"> + <!-- copy zip to dist folder --> + <copy todir="${publish.download.dir}" + file="${project}-${version}-${build.version}.zip"/> + + <filter token="WEB" value="${publish.web.url}"/> + <!-- update the jnlp website with the new release --> + <!-- put skinlf.jar in jnlp folder --> + <copy todir="${publish.skinlf.home}/jnlp/" filtering="on" overwrite="yes"> + <fileset dir="src/jnlp" includes="*.jnlp"/> + </copy> + <copy file="${build.dist.lib}/${project}.jar" todir="${publish.skinlf.home}/jnlp/"/> + <copy file="${build.dist.lib}/examples.jar" todir="${publish.skinlf.home}/jnlp/"/> + <copy file="${build.dist.lib}/themepack.zip" todir="${publish.skinlf.home}/jnlp/"/> + <copy file="${build.dist.lib}/nativeskin.jar" todir="${publish.skinlf.home}/jnlp"/> + <jar destfile="${publish.skinlf.home}/jnlp/nativeskinlibs.jar" + basedir="${build.dist.lib}" includes="*.dll"/> + + <!-- copy the documentation + <copy todir="${web.skinlf.home}/documentation"> + <fileset dir="${javadoc.destdir}"/> + </copy> + --> + <!-- Sign all Jars --> + <signjar keystore="../common/keystore" alias="L2FProd.com" storepass="L2FProd.com"> + <fileset dir="${publish.skinlf.home}/jnlp" includes="*.jar"/> + </signjar> + + </target> + + <target name="themes"> + <zip destfile="${build.www.themedir}/cellshadedthemepack.zip" + basedir="src/themepacks/cellshadedthemepack"/> + <zip destfile="${build.www.themedir}/whistlerthemepack.zip" + basedir="src/themepacks/whistlerthemepack"/> + <zip destfile="${build.www.themedir}/xplunathemepack.zip" + basedir="src/themepacks/xplunathemepack"/> + <zip destfile="${build.www.themedir}/toxicthemepack.zip" + basedir="src/themepacks/toxicthemepack"/> + <zip destfile="${build.www.themedir}/beigeazulthemepack.zip" + basedir="src/themepacks/beigeazulthemepack"/> + + + <!-- png for these themepacks are not in cvs --> + <zip destfile="${build.www.themedir}/aquathemepack.zip" + basedir="src/themepacks/aquathemepack"/> + <zip destfile="${build.www.themedir}/alloythemepack.zip" + basedir="src/themepacks/alloythemepack"/> + </target> + +</project> diff --git a/dev-java/skinlf/files/skinlf-6.7-common.xml b/dev-java/skinlf/files/skinlf-6.7-common.xml new file mode 100644 index 000000000000..c2803acc5bab --- /dev/null +++ b/dev-java/skinlf/files/skinlf-6.7-common.xml @@ -0,0 +1,171 @@ +<!-- + Common Target which could be reused by other projects later. +--> + +<!-- COMMON PROPERTIES --> + + <property name="debug" value="true"/> + <property name="optimize" value="false"/> + + <!-- Java Related --> + <property name="java.src.dir" value="src"/> + <property name="javac.compiler" value="modern"/> + + <!-- Destination Directory for the build --> + <property name="build.dir" value="build"/> + <property name="build.classes" value="${build.dir}/classes"/> + <property name="build.src" value="${build.dir}/src"/> + <property name="build.dist.dir" value="${project}-${version}"/> + <property name="build.dist.src" value="${build.dist.dir}/src"/> + <property name="build.dist.lib" value="${build.dist.dir}/lib"/> + <property name="build.dist.bin" value="${build.dist.dir}/bin"/> + <property name="build.www.dir" value="${build.dir}/www"/> + +<!-- COMMON TARGETS --> + + <target name="init.properties"> + <tstamp> + <format property="build.time" pattern="MM/dd/yyyy hh:mm aa" locale="en"/> + <format property="build.version" pattern="yyyyMMdd" locale="en"/> + </tstamp> + <filter token="VERSION" value="${version}"/> + <filter token="PROJECT.FULLNAME" value="${project.fullname}"/> + <filter token="DATE" value="${build.time}"/> + <filter token="YEAR" value="${year}"/> + </target> + + <target name="init.directories"> + <mkdir dir="${build.dir}"/> + <mkdir dir="${build.classes}"/> + <mkdir dir="${build.dist.dir}"/> + <mkdir dir="${build.dist.src}"/> + <mkdir dir="${build.dist.lib}"/> + <mkdir dir="${build.dist.bin}"/> + </target> + + <target name="init" depends="init.properties,init.directories"> + </target> + + <target name="clean"> + <delete dir="${build.dir}"/> + <delete dir="${build.dist.dir}"/> + </target> + + <target name="fixcrlf"> + <fixcrlf srcdir="${basedir}" eol="cr"> + <include name="AUTHORS,LICENSE*,README,THANKS" /> + <include name="**/*.java" /> + </fixcrlf> + </target> + +<!-- Java Related Targets --> + + <target name="compile.java" depends="init"> + <depend srcdir="${java.src.dir}" + destdir="${build.classes}" + cache="${build.dir}/dependcache" + closure="yes"/> + + <copy todir="${build.src}" filtering="yes"> + <fileset dir="${java.src.dir}"> + <include name="**/*.java"/> + </fileset> + </copy> + <javac srcdir="${build.src}" + destdir="${build.classes}" + classpathref="classpath" + compiler="${javac.compiler}" + includeAntRuntime="false" + includeJavaRuntime="false" + debug="${debug}" + optimize="${optimize}" + target="1.3" source="1.3"> + </javac> + </target> + +<!-- Distribution Target --> + + <target name="dist" depends="jar,dist.pre"> + <!-- project.jar --> + <copy todir="${build.dist.lib}" + file="${build.dir}/${project}.jar" + preservelastmodified="yes"/> + <!-- source code --> + <copy todir="${build.dist.src}" + preservelastmodified="yes"> + <fileset dir="${build.src}" includes="**/*.java"/> + <fileset dir="${java.src.dir}" includes="**/*.properties"/> + </copy> + <!-- regular files --> + <copy todir="${build.dist.dir}" + filtering="yes" + preservelastmodified="yes"> + <fileset dir="${basedir}"> + <include name="AUTHORS"/> + <include name="INSTALL"/> + <include name="README"/> + <include name="THANKS"/> + <include name="LICENSE"/> + <include name="LICENSE_*"/> + </fileset> + </copy> + <xslt in="xdocs/CHANGES.xml" + out="${build.dist.dir}/CHANGES" + style="xdocs/xsl/text.xsl"/> + <!-- zip file --> + <zip destfile="${project}-${version}-${build.version}.zip"> + <zipfileset dir="${build.dist.dir}" + prefix="${project}-${version}" /> + </zip> + </target> + +<!-- Source code formatting --> + + <target name="jalopy" depends="init"> + </target> + +<!-- Project Web Documentation --> + + <target name="www" depends="init"> + <mkdir dir="${build.www.dir}"/> + <xslt in="xdocs/www.xml" + out="${build.www.dir}/empty.html" + style="xdocs/xsl/tohtml.xsl"> + <param name="output.dir" expression="${build.www.dir}"/> + <param name="timestamp" expression="${build.time}"/> + </xslt> + <copy todir="${build.www.dir}"> + <fileset dir="xdocs"> + <include name="images/**"/> + <include name="**.java"/> + </fileset> + </copy> + <mkdir dir="${build.www.dir}/javadoc"/> + <javadoc sourcepath="${java.src.dir}" + classpath="${classpath}" + destdir="${build.www.dir}/javadoc" + packagenames="${javadoc.packagenames}" + private="false" protected="true" + windowtitle="${project.fullname} ${version} API" + doctitle="${project.fullname} ${version}" + version="false" author="false" use="false" + stylesheetfile="xdocs/javadoc.css" + splitindex="true" + bottom="Copyright © ${year} L2FProd.com. All Rights Reserved."/> + <delete file="${build.www.dir}/empty.html"/> + </target> + + <target name="www.sync" depends="init"> + <ftp server="${build.www.server}" + userid="${build.www.userid}" + password="${build.www.password}" + remotedir="${build.www.remotedir}" + action="put" + verbose="yes" + depends="yes"> + <fileset dir="${build.www.dir}"> + <include name="**/**"/> + </fileset> + </ftp> + </target> + 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 new file mode 100644 index 000000000000..3e797bf08d86 --- /dev/null +++ b/dev-java/skinlf/files/skinlf-6.7-image-utils-without-jimi.patch @@ -0,0 +1,77 @@ +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 new file mode 100644 index 000000000000..0cd2a3b2609e --- /dev/null +++ b/dev-java/skinlf/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/dev-java/skinlf/skinlf-6.7-r1.ebuild b/dev-java/skinlf/skinlf-6.7-r1.ebuild new file mode 100644 index 000000000000..96b555f81873 --- /dev/null +++ b/dev-java/skinlf/skinlf-6.7-r1.ebuild @@ -0,0 +1,58 @@ +# 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 +} |