# ChangeLog for dev-java/higlayout
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/higlayout/ChangeLog,v 1.1 2007/01/07 22:46:29 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/higlayout/ChangeLog,v 1.2 2007/01/09 20:35:13 caster Exp $
+
+*higlayout-1.0-r1 (09 Jan 2007)
+
+ 09 Jan 2007; Vlastimil Babka <caster@gentoo.org> -higlayout-1.0.ebuild,
+ +higlayout-1.0-r1.ebuild:
+ Fix jar command.
*higlayout-1.0 (07 Jan 2007)
--- /dev/null
+MD5 5bd79f33157824499b0fc03d6a5e080a HIGLayout1.0.zip 78855
+RMD160 c0b447b8176d3d3cb0f54a2be3c3511eb3db9a51 HIGLayout1.0.zip 78855
+SHA256 87464c9c889c7f5c94170ccb76ec088b1452897f670dab090ff3db06c3fed5e7 HIGLayout1.0.zip 78855
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/higlayout/higlayout-1.0-r1.ebuild,v 1.1 2007/01/09 20:35:13 caster Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="Java Swing layout manager that's powerful and easy to use"
+
+HOMEPAGE="http://www.autel.cz/dmi/tutorial.html"
+SRC_URI="http://www.autel.cz/dmi/HIGLayout${PV}.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="doc examples source"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ mkdir classes api
+ cd tutorial
+ for d in *.GIF;
+ do
+ mv $d $(basename $d .GIF).gif
+ done
+}
+
+src_compile() {
+ ejavac -d classes src/cz/autel/dmi/*.java || die "failed to compile sources"
+ jar -cf higlayout.jar -C classes cz || die "failed to create .jar"
+ if use doc; then
+ javadoc -author -version -d api src/cz/autel/dmi/*.java \
+ || die "javadoc failed"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ dodoc *.txt
+ if use doc; then
+ dohtml -r tutorial
+ java-pkg_dojavadoc api
+ fi
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*
+ fi
+ use source && java-pkg_dosrc src/cz
+}