summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2009-02-01 09:13:03 +0000
committerSerkan Kaba <serkan@gentoo.org>2009-02-01 09:13:03 +0000
commit6301029f321e6bebfd6d11acbf788f6510af0306 (patch)
tree6cf1f78faa54e6e1dc6b21d1271556d3fa4ee1bc /net-misc/mindterm/mindterm-3.2-r1.ebuild
parentRestored ~ppc and ~ppc64 keywords to KDE-4.2.0 (diff)
downloadgentoo-2-6301029f321e6bebfd6d11acbf788f6510af0306.tar.gz
gentoo-2-6301029f321e6bebfd6d11acbf788f6510af0306.tar.bz2
gentoo-2-6301029f321e6bebfd6d11acbf788f6510af0306.zip
Revbump to add missing classes. Add jzlib to javadoc classpath. Migrate to EAPI 2. Remove old patch.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/mindterm/mindterm-3.2-r1.ebuild')
-rw-r--r--net-misc/mindterm/mindterm-3.2-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/mindterm/mindterm-3.2-r1.ebuild b/net-misc/mindterm/mindterm-3.2-r1.ebuild
new file mode 100644
index 000000000000..0b5029197387
--- /dev/null
+++ b/net-misc/mindterm/mindterm-3.2-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mindterm/mindterm-3.2-r1.ebuild,v 1.1 2009/02/01 09:13:03 serkan Exp $
+
+EAPI="2"
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P=${P/-/_}
+
+DESCRIPTION="A Java SSH Client"
+HOMEPAGE="http://www.appgate.com/products/80_MindTerm/"
+SRC_URI="http://www.appgate.com/products/80_MindTerm/110_MindTerm_Download/${MY_P}-src.zip"
+
+LICENSE="mindterm"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc examples"
+COMMON_DEP="dev-java/jzlib:0"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S=${WORKDIR}/${MY_P}
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+EANT_BUILD_TARGET="mindterm.jar lite"
+EANT_DOC_TARGET="doc"
+EANT_GENTOO_CLASSPATH="jzlib"
+JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ epatch "${FILESDIR}"/${P}-missingclasses.patch
+ java-ant_rewrite-classpath
+ rm -vr com/jcraft || die "Failed to remove bundled jcraft"
+}
+
+# Don't even compile
+RESTRICT="test"
+src_test() {
+ ANT_TASKS="ant-junit ant-nodeps" eant test \
+ -Dgentoo.classpath="$(java-pkg_getjars jzlib,junit):mindterm.jar"
+}
+
+src_install() {
+ java-pkg_dojar *.jar
+
+ java-pkg_dolauncher ${PN} --main com.mindbright.application.MindTerm
+
+ dodoc README.txt RELEASE_NOTES.txt CHANGES || die
+ use doc && java-pkg_dojavadoc javadoc
+ use examples && java-pkg_doexamples "${S}/examples/"
+}