summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-05-19 13:21:41 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-05-19 13:21:41 +0000
commitad99d986394f0db6edce4f87f56f9f9a73164705 (patch)
treec5c1c425af6e1836f93bf0bf1b65133554ef0a48 /sci-visualization/gcalc
parentKeyword mips (diff)
downloadgentoo-2-ad99d986394f0db6edce4f87f56f9f9a73164705.tar.gz
gentoo-2-ad99d986394f0db6edce4f87f56f9f9a73164705.tar.bz2
gentoo-2-ad99d986394f0db6edce4f87f56f9f9a73164705.zip
Import gcalc from java-overlay, initial ebuild by Serkan Kaba <serkan@gentoo.org>. #90893
Move to sci-visualization as suggested by Kacper Kowalik <xarthisius@gentoo.org>. Bump EAPI, and some cleanup. (Portage version: 2.1.10.58/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization/gcalc')
-rw-r--r--sci-visualization/gcalc/ChangeLog14
-rw-r--r--sci-visualization/gcalc/gcalc-3.1_rc1.ebuild42
-rw-r--r--sci-visualization/gcalc/metadata.xml8
3 files changed, 64 insertions, 0 deletions
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 <sera@gentoo.org> +gcalc-3.1_rc1.ebuild,
+ +metadata.xml:
+ Import gcalc from java-overlay, initial ebuild by Serkan Kaba
+ <serkan@gentoo.org>. #90893
+ Move to sci-visualization as suggested by Kacper Kowalik
+ <xarthisius@gentoo.org>.
+ 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<herd>sci</herd>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>