diff options
Diffstat (limited to 'dev-java/piccolo2d')
-rw-r--r-- | dev-java/piccolo2d/ChangeLog | 13 | ||||
-rw-r--r-- | dev-java/piccolo2d/files/1.2.1-font-api.patch | 12 | ||||
-rw-r--r-- | dev-java/piccolo2d/metadata.xml | 6 | ||||
-rw-r--r-- | dev-java/piccolo2d/piccolo2d-1.2.1.ebuild | 52 |
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/piccolo2d/ChangeLog b/dev-java/piccolo2d/ChangeLog new file mode 100644 index 000000000000..15655b0b56ee --- /dev/null +++ b/dev-java/piccolo2d/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-java/piccolo2d +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/piccolo2d/ChangeLog,v 1.1 2009/11/12 17:41:50 weaver Exp $ + +*piccolo2d-1.2.1 (12 Nov 2009) + + 12 Nov 2009; Andrey Kislyuk <weaver@gentoo.org> + +files/1.2.1-font-api.patch, +metadata.xml, +piccolo2d-1.2.1.ebuild: + Import from Java overlay, dependency of sci-biology/cytoscape + + 22 Jan 2009; Alistair Bush <ali_bush@gentoo.org> ChangeLog: + Add ChangeLog for QA. + diff --git a/dev-java/piccolo2d/files/1.2.1-font-api.patch b/dev-java/piccolo2d/files/1.2.1-font-api.patch new file mode 100644 index 000000000000..ba77b3515585 --- /dev/null +++ b/dev-java/piccolo2d/files/1.2.1-font-api.patch @@ -0,0 +1,12 @@ +diff -ur piccolo-1.2.1.old/extras/edu/umd/cs/piccolox/swt/SWTGraphics2D.java piccolo-1.2.1/extras/edu/umd/cs/piccolox/swt/SWTGraphics2D.java +--- piccolo-1.2.1.old/extras/edu/umd/cs/piccolox/swt/SWTGraphics2D.java 2008-07-27 23:35:16.000000000 +0300 ++++ piccolo-1.2.1/extras/edu/umd/cs/piccolox/swt/SWTGraphics2D.java 2008-07-27 23:36:09.000000000 +0300 +@@ -238,7 +238,7 @@ + style = style | SWT.ITALIC; + } + +- return new Font(fd[0].getName(),style,fd[0].height); ++ return new Font(fd[0].getName(),style,fd[0].getHeight()); + } + return null; + } diff --git a/dev-java/piccolo2d/metadata.xml b/dev-java/piccolo2d/metadata.xml new file mode 100644 index 000000000000..604e0a4238bb --- /dev/null +++ b/dev-java/piccolo2d/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> +</pkgmetadata> + diff --git a/dev-java/piccolo2d/piccolo2d-1.2.1.ebuild b/dev-java/piccolo2d/piccolo2d-1.2.1.ebuild new file mode 100644 index 000000000000..ef489d606306 --- /dev/null +++ b/dev-java/piccolo2d/piccolo2d-1.2.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/piccolo2d/piccolo2d-1.2.1.ebuild,v 1.1 2009/11/12 17:41:50 weaver Exp $ + +EAPI=1 +JAVA_PKG_IUSE="doc examples source" + +inherit eutils java-pkg-2 java-ant-2 + +MY_PN="piccolo" +DESCRIPTION="A Structured 2D Graphics Framework" +HOMEPAGE="http://code.google.com/p/piccolo2d/" +SRC_URI="http://piccolo2d.googlecode.com/files/Piccolo2D.Java-${PV}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPS="dev-java/swt:3" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPS}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEPS}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +# Needs X11 +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + find -name '*.jar' -print -delete + epatch "${FILESDIR}/1.2.1-font-api.patch" +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="swt-3" +EANT_BUILD_TARGET="${MY_PN} extras" +EANT_GENTOO_CLASSPATH_EXTRA="build/${MY_PN}.jar:build/${MY_PN}x.jar" +EANT_DOC_TARGET="api" +EANT_TEST_TARGET="runtests" + +src_install() { + java-pkg_dojar build/*.jar + dodoc Readme.txt ReleaseNotes.txt || die + use doc && java-pkg_dojavadoc doc/api + use source && java-pkg_dosrc extras/edu src/edu + use examples && java-pkg_doexamples examples +} |