diff options
author | Serkan Kaba <serkan@gentoo.org> | 2009-01-27 22:34:51 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2009-01-27 22:34:51 +0000 |
commit | dd30a5c6488f8220bd51fee04e8a42d81565626e (patch) | |
tree | 58f9090f9de33fba91706dc1fad89f07686986cf /dev-util/statcvs | |
parent | EAPI=2 (diff) | |
download | gentoo-2-dd30a5c6488f8220bd51fee04e8a42d81565626e.tar.gz gentoo-2-dd30a5c6488f8220bd51fee04e8a42d81565626e.tar.bz2 gentoo-2-dd30a5c6488f8220bd51fee04e8a42d81565626e.zip |
Revbump to add missing ant-core dependency.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/statcvs')
-rw-r--r-- | dev-util/statcvs/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/statcvs/files/statcvs-0.4.0-r1-build.xml.patch | 24 | ||||
-rw-r--r-- | dev-util/statcvs/statcvs-0.4.0-r1.ebuild | 71 |
3 files changed, 102 insertions, 1 deletions
diff --git a/dev-util/statcvs/ChangeLog b/dev-util/statcvs/ChangeLog index 3a7095fb2f5f..50cd25790541 100644 --- a/dev-util/statcvs/ChangeLog +++ b/dev-util/statcvs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/statcvs # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/statcvs/ChangeLog,v 1.2 2009/01/05 22:56:48 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/statcvs/ChangeLog,v 1.3 2009/01/27 22:34:51 serkan Exp $ + +*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 diff --git a/dev-util/statcvs/files/statcvs-0.4.0-r1-build.xml.patch b/dev-util/statcvs/files/statcvs-0.4.0-r1-build.xml.patch new file mode 100644 index 000000000000..4053feea04aa --- /dev/null +++ b/dev-util/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-util/statcvs/statcvs-0.4.0-r1.ebuild b/dev-util/statcvs/statcvs-0.4.0-r1.ebuild new file mode 100644 index 000000000000..6732ad23fb3d --- /dev/null +++ b/dev-util/statcvs/statcvs-0.4.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2009 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-r1.ebuild,v 1.1 2009/01/27 22:34:51 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" +} |