cdegroot-db-0.08-r2.ebuild 856 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. JAVA_PKG_IUSE="doc source"
  5. inherit eutils java-pkg-2 java-ant-2
  6. DESCRIPTION="OO database written in Java"
  7. HOMEPAGE="http://www.cdegroot.com/software/db/"
  8. SRC_URI="http://www.cdegroot.com/software/db/download/com.${P/-/.}.tar.gz"
  9. LICENSE="MIT"
  10. SLOT="1"
  11. KEYWORDS="~amd64 ~ppc64 ~x86"
  12. IUSE="doc source"
  13. DEPEND=">=virtual/jdk-1.4"
  14. RDEPEND=">=virtual/jre-1.4"
  15. S="${WORKDIR}/com.${P/-/.}"
  16. PATCHES=( "${FILESDIR}/${P}-gentoo.patch" )
  17. src_prepare() {
  18. default
  19. rm -rv src/db/test lib/*.jar || die
  20. cp -v "${FILESDIR}/build.xml" "${S}/build.xml" || die
  21. }
  22. EANT_DOC_TARGET="docs"
  23. src_install() {
  24. java-pkg_dojar "dist/${PN}.jar"
  25. dodoc TODO VERSION CHANGES BUGS README
  26. use doc && java-pkg_dojavadoc docs
  27. use source && java-pkg_dosrc src/*
  28. }