sblim-cim-client-2.2.1.ebuild 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2013 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. DESCRIPTION="A WBEM services client that includes an IETF RFC 2614 compliant SLP client for CIM service discovery"
  7. HOMEPAGE="http://sblim.wiki.sourceforge.net/CimClient"
  8. SRC_URI="mirror://sourceforge/sblim/${PN}2-${PV}-src.zip"
  9. LICENSE="CPL-1.0"
  10. SLOT="2"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE=""
  13. RDEPEND="
  14. >=virtual/jre-1.5"
  15. DEPEND="
  16. >=virtual/jdk-1.5
  17. test? ( dev-java/ant-junit )"
  18. S="${WORKDIR}/${PN}2-${PV}-src"
  19. EANT_BUILD_TARGET="package"
  20. EANT_DOC_TARGET="java-doc"
  21. EANT_TEST_TARGET="unittest"
  22. src_test() {
  23. java-pkg-2_src_test
  24. }
  25. src_install() {
  26. java-pkg_newjar "build/lib/${PN}2-${PV}.jar"
  27. dodoc build/lib/*.properties
  28. dodoc ChangeLog README NEWS
  29. use doc && java-pkg_dojavadoc build/doc
  30. use source && java-pkg_dosrc src/*
  31. }