From 92bb0b3208ea521591c61d2ad6af2a33c707ebae Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 11 Oct 2016 23:18:39 +0100 Subject: dev-java/upnplib: New package, needed by games-strategy/triplea Package-Manager: portage-2.3.1 --- dev-java/upnplib/Manifest | 1 + dev-java/upnplib/metadata.xml | 11 ++++++++++ dev-java/upnplib/upnplib-1.0.7.ebuild | 41 +++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-java/upnplib/Manifest create mode 100644 dev-java/upnplib/metadata.xml create mode 100644 dev-java/upnplib/upnplib-1.0.7.ebuild diff --git a/dev-java/upnplib/Manifest b/dev-java/upnplib/Manifest new file mode 100644 index 000000000000..27b189acf55c --- /dev/null +++ b/dev-java/upnplib/Manifest @@ -0,0 +1 @@ +DIST upnplib-1.0.7.tar.gz 349943 SHA256 e037070708f31401a579b9f5fa27e51d76ae9e09dbcbdf0f07492f40485eb5b4 SHA512 b44d1f539ebf2ff3860f3d3fd664343148c81437a6e3fb69f2941c6dafcdf9a48a1f682d8ed250848edc656dc38858cf3a630dc026e9e3be340ef5b39fd7b8cd WHIRLPOOL 0daa1991997f853170777dfd6997a1991a196c14c7a882b5a87b7d2519a1ce8b99b52642a79b7bd404e911735851db7fc3e4ff715b3351e2a950efe2be1d1385 diff --git a/dev-java/upnplib/metadata.xml b/dev-java/upnplib/metadata.xml new file mode 100644 index 000000000000..1dd6ecadb95d --- /dev/null +++ b/dev-java/upnplib/metadata.xml @@ -0,0 +1,11 @@ + + + + + java@gentoo.org + Java + + + RPTools/upnplib + + diff --git a/dev-java/upnplib/upnplib-1.0.7.ebuild b/dev-java/upnplib/upnplib-1.0.7.ebuild new file mode 100644 index 000000000000..634f001db06a --- /dev/null +++ b/dev-java/upnplib/upnplib-1.0.7.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +COMMIT="33d17845e34c7c8b897224d0d1c243951398f853" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="UPnP port mapping library for Java based on sbbi-upnplib" +HOMEPAGE="https://github.com/RPTools/upnplib" +SRC_URI="https://github.com/RPTools/upnplib/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/commons-jxpath:0 + dev-java/log4j:0" + +RDEPEND=">=virtual/jre-1.7 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.7 + ${CDEPEND}" + +JAVA_GENTOO_CLASSPATH="commons-jxpath,log4j" +JAVA_SRC_DIR="src" + +S="${WORKDIR}/${PN}-${COMMIT}" + +java_prepare() { + # mx4j has been last-rited. + rm -rv src/net/sbbi/upnp/jmx/ || die +} + +src_install() { + java-pkg-simple_src_install + use doc && dodoc README.md docs/html/*.pdf +} -- cgit v1.2.3-65-gdbad