upnplib-1.0.7.ebuild 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. COMMIT="33d17845e34c7c8b897224d0d1c243951398f853"
  5. JAVA_PKG_IUSE="doc source"
  6. inherit java-pkg-2 java-pkg-simple
  7. DESCRIPTION="UPnP port mapping library for Java based on sbbi-upnplib"
  8. HOMEPAGE="https://github.com/RPTools/upnplib"
  9. SRC_URI="https://github.com/RPTools/upnplib/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="LGPL-3+"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. CDEPEND="dev-java/commons-jxpath:0
  14. dev-java/log4j:0"
  15. RDEPEND=">=virtual/jre-1.7
  16. ${CDEPEND}"
  17. DEPEND=">=virtual/jdk-1.7
  18. ${CDEPEND}"
  19. JAVA_GENTOO_CLASSPATH="commons-jxpath,log4j"
  20. JAVA_SRC_DIR="src"
  21. S="${WORKDIR}/${PN}-${COMMIT}"
  22. java_prepare() {
  23. # mx4j has been last-rited.
  24. rm -rv src/net/sbbi/upnp/jmx/ || die
  25. }
  26. src_install() {
  27. java-pkg-simple_src_install
  28. use doc && dodoc README.md docs/html/*.pdf
  29. }