1 |
commit: fa15578a096dd14cddc9dbc616bab7532a3c1aeb |
2 |
Author: William L. Thomson Jr <wlt <AT> o-sinc <DOT> com> |
3 |
AuthorDate: Fri Sep 18 00:10:01 2015 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 29 21:19:48 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa15578a |
7 |
|
8 |
dev-vcs/statcvs: Updated dev-java/jdom slot from 1.0 -> 0 for v1 |
9 |
|
10 |
dev-vcs/statcvs/statcvs-0.5.0-r1.ebuild | 68 +++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 68 insertions(+) |
12 |
|
13 |
diff --git a/dev-vcs/statcvs/statcvs-0.5.0-r1.ebuild b/dev-vcs/statcvs/statcvs-0.5.0-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..5dbc8fa |
16 |
--- /dev/null |
17 |
+++ b/dev-vcs/statcvs/statcvs-0.5.0-r1.ebuild |
18 |
@@ -0,0 +1,68 @@ |
19 |
+# Copyright 1999-2014 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=2 |
24 |
+JAVA_PKG_IUSE="doc source test" |
25 |
+ |
26 |
+inherit eutils java-pkg-2 java-ant-2 |
27 |
+ |
28 |
+DESCRIPTION="StatCVS generates HTML reports from CVS repository logs" |
29 |
+HOMEPAGE="http://statcvs.sourceforge.net/" |
30 |
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip" |
31 |
+LICENSE="LGPL-2.1" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
34 |
+IUSE="" |
35 |
+ |
36 |
+COMMON_DEPEND=" |
37 |
+ dev-java/jcommon:1.0 |
38 |
+ >=dev-java/jfreechart-1.0.11:1.0 |
39 |
+ dev-java/jdom:0 |
40 |
+ dev-java/ant-core:0" |
41 |
+ |
42 |
+DEPEND=">=virtual/jdk-1.4 |
43 |
+ app-arch/unzip |
44 |
+ test? ( dev-java/ant-junit:0 ) |
45 |
+ ${COMMON_DEPEND}" |
46 |
+ |
47 |
+RDEPEND=">=virtual/jre-1.4 |
48 |
+ dev-vcs/cvs |
49 |
+ dev-java/jtreemap:0 |
50 |
+ ${COMMON_DEPEND}" |
51 |
+ |
52 |
+EANT_BUILD_TARGET="compile copyfiles jar" |
53 |
+ |
54 |
+java_prepare() { |
55 |
+ epatch "${FILESDIR}"/${P}-build.xml.patch |
56 |
+ epatch "${FILESDIR}"/${PN}-0.4.0-external-jtreemap.patch |
57 |
+ |
58 |
+ einfo "Removing bundled jars." |
59 |
+ find . -name "*.jar" -print -delete |
60 |
+ |
61 |
+ cd "${S}"/lib || die |
62 |
+ java-pkg_jar-from jcommon-1.0 jcommon.jar jcommon-1.0.6.jar |
63 |
+ java-pkg_jar-from jfreechart-1.0 jfreechart.jar jfreechart-1.0.3.jar |
64 |
+ java-pkg_jar-from jdom jdom.jar |
65 |
+ java-pkg_jar-from ant-core ant.jar |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ java-pkg_dojar dist/${PN}.jar |
70 |
+ java-pkg_dolauncher ${PN} --main net.sf.statcvs.Main |
71 |
+ |
72 |
+ use doc && java-pkg_dohtml -r doc/* |
73 |
+ use source && java-pkg_dosrc src/net |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ java-pkg_jar-from --into lib junit |
78 |
+ ANT_TASKS="ant-junit" eant test |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ elog "For instructions on how to use StatCVS see" |
83 |
+ elog "http://statcvs.sourceforge.net/manual/" |
84 |
+ elog "You need to regenerate statistics" |
85 |
+ elog "if you update dev-java/jtreemap" |
86 |
+} |