summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-10-03 21:39:25 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-10-03 21:39:25 +0000
commitb4255ce55959ffc90bd12ab2af4ad67321b49291 (patch)
treeda0d4f22de2c6a654df975424ae4603d60f68ec1 /dev-util
parentInitial commit. Added as a dependency of dev-util/statcvs. (diff)
downloadgentoo-2-b4255ce55959ffc90bd12ab2af4ad67321b49291.tar.gz
gentoo-2-b4255ce55959ffc90bd12ab2af4ad67321b49291.tar.bz2
gentoo-2-b4255ce55959ffc90bd12ab2af4ad67321b49291.zip
Initial version. Fixes bug #156848.
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/statcvs/ChangeLog12
-rw-r--r--dev-util/statcvs/Manifest6
-rw-r--r--dev-util/statcvs/files/statcvs-0.4.0-build.xml.patch16
-rw-r--r--dev-util/statcvs/files/statcvs-0.4.0-external-jtreemap.patch40
-rw-r--r--dev-util/statcvs/metadata.xml8
-rw-r--r--dev-util/statcvs/statcvs-0.4.0.ebuild69
6 files changed, 151 insertions, 0 deletions
diff --git a/dev-util/statcvs/ChangeLog b/dev-util/statcvs/ChangeLog
new file mode 100644
index 000000000000..86da8143f5fd
--- /dev/null
+++ b/dev-util/statcvs/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-util/statcvs
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/statcvs/ChangeLog,v 1.1 2008/10/03 21:39:24 serkan Exp $
+
+*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-util/statcvs/Manifest b/dev-util/statcvs/Manifest
new file mode 100644
index 000000000000..04703bbe89f1
--- /dev/null
+++ b/dev-util/statcvs/Manifest
@@ -0,0 +1,6 @@
+AUX statcvs-0.4.0-build.xml.patch 687 RMD160 de3ce8e153ccd756361f7d0a6d7c83151dcb5ae1 SHA1 b2424c2c957022546741b63b6f47e1f01ad0a9c2 SHA256 a7fb86f3eea8d2be4c7f3555f4cef54b1ce40a85668c702d29102ea8725177c3
+AUX statcvs-0.4.0-external-jtreemap.patch 2283 RMD160 8b7b4f4d7574695bceca7933298c2568fef338a8 SHA1 565500ea4ec36ef7703db84bc29467f345c9e427 SHA256 260527e5bd8d584888d30c8b9671342a941e671750aaee2a0e6bfe77b00653ea
+DIST statcvs-0.4.0-source.zip 8745997 RMD160 6eb0ed26a673c210edda543248e593d3ec3c0a41 SHA1 b5c0395bd51685ee0999d8105a2562de7d82329f SHA256 05b046a3dbb7a4846b8bd7ab37ed72ccf168ebb7ef6289ba8551ed85418cab00
+EBUILD statcvs-0.4.0.ebuild 1598 RMD160 c09afa69acfb4283d314db0e27deaeb594c4bed3 SHA1 e2b6f0173cc2c44fc6f31965d5ee39264b696d67 SHA256 15427f50422c433907e48295414fb0a4edb461ae9b9386f35e2dfa495c45d549
+MISC ChangeLog 361 RMD160 3bf7b41287841a0c95c77006d9ed52c67c0e23d1 SHA1 1d5f4e0ba58f8e2750acbc1082c705c5040f9ce1 SHA256 055ef563d3df4deb4e9ccf3655b02206ac739b762cbae2d51fb13822f8eb7f70
+MISC metadata.xml 217 RMD160 6a03b58e975ef9766c1ba359b8cf73372aae1409 SHA1 9661e29f710f8b88d1ebad0d7cfa2716ae869b51 SHA256 00a5772b0da0819b665dba21d321e4e2393c818907d38678d179cafd5036c7f2
diff --git a/dev-util/statcvs/files/statcvs-0.4.0-build.xml.patch b/dev-util/statcvs/files/statcvs-0.4.0-build.xml.patch
new file mode 100644
index 000000000000..66b8d291dcfc
--- /dev/null
+++ b/dev-util/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-util/statcvs/files/statcvs-0.4.0-external-jtreemap.patch b/dev-util/statcvs/files/statcvs-0.4.0-external-jtreemap.patch
new file mode 100644
index 000000000000..cd0c5ed773b6
--- /dev/null
+++ b/dev-util/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-util/statcvs/metadata.xml b/dev-util/statcvs/metadata.xml
new file mode 100644
index 000000000000..407583277d87
--- /dev/null
+++ b/dev-util/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-util/statcvs/statcvs-0.4.0.ebuild b/dev-util/statcvs/statcvs-0.4.0.ebuild
new file mode 100644
index 000000000000..ddde45a84502
--- /dev/null
+++ b/dev-util/statcvs/statcvs-0.4.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/statcvs/statcvs-0.4.0.ebuild,v 1.1 2008/10/03 21:39:24 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"
+}