1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="source doc examples"
8 inherit eutils java-pkg-2 java-ant-2
10 DESCRIPTION="Java implementation of the SSH protocol"
11 HOMEPAGE="https://sourceforge.net/projects/sshtools/ http://www.sshtools.com/"
12 SRC_URI="mirror://sourceforge/sshtools/${P}-src.tar.gz"
16 KEYWORDS="~amd64 ~x86"
19 CDEPEND="dev-java/commons-logging:0
29 JAVA_ANT_REWRITE_CLASSPATH="yes"
30 EANT_BUILD_TARGET="build"
31 EANT_GENTOO_CLASSPATH="commons-logging,ant-core"
34 epatch "${FILESDIR}/${PV}-no-versioned-jars.patch"
35 epatch "${FILESDIR}/${PV}-extras.patch"
39 java-pkg_dojar "${S}"/dist/lib/*.jar
41 use doc && java-pkg_dojavadoc docs/
42 use source && java-pkg_dosrc "${S}"/src/com
43 use examples && java-pkg_doexamples "${S}"/examples/