summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/commons-discovery
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
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 <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/commons-discovery')
-rw-r--r--dev-java/commons-discovery/Manifest1
-rw-r--r--dev-java/commons-discovery/commons-discovery-0.4.ebuild52
-rw-r--r--dev-java/commons-discovery/files/0.4-jar-target.patch41
-rw-r--r--dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff51
-rw-r--r--dev-java/commons-discovery/metadata.xml5
5 files changed, 150 insertions, 0 deletions
diff --git a/dev-java/commons-discovery/Manifest b/dev-java/commons-discovery/Manifest
new file mode 100644
index 000000000000..cb4e1258bc82
--- /dev/null
+++ b/dev-java/commons-discovery/Manifest
@@ -0,0 +1 @@
+DIST commons-discovery-0.4-src.tar.gz 78453 SHA256 596242302be4f0502073f5a934c608289bba6221591e7dbea53ce629f67498a3 SHA512 337db71167534785471b540bd89107a16e146bee4094ed746feb68fd1efa7697c0f629f24e63fb760f6c664d98f35d97ee71ca114a26d17ae078bf27459b1705 WHIRLPOOL 7608a0d99955c464b7a62fab615a6ec5b8a782c59c2dacb2440d2a5f6e681ec998583ffa4af51bdbb08a88c4f66bc4ecf736969a67ca7ff53da3eae6b482031e
diff --git a/dev-java/commons-discovery/commons-discovery-0.4.ebuild b/dev-java/commons-discovery/commons-discovery-0.4.ebuild
new file mode 100644
index 000000000000..efa00477e4b5
--- /dev/null
+++ b/dev-java/commons-discovery/commons-discovery-0.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Commons Discovery: Service Discovery component"
+HOMEPAGE="http://commons.apache.org/discovery/"
+SRC_URI="mirror://apache/jakarta/commons/discovery/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc source test"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-java/commons-logging"
+
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ dev-java/ant-core
+ source? ( app-arch/zip )
+ test? ( =dev-java/junit-3* )"
+
+S="${WORKDIR}/${P}-src/"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # https://issues.apache.org/jira/browse/DISCOVERY-10
+ epatch "${FILESDIR}/0.4-jar-target.patch"
+}
+
+src_compile() {
+ java-pkg-2_src_compile \
+ -Dlogger.jar="$(java-pkg_getjar commons-logging commons-logging.jar)"
+}
+
+src_test() {
+ eant test.discovery \
+ -Djunit.jar="$(java-pkg_getjar --build-only junit junit.jar)" \
+ -Dlogger.jar="$(java-pkg_getjar commons-logging commons-logging.jar)"
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ dodoc NOTICE.txt RELEASE-NOTES.txt || die
+
+ use doc && java-pkg_dojavadoc dist/docs/api
+ use source && java-pkg_dosrc src/java/*
+}
diff --git a/dev-java/commons-discovery/files/0.4-jar-target.patch b/dev-java/commons-discovery/files/0.4-jar-target.patch
new file mode 100644
index 000000000000..7cc3c983efe6
--- /dev/null
+++ b/dev-java/commons-discovery/files/0.4-jar-target.patch
@@ -0,0 +1,41 @@
+Index: build.xml
+===================================================================
+--- build.xml (revision 498103)
++++ build.xml (working copy)
+@@ -175,23 +175,26 @@
+ </javadoc>
+ </target>
+
++ <target name="jar" depends="compile"
++ description="Create the jar file">
++ <mkdir dir="${build.home}/classes/META-INF"/>
++ <copy file="LICENSE.txt"
++ tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
++ <copy file="NOTICE.txt"
++ tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
++ <mkdir dir="${dist.home}"/>
++ <jar jarfile="${dist.home}/${component.name}.jar"
++ basedir="${build.home}/classes"
++ manifest="${build.home}/conf/MANIFEST.MF"/>
++ </target>
+
+- <target name="dist" depends="compile,javadoc"
++ <target name="dist" depends="jar,javadoc"
+ description="Create binary distribution">
+ <!-- TODO: top level files like LICENSE and README -->
+- <mkdir dir="${dist.home}"/>
+ <copy file="LICENSE.txt"
+ todir="${dist.home}"/>
+ <copy file="NOTICE.txt"
+ todir="${dist.home}"/>
+- <mkdir dir="${build.home}/classes/META-INF"/>
+- <copy file="LICENSE.txt"
+- tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+- <copy file="NOTICE.txt"
+- tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
+- <jar jarfile="${dist.home}/${component.name}.jar"
+- basedir="${build.home}/classes"
+- manifest="${build.home}/conf/MANIFEST.MF"/>
+ </target>
+
+ <!-- ========== Testing section ======================================== -->
diff --git a/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff b/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff
new file mode 100644
index 000000000000..b55e10f5a0c2
--- /dev/null
+++ b/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff
@@ -0,0 +1,51 @@
+--- build.xml.orig 2005-04-17 16:14:52.000000000 +0200
++++ build.xml 2005-04-17 16:14:57.000000000 +0200
+@@ -14,13 +14,15 @@
+ <property file="../build.properties"/> <!-- Commons local -->
+ <property file="${user.home}/build.properties"/> <!-- User local -->
+
++ <!-- The base directory for compilation targets -->
++ <property name="build.home" value="target"/>
+
+ <!-- ========== External Dependencies ===================================== -->
+
+
+ <!-- The directories corresponding to your necessary dependencies -->
+- <property name="junit.jar" value="../../junit3.7/junit.jar"/>
+- <property name="logger.jar" value="../../jakarta-commons/logging/target/commons-logging.jar"/>
++ <property name="junit.jar" value="${build.home}/lib/junit.jar"/>
++ <property name="logger.jar" value="${build.home}/lib/commons-logging.jar"/>
+
+
+ <!-- ========== Component Declarations ==================================== -->
+@@ -38,8 +40,6 @@
+ <!-- The current version number of this component -->
+ <property name="component.version" value="0.2"/>
+
+- <!-- The base directory for compilation targets -->
+- <property name="build.home" value="target"/>
+
+ <!-- The base directory for component configuration files -->
+ <property name="conf.home" value="src/conf"/>
+@@ -116,6 +116,7 @@
+
+
+ <target name="compile" depends="prepare" description="Compile shareable components">
++
+ <javac srcdir="${source.home}"
+ destdir="${build.home}/classes"
+ debug="${compile.debug}"
+@@ -163,10 +164,10 @@
+ description="Create binary distribution">
+ <!-- TODO: top level files like LICENSE and README -->
+ <mkdir dir="${dist.home}"/>
+- <copy file="../LICENSE"
+- todir="${dist.home}"/>
++ <!--<copy file="LICENSE"
++ todir="${dist.home}"/>-->
+ <mkdir dir="${build.home}/classes/META-INF"/>
+- <copy file="../LICENSE"
++ <copy file="LICENSE.txt"
+ tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+ <jar jarfile="${dist.home}/commons-${component.name}.jar"
+ basedir="${build.home}/classes"
diff --git a/dev-java/commons-discovery/metadata.xml b/dev-java/commons-discovery/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/commons-discovery/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>