diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jamon | |
download | gentoo-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/jamon')
-rw-r--r-- | dev-java/jamon/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jamon/files/build-1.0.xml | 54 | ||||
-rw-r--r-- | dev-java/jamon/files/jamon-1.01-java1.5.patch | 41 | ||||
-rw-r--r-- | dev-java/jamon/jamon-1.01-r3.ebuild | 52 | ||||
-rw-r--r-- | dev-java/jamon/metadata.xml | 12 |
5 files changed, 160 insertions, 0 deletions
diff --git a/dev-java/jamon/Manifest b/dev-java/jamon/Manifest new file mode 100644 index 000000000000..c443308a737c --- /dev/null +++ b/dev-java/jamon/Manifest @@ -0,0 +1 @@ +DIST JAMonAll_103005.zip 143825 SHA256 23eceb23264c4643846372c6454f9406d2435aeaf840a183033d9fa50176c9ab SHA512 bb4b7fbd108a0612ceb59486c985f32ffa4c9dd158fe6d6c307357d3ab76c53dfa87ed691295a9de9172744e46c6a01c2ed976d3959834e1665fbbc36dcafb97 WHIRLPOOL 53aa936d313f32e052609173dd94de9bc8b659babcca8af71f4729e646989fb44d25a49f442db792dcb1bde762c40f3b46db69d9c075f659125d233dfdf1e015 diff --git a/dev-java/jamon/files/build-1.0.xml b/dev-java/jamon/files/build-1.0.xml new file mode 100644 index 000000000000..4153ebfa4868 --- /dev/null +++ b/dev-java/jamon/files/build-1.0.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- + @author: Saleem Abdulrasool <compnerd@gentoo.org> + @date: 5/9/2005 + @revision: 1.0_alpha + + @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name} +--> + +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Gentoo Portage"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc destdir="${dist}/doc/api"> + <fileset dir="${src}"/> + </javadoc> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/jamon/files/jamon-1.01-java1.5.patch b/dev-java/jamon/files/jamon-1.01-java1.5.patch new file mode 100644 index 000000000000..e7ad896f1a11 --- /dev/null +++ b/dev-java/jamon/files/jamon-1.01-java1.5.patch @@ -0,0 +1,41 @@ +diff -ru Code/com/jamonapi/utils/CommandIterator.java Code-patched/com/jamonapi/utils/CommandIterator.java +--- Code/com/jamonapi/utils/CommandIterator.java 2004-01-29 22:42:34.000000000 -0500 ++++ Code-patched/com/jamonapi/utils/CommandIterator.java 2005-11-04 08:52:30.000000000 -0500 +@@ -38,8 +38,8 @@ +
+
+ /** Iterate through an Enumeration passing the Command object each element in the Collection **/
+- public static void iterate(Enumeration enum, Command command)throws Exception {
+- iterate(new EnumIterator(enum) , command);
++ public static void iterate(Enumeration my_enum, Command command)throws Exception {
++ iterate(new EnumIterator(my_enum) , command);
+ }
+
+ /** Iterate passing each Command each Object that is being iterated **/
+diff -ru Code/com/jamonapi/utils/EnumIterator.java Code-patched/com/jamonapi/utils/EnumIterator.java +--- Code/com/jamonapi/utils/EnumIterator.java 2004-01-29 22:42:34.000000000 -0500 ++++ Code-patched/com/jamonapi/utils/EnumIterator.java 2005-11-04 08:52:10.000000000 -0500 +@@ -6,18 +6,18 @@ +
+
+ public class EnumIterator extends java.lang.Object implements java.util.Iterator {
+- Enumeration enum;
++ Enumeration my_enum;
+
+- public EnumIterator(Enumeration enum) {
+- this.enum=enum;
++ public EnumIterator(Enumeration my_enum) {
++ this.my_enum=my_enum;
+ }
+
+ public boolean hasNext() {
+- return enum.hasMoreElements();
++ return my_enum.hasMoreElements();
+ }
+
+ public Object next() {
+- return enum.nextElement();
++ return my_enum.nextElement();
+ }
+
+ public void remove() {
diff --git a/dev-java/jamon/jamon-1.01-r3.ebuild b/dev-java/jamon/jamon-1.01-r3.ebuild new file mode 100644 index 000000000000..7af9c03b4c44 --- /dev/null +++ b/dev-java/jamon/jamon-1.01-r3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc" + +inherit java-pkg-2 java-ant-2 eutils + +MY_PN="JAMon" +MY_PV="103005" + +DESCRIPTION="Java API to monitor production applications" +HOMEPAGE="http://www.javaperformancetuning.com/tools/jamon/index.shtml" +SRC_URI="mirror://sourceforge/jamonapi/${MY_PN}All_${MY_PV}.zip" + +LICENSE="BSD" +SLOT="1" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=virtual/jre-1.4 + java-virtuals/servlet-api:2.3" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${RDEPEND}" + +S="${WORKDIR}" + +java_prepare() { + rm ${MY_PN}.{j,w}ar || die + + epatch "${FILESDIR}"/${P}-java1.5.patch + + mv Code src || die + + # No provided ant script! Bad upstream, bad! + cp "${FILESDIR}"/build-1.0.xml build.xml || die +} + +src_compile() { + eant jar $(use_doc) \ + -Dproject.name=${PN} \ + -Dclasspath=$(java-pkg_getjars servlet-api-2.3) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + use doc && java-pkg_dojavadoc dist/doc/api +} diff --git a/dev-java/jamon/metadata.xml b/dev-java/jamon/metadata.xml new file mode 100644 index 000000000000..7ab7fd707165 --- /dev/null +++ b/dev-java/jamon/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription> + A free, simple, high performance, thread safe, Java API that allows + developers to easily monitor production applications + </longdescription> + <upstream> + <remote-id type="sourceforge">jamonapi</remote-id> + </upstream> +</pkgmetadata> |