Skip to content

Commit

Permalink
dev-java/upnplib: New package, needed by games-strategy/triplea
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.1
  • Loading branch information
chewi committed Oct 11, 2016
1 parent 902f8fe commit 92bb0b3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-java/upnplib/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST upnplib-1.0.7.tar.gz 349943 SHA256 e037070708f31401a579b9f5fa27e51d76ae9e09dbcbdf0f07492f40485eb5b4 SHA512 b44d1f539ebf2ff3860f3d3fd664343148c81437a6e3fb69f2941c6dafcdf9a48a1f682d8ed250848edc656dc38858cf3a630dc026e9e3be340ef5b39fd7b8cd WHIRLPOOL 0daa1991997f853170777dfd6997a1991a196c14c7a882b5a87b7d2519a1ce8b99b52642a79b7bd404e911735851db7fc3e4ff715b3351e2a950efe2be1d1385
11 changes: 11 additions & 0 deletions dev-java/upnplib/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Java</name>
</maintainer>
<upstream>
<remote-id type="github">RPTools/upnplib</remote-id>
</upstream>
</pkgmetadata>
41 changes: 41 additions & 0 deletions dev-java/upnplib/upnplib-1.0.7.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 92bb0b3

Please sign in to comment.