summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-10-03 21:44:33 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-10-03 21:44:33 +0000
commit39a683d6015bc8acecd1dc3b2924ecd93ebbed5e (patch)
treef34ec292b7980363b7c22a95492cb8a168828b9e /dev-util/statsvn
parentInitial version. Fixes bug #156848. (diff)
downloadhistorical-39a683d6015bc8acecd1dc3b2924ecd93ebbed5e.tar.gz
historical-39a683d6015bc8acecd1dc3b2924ecd93ebbed5e.tar.bz2
historical-39a683d6015bc8acecd1dc3b2924ecd93ebbed5e.zip
Initial version. Fixes bug #156048.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64
Diffstat (limited to 'dev-util/statsvn')
-rw-r--r--dev-util/statsvn/ChangeLog12
-rw-r--r--dev-util/statsvn/Manifest16
-rw-r--r--dev-util/statsvn/files/statsvn-0.4.1-build.xml.patch19
-rw-r--r--dev-util/statsvn/files/statsvn-0.4.1-fixstatcvsusage.patch12
-rw-r--r--dev-util/statsvn/metadata.xml8
-rw-r--r--dev-util/statsvn/statsvn-0.4.1.ebuild75
6 files changed, 142 insertions, 0 deletions
diff --git a/dev-util/statsvn/ChangeLog b/dev-util/statsvn/ChangeLog
new file mode 100644
index 000000000000..24af2d8bcbc5
--- /dev/null
+++ b/dev-util/statsvn/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-util/statsvn
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/statsvn/ChangeLog,v 1.1 2008/10/03 21:44:32 serkan Exp $
+
+*statsvn-0.4.1 (03 Oct 2008)
+
+ 03 Oct 2008; Serkan Kaba <serkan@gentoo.org>
+ +files/statsvn-0.4.1-build.xml.patch,
+ +files/statsvn-0.4.1-fixstatcvsusage.patch, +metadata.xml,
+ +statsvn-0.4.1.ebuild:
+ Initial version. Fixes bug #156048.
+
diff --git a/dev-util/statsvn/Manifest b/dev-util/statsvn/Manifest
new file mode 100644
index 000000000000..4b36a4794f4f
--- /dev/null
+++ b/dev-util/statsvn/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX statsvn-0.4.1-build.xml.patch 783 RMD160 683719fe92377fa841bd977e68875b17d82bf1d7 SHA1 51faf37e42a0e5a0a84abf7826ca298a878a4b63 SHA256 2d90851c44ceff1731965ebf696905d925e22477f0e2e5b9d9f11601d79a4c89
+AUX statsvn-0.4.1-fixstatcvsusage.patch 898 RMD160 0307da8206a7a8ac8edea7275326adf0ff418cdc SHA1 873f1aea1a70ec7fb0870c2b445cd7f6252b1b33 SHA256 53634da88168448e2f33248ff7cbb522efe01ec8c84768bea3e5bee0975e32f8
+DIST statsvn-0.4.1-source.zip 10061534 RMD160 12291695963c9e2993d3e737fb643bff667f7cdf SHA1 1ce3a921ad7d37a1a1d7d387f770bf89a026ed98 SHA256 8307003b8b609bd3b271a53c6c55d91947e220538e9b0c4c8925d272a2d05d07
+EBUILD statsvn-0.4.1.ebuild 2217 RMD160 998262d15bca517dd0968111e80deaf90cd65ea7 SHA1 c7920c8227cf371fc7f426a168efd5d6e18d8d2b SHA256 9c5a6f38a33e2fdff590801227d119843ac89886dc8c2cf3a79e2ac350fdfae1
+MISC ChangeLog 447 RMD160 b4d44b37c902ead7b0711aa761b275350df0bc7b SHA1 08538ad17f07a614b21eb51e57da8ab986f5b0d2 SHA256 0d90a7fc88fe3ebfd13125d11b5847e42c2fecde70fd7df6e04b7f0d9fd7ccb4
+MISC metadata.xml 217 RMD160 6a03b58e975ef9766c1ba359b8cf73372aae1409 SHA1 9661e29f710f8b88d1ebad0d7cfa2716ae869b51 SHA256 00a5772b0da0819b665dba21d321e4e2393c818907d38678d179cafd5036c7f2
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkjmkk0ACgkQRh6X64ivZaIDWgCeLrkhGYNn4MNIbLv5KOw0Pnfe
+iHkAn2dm0veBjDx3uhBQqBZf/sEOBSui
+=+Do+
+-----END PGP SIGNATURE-----
diff --git a/dev-util/statsvn/files/statsvn-0.4.1-build.xml.patch b/dev-util/statsvn/files/statsvn-0.4.1-build.xml.patch
new file mode 100644
index 000000000000..48c050eb25db
--- /dev/null
+++ b/dev-util/statsvn/files/statsvn-0.4.1-build.xml.patch
@@ -0,0 +1,19 @@
+diff -Nur statsvn-0.4.1/build.xml statsvn-0.4.1_patched/build.xml
+--- statsvn-0.4.1/build.xml 2007-03-14 03:33:20.000000000 +0200
++++ statsvn-0.4.1_patched/build.xml 2008-09-19 05:45:40.000000000 +0300
+@@ -130,15 +130,6 @@
+ </target>
+
+ <target name="dist" depends="compile,copyfiles">
+- <!-- Creates an executable jar file for the project -->
+- <unjar src="${lib}/${statcvs.jar}" dest="${build}" />
+- <!-- Expand and use the concurrent JAR -->
+- <unjar src="${lib}/${concurrent.jar}" dest="${build}" />
+-
+- <!-- Now included in statcvs.jar -->
+- <!--<unjar src="${lib}/${jfreechart.jar}" dest="${build}" />
+- <unjar src="${lib}/${jcommon.jar}" dest="${build}" />-->
+-
+ <mkdir dir="${dist}" />
+ <jar jarfile="${dist}/${project.jar}" basedir="${build}">
+ <manifest>
diff --git a/dev-util/statsvn/files/statsvn-0.4.1-fixstatcvsusage.patch b/dev-util/statsvn/files/statsvn-0.4.1-fixstatcvsusage.patch
new file mode 100644
index 000000000000..4bccd1d089b7
--- /dev/null
+++ b/dev-util/statsvn/files/statsvn-0.4.1-fixstatcvsusage.patch
@@ -0,0 +1,12 @@
+diff -Nur statsvn-0.4.1/src/net/sf/statsvn/Main.java statsvn-0.4.1_patched/src/net/sf/statsvn/Main.java
+--- statsvn-0.4.1/src/net/sf/statsvn/Main.java 2008-09-19 07:19:16.000000000 +0300
++++ statsvn-0.4.1_patched/src/net/sf/statsvn/Main.java 2008-09-19 07:19:42.000000000 +0300
+@@ -295,7 +295,7 @@
+ System.setProperty("java.awt.headless", "true");
+
+ final ReportConfig config = new ReportConfig(content, ConfigurationOptions.getProjectName(), ConfigurationOptions.getOutputDir(), ConfigurationOptions
+- .getMarkupSyntax(), ConfigurationOptions.getCssHandler(), ConfigurationOptions.getCharSet());
++ .getMarkupSyntax(), ConfigurationOptions.getCssHandler());
+ config.setWebRepository(ConfigurationOptions.getWebRepository());
+ config.setWebBugtracker(ConfigurationOptions.getWebBugtracker());
+ config.setNonDeveloperLogins(ConfigurationOptions.getNonDeveloperLogins());
diff --git a/dev-util/statsvn/metadata.xml b/dev-util/statsvn/metadata.xml
new file mode 100644
index 000000000000..407583277d87
--- /dev/null
+++ b/dev-util/statsvn/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/statsvn/statsvn-0.4.1.ebuild b/dev-util/statsvn/statsvn-0.4.1.ebuild
new file mode 100644
index 000000000000..7ca7f1b028fd
--- /dev/null
+++ b/dev-util/statsvn/statsvn-0.4.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/statsvn/statsvn-0.4.1.ebuild,v 1.1 2008/10/03 21:44:32 serkan Exp $
+
+EAPI=1
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="StatSVN generates HTML reports from SVN repository logs."
+HOMEPAGE="http://www.statsvn.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-util/statcvs-0.3:0
+ >=dev-java/backport-util-concurrent-3.0:0"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ test?
+ (
+ dev-java/junit:0
+ dev-java/jfreechart:1.0
+ dev-java/jcommon:1.0
+ )
+ ${COMMON_DEPEND}"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-util/subversion-1.3.0
+ dev-java/xerces:2
+ ${COMMON_DEPEND}"
+
+EANT_GENTOO_CLASSPATH="statcvs,backport-util-concurrent"
+EANT_BUILD_TARGET="dist"
+JAVA_ANT_CLASSPATH_TAGS="javac java javadoc"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ einfo "Removing bundled jars."
+ find . -name "*.jar" -print -delete
+ rm -r "${S}"/bin/*
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+ epatch "${FILESDIR}"/${P}-fixstatcvsusage.patch
+}
+
+src_test() {
+ ewarn "Note that the tests require you to be online."
+ eant -Dgentoo.classpath=$(java-pkg_getjars statcvs,backport-util-concurrent):$(java-pkg_getjars --build-only junit,jfreechart-1.0,jcommon-1.0) test
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ # jfreechart pulls in gnu-jaxp which doesn't work for statsvn so we need
+ # to force another SAXParserFactory and DocumentBuilderFactory
+ java-pkg_register-dependency xerces-2
+ java-pkg_dolauncher statsvn --main net.sf.statsvn.Main \
+ --java_args '-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'
+
+ use doc && java-pkg_dojavadoc doc
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst() {
+ elog "For instractions on how to use StatSVN see"
+ elog "http://svn.statsvn.org/statsvnwiki/index.php/Main_Page"
+ elog "You need to regenerate statistics"
+ elog "if you update dev-java/jtreemap"
+}