javacsv-2.1.ebuild 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="doc source test"
  5. inherit java-pkg-2 java-ant-2
  6. RESTRICT="test"
  7. DESCRIPTION="Java library for reading and writing CSV and plain delimited text files"
  8. HOMEPAGE="http://www.csvreader.com/java_csv.php"
  9. SRC_URI="mirror://sourceforge/${PN}/${P/-/}.zip"
  10. LICENSE="LGPL-2.1"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE=""
  14. DEPEND=">=virtual/jdk-1.6"
  15. RDEPEND=">=virtual/jre-1.6"
  16. S="${WORKDIR}"
  17. java_prepare() {
  18. rm -rfv doc "${PN}".jar || die "error cleaning up"
  19. mv -v src/AllTests.java . || die "error moving tests"
  20. }
  21. EANT_BUILD_TARGET="dist"
  22. EANT_DOC_TARGET=""
  23. src_compile() {
  24. java-pkg-2_src_compile
  25. use doc && eant -f "${S}"/javadoc.xml
  26. }
  27. src_install() {
  28. java-pkg_dojar ${PN}.jar
  29. use doc && java-pkg_dojavadoc doc
  30. use source && java-pkg_dosrc src
  31. }