From ad99d986394f0db6edce4f87f56f9f9a73164705 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 19 May 2012 13:21:41 +0000 Subject: Import gcalc from java-overlay, initial ebuild by Serkan Kaba . #90893 Move to sci-visualization as suggested by Kacper Kowalik . Bump EAPI, and some cleanup. (Portage version: 2.1.10.58/cvs/Linux x86_64) --- sci-visualization/gcalc/ChangeLog | 14 ++++++++++ sci-visualization/gcalc/gcalc-3.1_rc1.ebuild | 42 ++++++++++++++++++++++++++++ sci-visualization/gcalc/metadata.xml | 8 ++++++ 3 files changed, 64 insertions(+) create mode 100644 sci-visualization/gcalc/ChangeLog create mode 100644 sci-visualization/gcalc/gcalc-3.1_rc1.ebuild create mode 100644 sci-visualization/gcalc/metadata.xml (limited to 'sci-visualization/gcalc') diff --git a/sci-visualization/gcalc/ChangeLog b/sci-visualization/gcalc/ChangeLog new file mode 100644 index 000000000000..ee921750ccc7 --- /dev/null +++ b/sci-visualization/gcalc/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for sci-visualization/gcalc +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gcalc/ChangeLog,v 1.1 2012/05/19 13:21:41 sera Exp $ + +*gcalc-3.1_rc1 (19 May 2012) + + 19 May 2012; Ralph Sennhauser +gcalc-3.1_rc1.ebuild, + +metadata.xml: + Import gcalc from java-overlay, initial ebuild by Serkan Kaba + . #90893 + Move to sci-visualization as suggested by Kacper Kowalik + . + Bump EAPI, and some cleanup. + diff --git a/sci-visualization/gcalc/gcalc-3.1_rc1.ebuild b/sci-visualization/gcalc/gcalc-3.1_rc1.ebuild new file mode 100644 index 000000000000..3e2355c04fdb --- /dev/null +++ b/sci-visualization/gcalc/gcalc-3.1_rc1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gcalc/gcalc-3.1_rc1.ebuild,v 1.1 2012/05/19 13:21:41 sera Exp $ + +EAPI="4" + +inherit java-pkg-2 + +MY_P="GCalc-${PV/_/-}" +DESCRIPTION="Java Mathematical Graphing System" +HOMEPAGE="http://gcalc.net/" +SRC_URI="http://gcalc.net/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64" +IUSE="" +SLOT="0" + +RDEPEND=">=virtual/jre-1.4 + !!sci-mathematics/gcalc" +DEPEND=">=virtual/jdk-1.4" + +S="${WORKDIR}/${MY_P}" + +java_prepare() { + find -name '*.jar' -exec rm -v {} + || die +} + +src_compile() { + cd src || die + ejavac $(find . -name '*.java') + + jar cf ${PN}.jar resources pluginlist.xml $(find . -name '*.class') || die +} + +src_install() { + java-pkg_dojar src/${PN}.jar + java-pkg_dolauncher gcalc --main net.gcalc.calc.GCalc + + newicon src/resources/gicon.png ${PN}.png || die + make_desktop_entry ${PN} "GCalc Java Mathematical Graphing System" +} diff --git a/sci-visualization/gcalc/metadata.xml b/sci-visualization/gcalc/metadata.xml new file mode 100644 index 000000000000..7c075e6e4efa --- /dev/null +++ b/sci-visualization/gcalc/metadata.xml @@ -0,0 +1,8 @@ + + + +java +sci + + + -- cgit v1.2.3-65-gdbad