summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-01-24 22:11:50 +0000
committerPatrice Clement <monsieurp@gentoo.org>2016-01-24 22:14:40 +0000
commit9967127c68f2fb589b4117c5346857b19a4c961d (patch)
tree9efcaa41c90a302bf6224cb512b1122b48ee51fb /dev-java/piccolo2d
parentMerge remote-tracking branch 'github/pr/714'. (diff)
parentdev-java/piccolo2d-3.0: New release (diff)
downloadgentoo-9967127c68f2fb589b4117c5346857b19a4c961d.tar.gz
gentoo-9967127c68f2fb589b4117c5346857b19a4c961d.tar.bz2
gentoo-9967127c68f2fb589b4117c5346857b19a4c961d.zip
Merge remote-tracking branch 'github/pr/717'. Fixes bug 572486.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/piccolo2d')
-rw-r--r--dev-java/piccolo2d/piccolo2d-3.0.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/piccolo2d/piccolo2d-3.0.ebuild b/dev-java/piccolo2d/piccolo2d-3.0.ebuild
new file mode 100644
index 000000000000..0697b8ee4345
--- /dev/null
+++ b/dev-java/piccolo2d/piccolo2d-3.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source examples"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A Structured 2D Graphics Framework"
+HOMEPAGE="https://github.com/piccolo2d/piccolo2d.java"
+SRC_URI="https://github.com/${PN}/${PN}.java/archive/${PN}-complete-${PV}.zip -> ${P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="dev-java/swt:3.7"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.6"
+
+S="${WORKDIR}/${PN}.java-${PN}-complete-${PV}"
+
+JAVA_GENTOO_CLASSPATH="swt-3.7"
+
+JAVA_SRC_DIR="core extras swt"
+
+java_prepare() {
+ rm -rf core/src/test extras/src/test swt/src/test || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc Readme.txt ReleaseNotes.txt
+
+ if use examples; then
+ local INSDESTTREE=/usr/share/doc/${PF}/examples
+ doins -r examples/src/main/java/org/piccolo2d/examples/*
+ doins -r examples/src/main/java/org/piccolo2d/tutorial
+ doins -r swt-examples/src/main/java/org/piccolo2d/extras
+ docompress -x "${INSDESTTREE}"
+ fi
+}