jconfig-2.8-r3.ebuild 881 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. JAVA_PKG_IUSE="doc source"
  4. inherit java-pkg-2 java-ant-2
  5. DESCRIPTION="jConfig is an extremely helpful utility, providing a simple API for the management of properties"
  6. SRC_URI="mirror://sourceforge/${PN}/${PN}-src-v${PV}.tar.gz"
  7. HOMEPAGE="http://www.jconfig.org/"
  8. LICENSE="BSD"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. COMMON_DEP="java-virtuals/jmx"
  13. RDEPEND=">=virtual/jre-1.4
  14. ${COMMON_DEP}"
  15. DEPEND=">=virtual/jdk-1.4
  16. ${COMMON_DEP}"
  17. S="${WORKDIR}/${PN/c/C}"
  18. src_unpack() {
  19. unpack ${A}
  20. cd "${S}"
  21. rm -v dist/*.jar || die
  22. rm -v lib/*.jar || die
  23. java-pkg_jar-from --into lib jmx
  24. }
  25. JAVA_ANT_ENCODING="ISO-8859-1"
  26. src_install() {
  27. java-pkg_dojar dist/jconfig.jar
  28. dodoc README || die
  29. use doc && java-pkg_dojavadoc javadoc
  30. use source && java-pkg_dosrc src/*
  31. }