diff options
Diffstat (limited to 'dev-java/jstun')
-rw-r--r-- | dev-java/jstun/Manifest | 3 | ||||
-rw-r--r-- | dev-java/jstun/jstun-0.7.3.ebuild | 62 | ||||
-rw-r--r-- | dev-java/jstun/metadata.xml | 8 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/jstun/Manifest b/dev-java/jstun/Manifest new file mode 100644 index 000000000000..9469e8f0de32 --- /dev/null +++ b/dev-java/jstun/Manifest @@ -0,0 +1,3 @@ +DIST jstun-0.7.3.src.tar.gz 173666 BLAKE2B d417b95f2adf5f072b35ca5ea50d3c32c60b0ae7d2095b4ffaa79f6dc9817bc730657189da0abf59f6e3bd362ae34c3c3ad9c02e8456e84a33e02c9cab3bfa65 SHA512 03dd54331c79992ef2c387eb78fde8c98b58e3818515bf57beafb6157914fe9295d3ff043ac8aab78490ac2582969c07e1891ddbefaa702c3816ddac061ceb18 +EBUILD jstun-0.7.3.ebuild 1321 BLAKE2B e1367511b25baa145e056836e4eaf5a364645c1fc6b8b4af01ca1c295ff8316b674666d56ac28dcd8be09841501e8a09c4ff296531609a119b8d1c717dec600f SHA512 46ba021dd9caea66a97808171b8d53387d33fd31f91ac998b884571442015874e7d5005bfa2dfcb31144f5a832138a128fa21a3b90bdf0e922147fe0f878349d +MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/jstun/jstun-0.7.3.ebuild b/dev-java/jstun/jstun-0.7.3.ebuild new file mode 100644 index 000000000000..c50d44fcd0f7 --- /dev/null +++ b/dev-java/jstun/jstun-0.7.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java-based STUN implementation" +HOMEPAGE="https://jstun.javawi.de/" +SRC_URI="https://${PN}.javawi.de/${P}.src.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +CDEPEND="dev-java/slf4j-api:0" + +RDEPEND=" + >=virtual/jre-1.5 + ${CDEPEND}" + +DEPEND=" + >=virtual/jdk-1.5 + test? ( dev-java/junit:0 ) + ${CDEPEND}" + +S="${WORKDIR}/STUN" + +# Tests contain no main function; demos contain main function, but contact +# external domains as well as aren't really tests. TODO: A main function needs +# to be written in order to be able to test de.javawi.jstun.AllTests. +RESTRICT="test" + +EANT_BUILD_XML="build/build.xml" + +java_prepare() { + rm -v *.jar build/*.jar || die + + java-pkg_jar-from slf4j-api +} + +EANT_TEST_GENTOO_CLASSPATH="junit" +EANT_TEST_TARGET="jar-test" +JAVA_ANT_REWRITE_CLASSPATH="true" + +src_test() { + local cp="$(java-pkg_getjars --build-only junit)" + + java-pkg-2_src_test + + java -cp target/${PN}-test-${PV}.jar:${cp} de.javawi.jstun.AllTests \ + || die "Tests failed." +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + + use doc && java-pkg_dojavadoc target/javadoc + use source && java-pkg_dosrc src +} diff --git a/dev-java/jstun/metadata.xml b/dev-java/jstun/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/jstun/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> +</maintainer> +</pkgmetadata> |