1 |
tomwij 13/10/02 22:54:44 |
2 |
|
3 |
Added: metadata.xml struts-plugins-2.3.15.2.ebuild |
4 |
ChangeLog |
5 |
Log: |
6 |
New package for dev-java/struts-plugins, the Plugins of Struts 2. |
7 |
|
8 |
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-java/struts-plugins/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/metadata.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/metadata.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
20 |
<pkgmetadata> |
21 |
<herd>java</herd> |
22 |
</pkgmetadata> |
23 |
|
24 |
|
25 |
|
26 |
1.1 dev-java/struts-plugins/struts-plugins-2.3.15.2.ebuild |
27 |
|
28 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/struts-plugins-2.3.15.2.ebuild?rev=1.1&view=markup |
29 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/struts-plugins-2.3.15.2.ebuild?rev=1.1&content-type=text/plain |
30 |
|
31 |
Index: struts-plugins-2.3.15.2.ebuild |
32 |
=================================================================== |
33 |
# Copyright 1999-2013 Gentoo Foundation |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/struts-plugins/struts-plugins-2.3.15.2.ebuild,v 1.1 2013/10/02 22:54:44 tomwij Exp $ |
36 |
|
37 |
EAPI="5" |
38 |
|
39 |
JAVA_PKG_IUSE="doc source test" |
40 |
|
41 |
inherit java-pkg-2 java-ant-2 |
42 |
|
43 |
MY_PN="struts" |
44 |
MY_P="${MY_PN}-${PV}-src" |
45 |
|
46 |
DESCRIPTION="A powerful Model View Controller Framework for JSP/Servlets" |
47 |
SRC_URI="mirror://apache/struts/source/${MY_P}.zip |
48 |
http://dev.gentoo.org/~tomwij/files/dist/${MY_PN}-build.xml-${PV}.tar.xz |
49 |
http://dev.gentoo.org/~tomwij/files/dist/${MY_PN}-${PV}-build.xml-classpath.patch" |
50 |
HOMEPAGE="http://struts.apache.org/index.html" |
51 |
|
52 |
LICENSE="Apache-2.0" |
53 |
SLOT="2" |
54 |
KEYWORDS="~amd64" |
55 |
|
56 |
COMMON_DEPS="dev-java/commons-beanutils:1.7 |
57 |
dev-java/commons-lang:3.1 |
58 |
dev-java/commons-io:1 |
59 |
dev-java/freemarker:2.3 |
60 |
dev-java/juel:0 |
61 |
dev-java/ognl:3.0 |
62 |
dev-java/osgi-core-api:0 |
63 |
dev-java/struts-core:${SLOT} |
64 |
dev-java/struts-xwork:${SLOT} |
65 |
dev-java/velocity:0 |
66 |
java-virtuals/servlet-api:3.0" |
67 |
|
68 |
RDEPEND=">=virtual/jre-1.5 |
69 |
${COMMON_DEPS}" |
70 |
|
71 |
DEPEND=">=virtual/jdk-1.5 |
72 |
test? ( dev-java/ant-junit:0 ) |
73 |
${COMMON_DEPS}" |
74 |
|
75 |
S="${WORKDIR}/${MY_PN}-${PV}/src/plugins" |
76 |
|
77 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
78 |
EANT_GENTOO_CLASSPATH="struts-core-${SLOT},struts-xwork-${SLOT}" |
79 |
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" |
80 |
EANT_BUILD_TARGET="package" |
81 |
EANT_TEST_TARGET="test" |
82 |
|
83 |
# javatemplates/maven-build.xml:149: |
84 |
# Test org.apache.struts2.views.java.simple.AbstractCommonAttributesTest failed |
85 |
# Cannot instantiate test case: testRenderTextFieldDynamicAttrs |
86 |
RESTRICT="test" |
87 |
|
88 |
src_unpack() { |
89 |
unpack ${MY_P}.zip |
90 |
cd "${WORKDIR}"/${MY_PN}-${PV}/src || die |
91 |
unpack ${MY_PN}-build.xml-${PV}.tar.xz |
92 |
} |
93 |
|
94 |
java_prepare() { |
95 |
find . -name '*.jar' -print -delete || die |
96 |
|
97 |
epatch "${DISTDIR}"/${MY_PN}-${PV}-build.xml-classpath.patch |
98 |
epatch "${FILESDIR}"/${MY_PN}-${PV}-build.xml-manifest.patch |
99 |
epatch "${FILESDIR}"/${MY_PN}-${PV}-build.xml-remove-codebehind.patch |
100 |
epatch "${FILESDIR}"/${MY_PN}-${PV}-build.xml-remove-portlet.patch |
101 |
|
102 |
# Remove tests that don't build due to test files that aren't installed. |
103 |
rm jfreechart/src/test/java/org/apache/struts2/dispatcher/ChartResultTest.java |
104 |
|
105 |
java-pkg_getjars commons-beanutils-1.7,commons-io-1,commons-lang-3.1,freemarker-2.3,juel,ognl-3.0,osgi-core-api,servlet-api-3.0,velocity |
106 |
} |
107 |
|
108 |
src_test() { |
109 |
EANT_TEST_EXTRA_ARGS="-Dgentoo.test.classpath=$(java-pkg_getjars ${EANT_TEST_GENTOO_CLASSPATH})" |
110 |
EANT_TEST_EXTRA_ARGS+=" -Djunit.present=true" |
111 |
|
112 |
java-pkg-2_src_test |
113 |
} |
114 |
|
115 |
src_install() { |
116 |
for plugin in $(find . -mindepth 1 -maxdepth 1 -type d | sed 's:./::g' | tr '\n' ' ') ; do |
117 |
[[ ! -d ${plugin}/target ]] && continue |
118 |
|
119 |
einfo "Installing plugin '${plugin}' ..." |
120 |
java-pkg_newjar ${plugin}/target/${MY_PN}2-${plugin}-plugin-${PV}.jar ${plugin}.jar |
121 |
|
122 |
if use doc ; then |
123 |
java-pkg_dojavadoc ${plugin}/target/site/apidocs |
124 |
mkdir "${D}"/usr/share/doc/${P}/${plugin} || die |
125 |
mv "${D}"/usr/share/doc/${P}/{html,${plugin}/html} || die |
126 |
fi |
127 |
|
128 |
use source && java-pkg_dosrc ${plugin}/src/main/java/org |
129 |
done |
130 |
|
131 |
if use doc ; then |
132 |
rm "${D}"/usr/share/${PN}-${SLOT}/api || die |
133 |
fi |
134 |
} |
135 |
|
136 |
pkg_postinst() { |
137 |
elog "The 'codebehind' and 'portlet' plugins are not in this release because they don't build yet." |
138 |
} |
139 |
|
140 |
|
141 |
|
142 |
1.1 dev-java/struts-plugins/ChangeLog |
143 |
|
144 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/ChangeLog?rev=1.1&view=markup |
145 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/struts-plugins/ChangeLog?rev=1.1&content-type=text/plain |
146 |
|
147 |
Index: ChangeLog |
148 |
=================================================================== |
149 |
# ChangeLog for dev-java/struts-plugins |
150 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
151 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/struts-plugins/ChangeLog,v 1.1 2013/10/02 22:54:44 tomwij Exp $ |
152 |
|
153 |
*struts-plugins-2.3.15.2 (02 Oct 2013) |
154 |
|
155 |
02 Oct 2013; Tom Wijsman <TomWij@g.o> |
156 |
+files/struts-2.3.15.2-build.xml-manifest.patch, |
157 |
+files/struts-2.3.15.2-build.xml-remove-codebehind.patch, |
158 |
+files/struts-2.3.15.2-build.xml-remove-portlet.patch, +metadata.xml, |
159 |
+struts-plugins-2.3.15.2.ebuild: |
160 |
New package for dev-java/struts-plugins, the Plugins of Struts 2. |