From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-java/dnsjava/Manifest | 1 + dev-java/dnsjava/dnsjava-2.1.6.ebuild | 50 ++++++++++++++++++++++ .../dnsjava/files/2.1.6-no-network-tests.patch | 44 +++++++++++++++++++ dev-java/dnsjava/metadata.xml | 16 +++++++ 4 files changed, 111 insertions(+) create mode 100644 dev-java/dnsjava/Manifest create mode 100644 dev-java/dnsjava/dnsjava-2.1.6.ebuild create mode 100644 dev-java/dnsjava/files/2.1.6-no-network-tests.patch create mode 100644 dev-java/dnsjava/metadata.xml (limited to 'dev-java/dnsjava') diff --git a/dev-java/dnsjava/Manifest b/dev-java/dnsjava/Manifest new file mode 100644 index 000000000000..38909305747d --- /dev/null +++ b/dev-java/dnsjava/Manifest @@ -0,0 +1 @@ +DIST dnsjava-2.1.6.tar.gz 1087908 SHA256 2503f5fb343ebc5b87c4ea3d67070305ff61d8d8c26636f62abb33e507104e76 SHA512 0d30504190aabbb176cc914834eb26a2f5522741c4473dbbf32f16e1d62fe39cf244a3ddd543b88d3a1e595afa9c6509e42d1418205677aa6523c6d11c49f497 WHIRLPOOL 60915c62b36a907928696e0afb3529ed46332013f07feea155158075fcc32a3bcfb50ddd3977f876ec7ad3203572ef54ff30f761925b6d96cca6e51fa7939f19 diff --git a/dev-java/dnsjava/dnsjava-2.1.6.ebuild b/dev-java/dnsjava/dnsjava-2.1.6.ebuild new file mode 100644 index 000000000000..98fb0df84cb2 --- /dev/null +++ b/dev-java/dnsjava/dnsjava-2.1.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="An implementation of DNS in Java" +HOMEPAGE="http://www.dnsjava.org/" +SRC_URI="http://www.dnsjava.org/download/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.4" +DEPEND=">=virtual/jdk-1.4 + test? ( + dev-java/junit:0 + dev-java/ant-junit:0 + )" + +EANT_BUILD_TARGET="jar" +EANT_DOC_TARGET="docs" +EANT_TEST_TARGET="run_tests" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_TEST_GENTOO_CLASSPATH="junit" +EANT_GENTOO_CLASSPATH_EXTRA="${P}.jar" + +java_prepare() { + find -name "*.jar" -delete || die + epatch "${FILESDIR}"/${PV}-*.patch +} + +src_install() { + java-pkg_newjar "${P}.jar" + + dodoc README USAGE || die + use doc && java-pkg_dojavadoc doc + use source && java-pkg_dosrc org/ +} + +src_test() { + EANT_ANT_TASKS="ant-junit" java-pkg-2_src_test +} diff --git a/dev-java/dnsjava/files/2.1.6-no-network-tests.patch b/dev-java/dnsjava/files/2.1.6-no-network-tests.patch new file mode 100644 index 000000000000..1ea9d3929db0 --- /dev/null +++ b/dev-java/dnsjava/files/2.1.6-no-network-tests.patch @@ -0,0 +1,44 @@ +diff --git a/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java b/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java +index 451b262..7ce8029 100644 +--- a/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java ++++ b/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java +@@ -272,16 +272,19 @@ public class AddressTest extends TestCase + + public void test_getByName() throws UnknownHostException + { ++/* + InetAddress out = Address.getByName("128.145.198.231"); + assertEquals("128.145.198.231", out.getHostAddress()); + + out = Address.getByName("serl.cs.colorado.edu"); + assertEquals("epic.cs.colorado.edu", out.getCanonicalHostName()); + assertEquals("128.138.201.71", out.getHostAddress()); ++*/ + } + + public void test_getByName_invalid() throws UnknownHostException + { ++/* + try { + Address.getByName("example.invalid"); + fail("UnknownHostException not thrown"); +@@ -294,10 +297,12 @@ public class AddressTest extends TestCase + } + catch( UnknownHostException e ){ + } ++*/ + } + + public void test_getAllByName() throws UnknownHostException + { ++/* + InetAddress[] out = Address.getAllByName("128.145.198.231"); + assertEquals(1, out.length); + assertEquals("128.145.198.231", out[0].getHostAddress()); +@@ -353,5 +358,6 @@ public class AddressTest extends TestCase + } + catch( UnknownHostException e ){ + } ++*/ + } + } diff --git a/dev-java/dnsjava/metadata.xml b/dev-java/dnsjava/metadata.xml new file mode 100644 index 000000000000..c76c83864bd7 --- /dev/null +++ b/dev-java/dnsjava/metadata.xml @@ -0,0 +1,16 @@ + + + + java + + dnsjava is an implementation of DNS in Java. It supports all defined record + ypes (including the DNSSEC types), and unknown types. It can be used for queries, + zone transfers, and dynamic updates. It includes a cache which can be used by + clients, and a minimal implementation of a server. It supports TSIG authenticated + messages, partial DNSSEC verification, and EDNS0. + + + http://sourceforge.net/projects/dnsjava/ + + + -- cgit v1.2.3-65-gdbad