1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 JAVA_PKG_IUSE="examples source"
7 inherit eutils java-pkg-2 java-ant-2
11 DESCRIPTION="Skin Look and Feel - Skinning Engine for the Swing toolkit"
12 HOMEPAGE="http://skinlf.l2fprod.com/"
13 SRC_URI="https://${PN}.dev.java.net/files/documents/66/37801/${MY_P}.zip"
19 CDEPEND="dev-java/laf-plugin:0
22 RDEPEND=">=virtual/jre-1.4
25 DEPEND=">=virtual/jdk-1.4
30 epatch "${FILESDIR}/${P}-image-utils-without-jimi.patch"
32 cp "${FILESDIR}/${P}-build.xml" build.xml || die
33 cp "${FILESDIR}/${P}-common.xml" common.xml || die
37 # assert_built_jar_equals is your friend, upstream your enemy
38 unzip ${PN}.jar '*.gif' '*.template' -d ../src || die
41 java-pkg_jar-from xalan,laf-plugin
45 java-pkg_dojar build/${PN}.jar
47 # laf-plugin.jar is referenced in manifest's Class-Path
48 # doesn't work without it due to class loader trickery
49 # upstream solved this by absorbing laf-plugin in own jar...
50 java-pkg_dojar lib/laf-plugin.jar
52 use examples && java-pkg_doexamples src/examples
53 use source && java-pkg_dosrc src/com src/*.java