summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2010-03-05 17:50:54 +0000
committerSerkan Kaba <serkan@gentoo.org>2010-03-05 17:50:54 +0000
commit95238b787ad9176c92febdb945ee2bbed17bde3d (patch)
tree68576c5dc52aa1432dc5df0eb16728cf3606aafb /dev-vcs/statcvs
parentPatch by Nikos Chantziaras to pull in emul-linux-x86-sdl on amd64 multilib sy... (diff)
downloadgentoo-2-95238b787ad9176c92febdb945ee2bbed17bde3d.tar.gz
gentoo-2-95238b787ad9176c92febdb945ee2bbed17bde3d.tar.bz2
gentoo-2-95238b787ad9176c92febdb945ee2bbed17bde3d.zip
Move to dev-vcs
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-vcs/statcvs')
-rw-r--r--dev-vcs/statcvs/ChangeLog40
-rw-r--r--dev-vcs/statcvs/files/statcvs-0.4.0-build.xml.patch16
-rw-r--r--dev-vcs/statcvs/files/statcvs-0.4.0-external-jtreemap.patch40
-rw-r--r--dev-vcs/statcvs/files/statcvs-0.4.0-r1-build.xml.patch24
-rw-r--r--dev-vcs/statcvs/files/statcvs-0.5.0-build.xml.patch24
-rw-r--r--dev-vcs/statcvs/metadata.xml8
-rw-r--r--dev-vcs/statcvs/statcvs-0.4.0-r1.ebuild71
-rw-r--r--dev-vcs/statcvs/statcvs-0.4.0.ebuild69
-rw-r--r--dev-vcs/statcvs/statcvs-0.5.0.ebuild68
9 files changed, 360 insertions, 0 deletions
diff --git a/dev-vcs/statcvs/ChangeLog b/dev-vcs/statcvs/ChangeLog
new file mode 100644
index 000000000000..56f0d6e78ec8
--- /dev/null
+++ b/dev-vcs/statcvs/ChangeLog
@@ -0,0 +1,40 @@
+# ChangeLog for dev-vcs/statcvs
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/statcvs/ChangeLog,v 1.1 2010/03/05 17:50:54 serkan Exp $
+
+ 05 Mar 2010; Serkan Kaba <serkan@gentoo.org> +statcvs-0.4.0.ebuild,
+ +statcvs-0.4.0-r1.ebuild, +files/statcvs-0.4.0-build.xml.patch,
+ +files/statcvs-0.4.0-external-jtreemap.patch,
+ +files/statcvs-0.4.0-r1-build.xml.patch, +statcvs-0.5.0.ebuild,
+ +files/statcvs-0.5.0-build.xml.patch, +metadata.xml:
+ Move to dev-vcs
+
+ 11 Feb 2010; Christian Faulhammer <fauli@gentoo.org> statcvs-0.5.0.ebuild:
+ stable x86, bug 275182
+
+ 15 Jan 2010; Christian Faulhammer <fauli@gentoo.org> statcvs-0.5.0.ebuild:
+ Transfer Prefix keywords
+
+*statcvs-0.5.0 (11 May 2009)
+
+ 11 May 2009; Serkan Kaba <serkan@gentoo.org> +statcvs-0.5.0.ebuild,
+ +files/statcvs-0.5.0-build.xml.patch:
+ Version bump.
+
+*statcvs-0.4.0-r1 (27 Jan 2009)
+
+ 27 Jan 2009; Serkan Kaba <serkan@gentoo.org>
+ +files/statcvs-0.4.0-r1-build.xml.patch, +statcvs-0.4.0-r1.ebuild:
+ Revbump to add missing ant-core dependency.
+
+ 05 Jan 2009; Markus Meier <maekke@gentoo.org> statcvs-0.4.0.ebuild:
+ amd64/x86 stable, bug #253359
+
+*statcvs-0.4.0 (03 Oct 2008)
+
+ 03 Oct 2008; Serkan Kaba <serkan@gentoo.org>
+ +files/statcvs-0.4.0-build.xml.patch,
+ +files/statcvs-0.4.0-external-jtreemap.patch, +metadata.xml,
+ +statcvs-0.4.0.ebuild:
+ Initial version. Fixes bug #156848.
+
diff --git a/dev-vcs/statcvs/files/statcvs-0.4.0-build.xml.patch b/dev-vcs/statcvs/files/statcvs-0.4.0-build.xml.patch
new file mode 100644
index 000000000000..66b8d291dcfc
--- /dev/null
+++ b/dev-vcs/statcvs/files/statcvs-0.4.0-build.xml.patch
@@ -0,0 +1,16 @@
+diff -Nur statcvs-0.4.0/build.xml statcvs-0.4.0_patched/build.xml
+--- statcvs-0.4.0/build.xml 2008-04-21 18:33:32.000000000 +0300
++++ statcvs-0.4.0_patched/build.xml 2008-09-19 22:22:32.000000000 +0300
+@@ -148,11 +148,8 @@
+ </classpath>
+ </java>
+ </target>
+- <target name="jar" depends="test">
++ <target name="jar">
+ <!-- Creates an executable jar file for the project -->
+- <unjar src="${lib}/${jfreechart.jar}" dest="${build}" />
+- <unjar src="${lib}/${jcommon.jar}" dest="${build}" />
+- <unjar src="${lib}/jdom.jar" dest="${build}" />
+ <mkdir dir="${dist}" />
+ <jar jarfile="${dist}/${project.jar}" basedir="${build}">
+ <manifest>
diff --git a/dev-vcs/statcvs/files/statcvs-0.4.0-external-jtreemap.patch b/dev-vcs/statcvs/files/statcvs-0.4.0-external-jtreemap.patch
new file mode 100644
index 000000000000..cd0c5ed773b6
--- /dev/null
+++ b/dev-vcs/statcvs/files/statcvs-0.4.0-external-jtreemap.patch
@@ -0,0 +1,40 @@
+diff -Nur statcvs-0.4.0/src/net/sf/statcvs/output/RepoMapPageMaker.java statcvs-0.4.0_patched/src/net/sf/statcvs/output/RepoMapPageMaker.java
+--- statcvs-0.4.0/src/net/sf/statcvs/output/RepoMapPageMaker.java 2008-04-14 21:35:00.000000000 +0300
++++ statcvs-0.4.0_patched/src/net/sf/statcvs/output/RepoMapPageMaker.java 2008-09-20 20:46:05.000000000 +0300
+@@ -20,7 +20,8 @@
+ package net.sf.statcvs.output;
+
+ import java.io.BufferedWriter;
+-import java.io.File;
++import java.io.File;
++import java.io.FileInputStream;
+ import java.io.FileWriter;
+ import java.io.IOException;
+ import java.io.InputStream;
+@@ -92,7 +93,7 @@
+ }
+
+ private String getApplet() {
+- return "<applet archive=\"./" + Messages.getString("JTREEMAP_JAR") + "\" code=\"net.sf.jtreemap.swing.example.JTreeMapAppletExample\""
++ return "<applet archive=\"./jtreemap.jar\" code=\"net.sf.jtreemap.swing.example.JTreeMapAppletExample\""
+ + " width=\"940\" height=\"600\"><param name=\"dataFile\" value=\"" + REPO_FILE + "\"/>" + "<param name=\"viewTree\" value=\"true\"/>"
+ + "<param name=\"showWeight\" value=\"true\"/>" + "<param name=\"valuePrefix\" value=\"Change:\"/>"
+ + "<param name=\"weightPrefix\" value=\"LOC:\"/>" + "<param name=\"dataFileType\" value=\"xml\"/>"
+@@ -102,7 +103,7 @@
+ private void buildXmlForJTreeMap() {
+ BufferedWriter out = null;
+ try {
+- copyJar(Messages.getString("JTREEMAP_JAR"));
++ copyJar("jtreemap.jar");
+ out = new BufferedWriter(new FileWriter(ConfigurationOptions.getOutputDir() + REPO_FILE));
+ out.write("<?xml version='1.0' encoding='ISO-8859-1'?>\n");
+ // out.append("<!DOCTYPE root SYSTEM \"TreeMap.dtd\" >\n");
+@@ -129,7 +130,7 @@
+ private void copyJar(final String jtreemapJar) throws IOException {
+ InputStream stream = null;
+ try {
+- stream = RepoMapPageMaker.class.getResourceAsStream(WEB_FILE_PATH + jtreemapJar);
++ stream = new FileInputStream("/usr/share/jtreemap/lib/" + jtreemapJar);
+ if (stream != null) {
+ FileUtils.copyFile(stream, new File(ConfigurationOptions.getOutputDir() + jtreemapJar));
+ } else {
diff --git a/dev-vcs/statcvs/files/statcvs-0.4.0-r1-build.xml.patch b/dev-vcs/statcvs/files/statcvs-0.4.0-r1-build.xml.patch
new file mode 100644
index 000000000000..4053feea04aa
--- /dev/null
+++ b/dev-vcs/statcvs/files/statcvs-0.4.0-r1-build.xml.patch
@@ -0,0 +1,24 @@
+diff -Nur statcvs-0.4.0/build.xml statcvs-0.4.0_patched/build.xml
+--- statcvs-0.4.0/build.xml 2008-04-21 18:33:32.000000000 +0300
++++ statcvs-0.4.0_patched/build.xml 2009-01-28 00:21:06.000000000 +0200
+@@ -19,7 +19,6 @@
+ <property name="cvs.log" value="cvs.log" />
+ <property environment="env" />
+ <path id="project.class.path">
+- <pathelement path="${java.class.path}" />
+ <fileset dir="${lib}">
+ <include name="**/*.jar" />
+ </fileset>
+@@ -148,11 +147,8 @@
+ </classpath>
+ </java>
+ </target>
+- <target name="jar" depends="test">
++ <target name="jar">
+ <!-- Creates an executable jar file for the project -->
+- <unjar src="${lib}/${jfreechart.jar}" dest="${build}" />
+- <unjar src="${lib}/${jcommon.jar}" dest="${build}" />
+- <unjar src="${lib}/jdom.jar" dest="${build}" />
+ <mkdir dir="${dist}" />
+ <jar jarfile="${dist}/${project.jar}" basedir="${build}">
+ <manifest>
diff --git a/dev-vcs/statcvs/files/statcvs-0.5.0-build.xml.patch b/dev-vcs/statcvs/files/statcvs-0.5.0-build.xml.patch
new file mode 100644
index 000000000000..c049cdeda9d8
--- /dev/null
+++ b/dev-vcs/statcvs/files/statcvs-0.5.0-build.xml.patch
@@ -0,0 +1,24 @@
+diff -Nur statcvs-0.5.0/build.xml statcvs-0.5.0_patched/build.xml
+--- statcvs-0.5.0/build.xml 2009-05-09 21:33:32.000000000 +0300
++++ statcvs-0.5.0_patched/build.xml 2009-05-11 22:29:19.000000000 +0300
+@@ -19,7 +19,6 @@
+ <property name="cvs.log" value="cvs.log" />
+ <property environment="env" />
+ <path id="project.class.path">
+- <pathelement path="${java.class.path}" />
+ <fileset dir="${lib}">
+ <include name="**/*.jar" />
+ </fileset>
+@@ -149,11 +148,8 @@
+ </java>
+ </target>
+ <target name="release" depends="clean,jar,javadoc,zip,zip.source"/>
+- <target name="jar" depends="test">
++ <target name="jar">
+ <!-- Creates an executable jar file for the project -->
+- <unjar src="${lib}/${jfreechart.jar}" dest="${build}" />
+- <unjar src="${lib}/${jcommon.jar}" dest="${build}" />
+- <unjar src="${lib}/jdom.jar" dest="${build}" />
+ <mkdir dir="${dist}" />
+ <jar jarfile="${dist}/${project.jar}" basedir="${build}">
+ <manifest>
diff --git a/dev-vcs/statcvs/metadata.xml b/dev-vcs/statcvs/metadata.xml
new file mode 100644
index 000000000000..407583277d87
--- /dev/null
+++ b/dev-vcs/statcvs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<maintainer>
+ <email>java@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-vcs/statcvs/statcvs-0.4.0-r1.ebuild b/dev-vcs/statcvs/statcvs-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..4b900b12831b
--- /dev/null
+++ b/dev-vcs/statcvs/statcvs-0.4.0-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/statcvs/statcvs-0.4.0-r1.ebuild,v 1.1 2010/03/05 17:50:54 serkan Exp $
+
+EAPI=1
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="StatCVS generates HTML reports from CVS repository logs."
+HOMEPAGE="http://statcvs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-java/jcommon:1.0
+ dev-java/jfreechart:1.0
+ dev-java/jdom:1.0
+ dev-java/ant-core:0"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ test? ( dev-java/ant-junit:0 )
+ ${COMMON_DEPEND}"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-util/cvs
+ dev-java/jtreemap:0
+ ${COMMON_DEPEND}"
+
+EANT_BUILD_TARGET="compile copyfiles jar"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}" || die
+ epatch "${FILESDIR}"/${PF}-build.xml.patch
+ epatch "${FILESDIR}"/${P}-external-jtreemap.patch
+
+ einfo "Removing bundled jars."
+ find . -name "*.jar" -print -delete
+
+ cd "${S}"/lib || die
+ java-pkg_jar-from jcommon-1.0 jcommon.jar jcommon-1.0.6.jar
+ java-pkg_jar-from jfreechart-1.0 jfreechart.jar jfreechart-1.0.3.jar
+ java-pkg_jar-from jdom-1.0 jdom.jar
+ java-pkg_jar-from ant-core ant.jar
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher ${PN} --main net.sf.statcvs.Main
+
+ use doc && java-pkg_dohtml -r doc/*
+ use source && java-pkg_dosrc src/net
+}
+
+src_test() {
+ java-pkg_jar-from --into lib junit
+ ANT_TASKS="ant-junit" eant test
+}
+
+pkg_postinst() {
+ elog "For instructions on how to use StatCVS see"
+ elog "http://statcvs.sourceforge.net/manual/"
+ elog "You need to regenerate statistics"
+ elog "if you update dev-java/jtreemap"
+}
diff --git a/dev-vcs/statcvs/statcvs-0.4.0.ebuild b/dev-vcs/statcvs/statcvs-0.4.0.ebuild
new file mode 100644
index 000000000000..86c4889b4f96
--- /dev/null
+++ b/dev-vcs/statcvs/statcvs-0.4.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/statcvs/statcvs-0.4.0.ebuild,v 1.1 2010/03/05 17:50:54 serkan Exp $
+
+EAPI=1
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="StatCVS generates HTML reports from CVS repository logs."
+HOMEPAGE="http://statcvs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-java/jcommon:1.0
+ dev-java/jfreechart:1.0
+ dev-java/jdom:1.0"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ test? ( dev-java/ant-junit:0 )
+ ${COMMON_DEPEND}"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-util/cvs
+ dev-java/jtreemap:0
+ ${COMMON_DEPEND}"
+
+EANT_BUILD_TARGET="compile copyfiles jar"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}" || die
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+ epatch "${FILESDIR}"/${P}-external-jtreemap.patch
+
+ einfo "Removing bundled jars."
+ find . -name "*.jar" -print -delete
+
+ cd "${S}"/lib || die
+ java-pkg_jar-from jcommon-1.0 jcommon.jar jcommon-1.0.6.jar
+ java-pkg_jar-from jfreechart-1.0 jfreechart.jar jfreechart-1.0.3.jar
+ java-pkg_jar-from jdom-1.0 jdom.jar
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher ${PN} --main net.sf.statcvs.Main
+
+ use doc && java-pkg_dohtml -r doc/*
+ use source && java-pkg_dosrc src/net
+}
+
+src_test() {
+ java-pkg_jar-from --into lib junit
+ ANT_TASKS="ant-junit" eant test
+}
+
+pkg_postinst() {
+ elog "For instructions on how to use StatCVS see"
+ elog "http://statcvs.sourceforge.net/manual/"
+ elog "You need to regenerate statistics"
+ elog "if you update dev-java/jtreemap"
+}
diff --git a/dev-vcs/statcvs/statcvs-0.5.0.ebuild b/dev-vcs/statcvs/statcvs-0.5.0.ebuild
new file mode 100644
index 000000000000..9ef3c53ebe65
--- /dev/null
+++ b/dev-vcs/statcvs/statcvs-0.5.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/statcvs/statcvs-0.5.0.ebuild,v 1.1 2010/03/05 17:50:54 serkan Exp $
+
+EAPI=2
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="StatCVS generates HTML reports from CVS repository logs."
+HOMEPAGE="http://statcvs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-java/jcommon:1.0
+ >=dev-java/jfreechart-1.0.11:1.0
+ dev-java/jdom:1.0
+ dev-java/ant-core:0"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ test? ( dev-java/ant-junit:0 )
+ ${COMMON_DEPEND}"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-util/cvs
+ dev-java/jtreemap:0
+ ${COMMON_DEPEND}"
+
+EANT_BUILD_TARGET="compile copyfiles jar"
+
+java_prepare() {
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+ epatch "${FILESDIR}"/${PN}-0.4.0-external-jtreemap.patch
+
+ einfo "Removing bundled jars."
+ find . -name "*.jar" -print -delete
+
+ cd "${S}"/lib || die
+ java-pkg_jar-from jcommon-1.0 jcommon.jar jcommon-1.0.6.jar
+ java-pkg_jar-from jfreechart-1.0 jfreechart.jar jfreechart-1.0.3.jar
+ java-pkg_jar-from jdom-1.0 jdom.jar
+ java-pkg_jar-from ant-core ant.jar
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher ${PN} --main net.sf.statcvs.Main
+
+ use doc && java-pkg_dohtml -r doc/*
+ use source && java-pkg_dosrc src/net
+}
+
+src_test() {
+ java-pkg_jar-from --into lib junit
+ ANT_TASKS="ant-junit" eant test
+}
+
+pkg_postinst() {
+ elog "For instructions on how to use StatCVS see"
+ elog "http://statcvs.sourceforge.net/manual/"
+ elog "You need to regenerate statistics"
+ elog "if you update dev-java/jtreemap"
+}