summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@gentoo.org>2013-03-16 19:01:03 +0000
committerFabio Erculiani <lxnay@gentoo.org>2013-03-16 19:01:03 +0000
commit159e204022816e82e2fa574a758590baa8a961dd (patch)
tree981b4cf60579c7f1beb57df7cb889667183578f5 /app-emulation/edumips64
parentInitial commit. (diff)
downloadgentoo-2-159e204022816e82e2fa574a758590baa8a961dd.tar.gz
gentoo-2-159e204022816e82e2fa574a758590baa8a961dd.tar.bz2
gentoo-2-159e204022816e82e2fa574a758590baa8a961dd.zip
new ebuild
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key ADC916E5)
Diffstat (limited to 'app-emulation/edumips64')
-rw-r--r--app-emulation/edumips64/ChangeLog10
-rw-r--r--app-emulation/edumips64/edumips64-1.1.ebuild47
-rw-r--r--app-emulation/edumips64/files/edumips64-javadoc-cp.patch11
-rw-r--r--app-emulation/edumips64/metadata.xml9
4 files changed, 77 insertions, 0 deletions
diff --git a/app-emulation/edumips64/ChangeLog b/app-emulation/edumips64/ChangeLog
new file mode 100644
index 000000000000..b9c5c69d9ea9
--- /dev/null
+++ b/app-emulation/edumips64/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-emulation/edumips64
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/edumips64/ChangeLog,v 1.1 2013/03/16 19:01:03 lxnay Exp $
+
+*edumips64-1.1 (16 Mar 2013)
+
+ 16 Mar 2013; Fabio Erculiani <lxnay@gentoo.org>
+ +files/edumips64-javadoc-cp.patch, +edumips64-1.1.ebuild, +metadata.xml:
+ new ebuild
+
diff --git a/app-emulation/edumips64/edumips64-1.1.ebuild b/app-emulation/edumips64/edumips64-1.1.ebuild
new file mode 100644
index 000000000000..a4881fbfc292
--- /dev/null
+++ b/app-emulation/edumips64/edumips64-1.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/edumips64/edumips64-1.1.ebuild,v 1.1 2013/03/16 19:01:03 lxnay Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="A visual and cross-platform MIPS64 CPU Simulator"
+HOMEPAGE="http://www.edumips.org"
+SLOT="0"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/sphinx
+ dev-java/javahelp:0
+ >=virtual/jdk-1.6
+ doc? ( sys-devel/make )
+ test? (
+ dev-java/junit:4
+ dev-java/ant-junit4
+ )"
+RDEPEND=">=virtual/jre-1.6"
+
+EANT_BUILD_TARGET="slim-jar"
+EANT_DOC_TARGET="htmldoc"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-javadoc-cp.patch"
+ java-pkg_jar-from --build-only --into libs javahelp jhall.jar
+ use test && java-pkg_jar-from --build-only --into libs junit-4 junit.jar junit-4.10.jar
+ java-pkg-2_src_prepare
+}
+
+src_install() {
+ java-pkg_newjar ${PN}-${PV}-nodeps.jar ${PN}.jar
+ dodoc RELEASE_NOTES authors
+ use doc && java-pkg_dojavadoc docs/en/output/html
+}
+
+src_test() {
+ ANT_TASKS="ant-junit4" eant test
+}
diff --git a/app-emulation/edumips64/files/edumips64-javadoc-cp.patch b/app-emulation/edumips64/files/edumips64-javadoc-cp.patch
new file mode 100644
index 000000000000..80e389049b5c
--- /dev/null
+++ b/app-emulation/edumips64/files/edumips64-javadoc-cp.patch
@@ -0,0 +1,11 @@
+--- edumips64-1.1.orig/build.xml
++++ edumips64-1.1/build.xml
+@@ -24,7 +24,7 @@
+
+ <!-- Access the environment -->
+ <property environment="env" />
+- <property name="base.classpath" value="libs:libs/junit-4.10.jar:libs/hamcrest-core-1.3.jar:${env.CLASSPATH}" />
++ <property name="base.classpath" value="libs:libs/jhall.jar:libs/junit-4.10.jar:libs/hamcrest-core-1.3.jar:${env.CLASSPATH}" />
+
+ <!-- File names -->
+ <property name="standalone_jar_filename" value="edumips64-${version}.jar" />
diff --git a/app-emulation/edumips64/metadata.xml b/app-emulation/edumips64/metadata.xml
new file mode 100644
index 000000000000..dae69773b2f0
--- /dev/null
+++ b/app-emulation/edumips64/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<maintainer>
+ <email>lxnay@gentoo.org</email>
+ <name>Fabio Erculiani</name>
+</maintainer>
+</pkgmetadata>