1 |
tomwij 13/10/02 23:02:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: struts-2.3.15.2.ebuild |
5 |
Log: |
6 |
Version bump to 2.3.15.2; for bug #152352, bug #237146, bug #405931 and bug #486752. |
7 |
|
8 |
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.50 dev-java/struts/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts/ChangeLog?rev=1.50&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts/ChangeLog?rev=1.50&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts/ChangeLog?r1=1.49&r2=1.50 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/struts/ChangeLog,v |
20 |
retrieving revision 1.49 |
21 |
retrieving revision 1.50 |
22 |
diff -u -r1.49 -r1.50 |
23 |
--- ChangeLog 19 Dec 2011 11:01:26 -0000 1.49 |
24 |
+++ ChangeLog 2 Oct 2013 23:02:51 -0000 1.50 |
25 |
@@ -1,6 +1,18 @@ |
26 |
# ChangeLog for dev-java/struts |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/struts/ChangeLog,v 1.49 2011/12/19 11:01:26 sera Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/struts/ChangeLog,v 1.50 2013/10/02 23:02:51 tomwij Exp $ |
31 |
+ |
32 |
+*struts-2.3.15.2 (02 Oct 2013) |
33 |
+ |
34 |
+ 02 Oct 2013; Tom Wijsman <TomWij@g.o> |
35 |
+ +files/struts-2.3.15.2-build.xml-apps-package.patch, |
36 |
+ +files/struts-2.3.15.2-build.xml-classpath.patch, |
37 |
+ +files/struts-2.3.15.2-build.xml-manifest.patch, |
38 |
+ +files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch, |
39 |
+ +files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch, |
40 |
+ +struts-2.3.15.2.ebuild: |
41 |
+ Version bump to 2.3.15.2; for bug #152352, bug #237146, bug #405931 and bug |
42 |
+ #486752. |
43 |
|
44 |
19 Dec 2011; Ralph Sennhauser <sera@g.o> struts-1.2.9-r2.ebuild, |
45 |
struts-1.2.9-r3.ebuild: |
46 |
@@ -209,4 +221,3 @@ |
47 |
struts-1.1.ebuild: |
48 |
Initial Import. Thanks to Pavel <hlobil@×××××××××.ca> for input. Closes |
49 |
#43253, #14382, #21930 |
50 |
- |
51 |
|
52 |
|
53 |
|
54 |
1.1 dev-java/struts/struts-2.3.15.2.ebuild |
55 |
|
56 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts/struts-2.3.15.2.ebuild?rev=1.1&view=markup |
57 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts/struts-2.3.15.2.ebuild?rev=1.1&content-type=text/plain |
58 |
|
59 |
Index: struts-2.3.15.2.ebuild |
60 |
=================================================================== |
61 |
# Copyright 1999-2013 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/struts/struts-2.3.15.2.ebuild,v 1.1 2013/10/02 23:02:51 tomwij Exp $ |
64 |
|
65 |
EAPI="5" |
66 |
|
67 |
JAVA_PKG_IUSE="doc source test" |
68 |
WANT_ANT_TASKS="ant-trax" |
69 |
|
70 |
inherit java-pkg-2 java-ant-2 |
71 |
|
72 |
MY_P="${P}-src" |
73 |
|
74 |
DESCRIPTION="A powerful Model View Controller Framework for JSP/Servlets" |
75 |
SRC_URI="mirror://apache/struts/source/${MY_P}.zip |
76 |
http://dev.gentoo.org/~tomwij/files/dist/${PN}-build.xml-${PV}.tar.xz" |
77 |
HOMEPAGE="http://struts.apache.org/index.html" |
78 |
|
79 |
LICENSE="Apache-2.0" |
80 |
SLOT="2" |
81 |
KEYWORDS="~amd64" |
82 |
|
83 |
COMMON_DEPS=" |
84 |
dev-java/felix-shell:0 |
85 |
dev-java/osgi-core-api:0 |
86 |
dev-java/struts-core:${SLOT} |
87 |
dev-java/struts-plugins:${SLOT} |
88 |
dev-java/struts-xwork:${SLOT} |
89 |
java-virtuals/servlet-api:2.3" |
90 |
|
91 |
RDEPEND=">=virtual/jre-1.5 |
92 |
${COMMON_DEPS}" |
93 |
|
94 |
DEPEND=">=virtual/jdk-1.5 |
95 |
test? ( dev-java/ant-junit:0 ) |
96 |
${COMMON_DEPS}" |
97 |
|
98 |
S="${WORKDIR}/${P}/src" |
99 |
|
100 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
101 |
EANT_GENTOO_CLASSPATH="struts-core-${SLOT},struts-plugins-${SLOT},struts-xwork-${SLOT}" |
102 |
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" |
103 |
EANT_BUILD_TARGET="package" |
104 |
EANT_TEST_TARGET="test" |
105 |
|
106 |
# TODO: Incompatible with newer junit; we either need to patch it or slot junit. |
107 |
RESTRICT="test" |
108 |
|
109 |
src_unpack() { |
110 |
unpack ${MY_P}.zip |
111 |
cd "${S}" || die |
112 |
unpack ${PN}-build.xml-${PV}.tar.xz |
113 |
} |
114 |
|
115 |
java_prepare() { |
116 |
find . -name '*.jar' -print -delete || die |
117 |
|
118 |
epatch "${FILESDIR}"/${P}-build.xml-remove-core-and-plugins.patch |
119 |
epatch "${FILESDIR}"/${P}-build.xml-classpath.patch |
120 |
epatch "${FILESDIR}"/${P}-build.xml-manifest.patch |
121 |
epatch "${FILESDIR}"/${P}-build.xml-apps-package.patch |
122 |
epatch "${FILESDIR}"/${P}-build.xml-remove-apps-portlet.patch |
123 |
|
124 |
java-pkg_getjars felix-shell,osgi-core-api,servlet-api-2.3 |
125 |
} |
126 |
|
127 |
src_install() { |
128 |
insinto /usr/share/${PN}-${SLOT}/ |
129 |
|
130 |
# Misses apps/portlet. |
131 |
for dir in apps/{blank,mailreader,rest-showcase,showcase} bundles/{admin,demo} ; do |
132 |
if [[ ${dir} == "apps/"* ]] ; then |
133 |
doins ${dir}/target/${PN}2-${dir/apps\//}.war |
134 |
else |
135 |
java-pkg_newjar ${dir}/target/${PN}2-osgi-*-bundle-${PV}.jar ${dir/bundles\//}.jar |
136 |
fi |
137 |
|
138 |
if use doc ; then |
139 |
java-pkg_dojavadoc ${dir}/target/site/apidocs |
140 |
mkdir "${D}"/usr/share/doc/${P}/${dir/*\//} || die |
141 |
mv "${D}"/usr/share/doc/${P}/{html,${dir/*\//}/html} || die |
142 |
fi |
143 |
|
144 |
if [[ ${dir} == *"mailreader"* ]] ; then |
145 |
use source && java-pkg_dosrc ${dir}/src/main/java/mailreader2 |
146 |
else |
147 |
use source && java-pkg_dosrc ${dir}/src/main/java/org |
148 |
fi |
149 |
done |
150 |
|
151 |
if use doc ; then |
152 |
rm "${D}"/usr/share/${PN}-${SLOT}/api || die |
153 |
fi |
154 |
} |
155 |
|
156 |
src_test() { |
157 |
EANT_TEST_EXTRA_ARGS="-Dgentoo.test.classpath=$(java-pkg_getjars ${EANT_TEST_GENTOO_CLASSPATH})" |
158 |
EANT_TEST_EXTRA_ARGS+=" -Djunit.present=true" |
159 |
|
160 |
java-pkg-2_src_test |
161 |
} |
162 |
|
163 |
pkg_postinst() { |
164 |
elog "The application 'portlet' is not in this release because it doesn't build." |
165 |
} |