1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="FTP client library written in Java"
11 SRC_URI="https://www.enterprisedt.com/products/edtftpj/download/${P}.zip"
12 HOMEPAGE="https://enterprisedt.com/products/edtftpnet"
18 DEPEND=">=virtual/jdk-1.7
21 RDEPEND=">=virtual/jre-1.7"
23 EANT_DOC_TARGET="javadocs"
24 EANT_BUILD_XML="src/build.xml"
29 # Tests are geared for Windows and sit in the main sources.
30 rm -rv src/com/enterprisedt/net/ftp/test || die
32 # Delete Windows .bat files.
33 find -name "*.bat" -delete || die
35 # Adjust doc URLs to match our layout.
36 find examples -name "*.html" -exec sed -i 's:/doc/manual/:/manual/:g' {} + || die
40 java-pkg_dojar lib/${PN}.jar
42 use doc && java-pkg_dojavadoc build/doc/api
43 use source && java-pkg_dosrc src/*
46 use doc && dodoc -r doc/manual
47 use examples && dodoc -r examples