1 |
betelgeuse 07/12/29 02:35:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: checkstyle-4.4.ebuild |
5 |
Log: |
6 |
Version bump. Tests now work with 1.5. |
7 |
(Portage version: 2.1.4_rc11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.35 dev-util/checkstyle/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/checkstyle/ChangeLog?rev=1.35&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/checkstyle/ChangeLog?rev=1.35&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/checkstyle/ChangeLog?r1=1.34&r2=1.35 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/checkstyle/ChangeLog,v |
19 |
retrieving revision 1.34 |
20 |
retrieving revision 1.35 |
21 |
diff -u -r1.34 -r1.35 |
22 |
--- ChangeLog 19 Dec 2007 16:26:16 -0000 1.34 |
23 |
+++ ChangeLog 29 Dec 2007 02:35:54 -0000 1.35 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-util/checkstyle |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/ChangeLog,v 1.34 2007/12/19 16:26:16 betelgeuse Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/ChangeLog,v 1.35 2007/12/29 02:35:54 betelgeuse Exp $ |
29 |
+ |
30 |
+*checkstyle-4.4 (29 Dec 2007) |
31 |
+ |
32 |
+ 29 Dec 2007; Petteri Räty <betelgeuse@g.o> +checkstyle-4.4.ebuild: |
33 |
+ Version bump. Tests now work with 1.5. |
34 |
|
35 |
19 Dec 2007; Petteri Räty <betelgeuse@g.o> -checkstyle-4.2.ebuild: |
36 |
Remove old version. |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-util/checkstyle/checkstyle-4.4.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/checkstyle/checkstyle-4.4.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/checkstyle/checkstyle-4.4.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: checkstyle-4.4.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/checkstyle-4.4.ebuild,v 1.1 2007/12/29 02:35:54 betelgeuse Exp $ |
50 |
|
51 |
WANT_ANT_TASKS="ant-antlr ant-nodeps" |
52 |
JAVA_PKG_IUSE="doc source test" |
53 |
|
54 |
inherit java-pkg-2 java-ant-2 |
55 |
|
56 |
MY_P="${PN}-src-${PV}" |
57 |
DESCRIPTION="A development tool to help programmers write Java code that adheres to a coding standard." |
58 |
HOMEPAGE="http://checkstyle.sourceforge.net" |
59 |
SRC_URI="mirror://sourceforge/checkstyle/${MY_P}.tar.gz" |
60 |
|
61 |
LICENSE="LGPL-2.1" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~x86" |
64 |
|
65 |
COMMON_DEP="dev-java/antlr |
66 |
=dev-java/commons-beanutils-1.7* |
67 |
=dev-java/commons-cli-1* |
68 |
dev-java/commons-logging |
69 |
dev-java/commons-collections" |
70 |
|
71 |
RDEPEND=">=virtual/jre-1.4 |
72 |
${COMMON_DEP}" |
73 |
|
74 |
DEPEND="!test? ( >=virtual/jdk-1.4 ) |
75 |
test? ( >=virtual/jdk-1.5 ) |
76 |
${COMMON_DEP} |
77 |
test? ( |
78 |
dev-java/ant-junit |
79 |
dev-java/ant-trax |
80 |
dev-java/emma |
81 |
)" |
82 |
|
83 |
S="${WORKDIR}/${MY_P}" |
84 |
|
85 |
# So that we can generate 1.4 bytecode for dist |
86 |
# and 1.5 for tests |
87 |
JAVA_PKG_BSFIX="off" |
88 |
|
89 |
src_unpack() { |
90 |
unpack ${A} |
91 |
cd "${S}/lib" |
92 |
rm -v *.jar || die |
93 |
java-pkg_jar-from antlr |
94 |
java-pkg_jar-from commons-beanutils-1.7 |
95 |
java-pkg_jar-from commons-cli-1 |
96 |
java-pkg_jar-from commons-logging |
97 |
java-pkg_jar-from commons-collections |
98 |
} |
99 |
|
100 |
src_compile() { |
101 |
eant compile.checkstyle $(use_doc) |
102 |
jar cfm ${PN}.jar config/manifest.mf -C target/checkstyle . || die "jar failed" |
103 |
} |
104 |
|
105 |
src_test() { |
106 |
java-pkg_jar-from --build-only --into lib junit |
107 |
java-pkg_jar-from --build-only --into lib emma |
108 |
ANT_TASKS="emma ant-nodeps ant-junit ant-trax" eant run.tests |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
java-pkg_dojar ${PN}.jar |
113 |
|
114 |
dodoc README RIGHTS.antlr || die |
115 |
use doc && java-pkg_dojavadoc target/docs/api |
116 |
use source && java-pkg_dosrc src/${PN}/com |
117 |
|
118 |
# Install check files |
119 |
insinto /usr/share/checkstyle/checks |
120 |
for file in *.xml; do |
121 |
[[ "${file}" != build.xml ]] && doins ${file} |
122 |
done |
123 |
|
124 |
# Install extra files |
125 |
insinto /usr/share/checkstyle/contrib |
126 |
doins -r contrib/* |
127 |
|
128 |
java-pkg_dolauncher ${PN} \ |
129 |
--main com.puppycrawl.tools.checkstyle.Main |
130 |
|
131 |
java-pkg_dolauncher ${PN}-gui \ |
132 |
--main com.puppycrawl.tools.checkstyle.gui.Main |
133 |
|
134 |
# Make the ant tasks available to ant |
135 |
java-pkg_register-ant-task |
136 |
} |
137 |
|
138 |
pkg_postinst() { |
139 |
elog "Checkstyle is located at /usr/bin/checkstyle" |
140 |
elog "Check files are located in /usr/share/checkstyle/checks/" |
141 |
} |
142 |
|
143 |
|
144 |
|
145 |
-- |
146 |
gentoo-commits@g.o mailing list |