From 7cebd3df06dbe71b448e67b812ccb0ec0751b43d Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 20 Sep 2015 11:18:23 +0100 Subject: [PATCH] dev-java/treelayout: New package, needed by latest antlr 4 Package-Manager: portage-2.2.20.1 --- dev-java/treelayout/Manifest | 1 + dev-java/treelayout/metadata.xml | 6 +++ dev-java/treelayout/treelayout-1.0.2.ebuild | 42 +++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 dev-java/treelayout/Manifest create mode 100644 dev-java/treelayout/metadata.xml create mode 100644 dev-java/treelayout/treelayout-1.0.2.ebuild diff --git a/dev-java/treelayout/Manifest b/dev-java/treelayout/Manifest new file mode 100644 index 000000000000..898524ea82d7 --- /dev/null +++ b/dev-java/treelayout/Manifest @@ -0,0 +1 @@ +DIST treelayout-1.0.2.tar.gz 1007086 SHA256 e5f8dbf13cc1103b7eb96d297b1f31bcbe18c685f2f3dbda0ea56cb27aa4dc16 SHA512 89a627d8ab2f248bb9b22139de0a28f310deb555f78825f29f4acfd0df7b4c212c8df241b004f8452a4be8a0f7717ee996df3eef4dd88ca905f4ad211df92655 WHIRLPOOL cadb16ed599fca669f5b584eb9bb75c9c7b3eb718927886c33e82240732c7a2c2d6d198f8dbbd4bc2552d75f1eaa298087b7b2fbc6b549db448e607631ab44d0 diff --git a/dev-java/treelayout/metadata.xml b/dev-java/treelayout/metadata.xml new file mode 100644 index 000000000000..c3c6a2eb6e3a --- /dev/null +++ b/dev-java/treelayout/metadata.xml @@ -0,0 +1,6 @@ + + + + java + The TreeLayout creates tree layouts for arbitrary trees. It is not restricted to a specific output or format, but can be used for any kind of two dimensional diagram. Examples are Swing based components, SVG files, and many more. This is possible because TreeLayout separates the layout of a tree from the actual rendering. + diff --git a/dev-java/treelayout/treelayout-1.0.2.ebuild b/dev-java/treelayout/treelayout-1.0.2.ebuild new file mode 100644 index 000000000000..da4671041a4e --- /dev/null +++ b/dev-java/treelayout/treelayout-1.0.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Efficiently create compact tree layouts in Java" +SRC_URI="https://github.com/abego/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/abego/treelayout" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="test" + +RDEPEND=">=virtual/jre-1.6" + +DEPEND=">=virtual/jdk-1.6 + test? ( dev-java/ant-junit:0 )" + +S="${WORKDIR}/${P}/org.abego.${PN}" +JAVA_ANT_REWRITE_CLASSPATH="true" +JAVA_PKG_BSFIX_NAME="build-impl.xml" +EANT_BUILD_XML="nbproject/build-impl.xml" + +src_configure() { + EANT_EXTRA_ARGS="-Dplatform.home=${JAVA_HOME}" +} + +src_install() { + java-pkg_newjar dist/org.abego.${PN}.core.jar + dodoc CHANGES.txt doc/abegoTreeLayout.pdf + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + java-pkg-2_src_test +} -- 2.26.2