From 11baf40c192922ca78c30dc24ad36b12f4216f83 Mon Sep 17 00:00:00 2001 From: Tom Wijsman Date: Wed, 2 Oct 2013 23:02:51 +0000 Subject: Version bump to 2.3.15.2; for bug #152352, bug #237146, bug #405931 and bug #486752. (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) --- dev-java/struts/ChangeLog | 17 +- .../struts-2.3.15.2-build.xml-apps-package.patch | 249 +++++++++++++++++++++ .../struts-2.3.15.2-build.xml-classpath.patch | 162 ++++++++++++++ .../files/struts-2.3.15.2-build.xml-manifest.patch | 30 +++ ...ts-2.3.15.2-build.xml-remove-apps-portlet.patch | 50 +++++ ....3.15.2-build.xml-remove-core-and-plugins.patch | 56 +++++ dev-java/struts/struts-2.3.15.2.ebuild | 105 +++++++++ 7 files changed, 666 insertions(+), 3 deletions(-) create mode 100644 dev-java/struts/files/struts-2.3.15.2-build.xml-apps-package.patch create mode 100644 dev-java/struts/files/struts-2.3.15.2-build.xml-classpath.patch create mode 100644 dev-java/struts/files/struts-2.3.15.2-build.xml-manifest.patch create mode 100644 dev-java/struts/files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch create mode 100644 dev-java/struts/files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch create mode 100644 dev-java/struts/struts-2.3.15.2.ebuild (limited to 'dev-java/struts') diff --git a/dev-java/struts/ChangeLog b/dev-java/struts/ChangeLog index 972281332932..5d2f0c2891bc 100644 --- a/dev-java/struts/ChangeLog +++ b/dev-java/struts/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for dev-java/struts -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/struts/ChangeLog,v 1.49 2011/12/19 11:01:26 sera Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/struts/ChangeLog,v 1.50 2013/10/02 23:02:51 tomwij Exp $ + +*struts-2.3.15.2 (02 Oct 2013) + + 02 Oct 2013; Tom Wijsman + +files/struts-2.3.15.2-build.xml-apps-package.patch, + +files/struts-2.3.15.2-build.xml-classpath.patch, + +files/struts-2.3.15.2-build.xml-manifest.patch, + +files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch, + +files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch, + +struts-2.3.15.2.ebuild: + Version bump to 2.3.15.2; for bug #152352, bug #237146, bug #405931 and bug + #486752. 19 Dec 2011; Ralph Sennhauser struts-1.2.9-r2.ebuild, struts-1.2.9-r3.ebuild: @@ -209,4 +221,3 @@ struts-1.1.ebuild: Initial Import. Thanks to Pavel for input. Closes #43253, #14382, #21930 - diff --git a/dev-java/struts/files/struts-2.3.15.2-build.xml-apps-package.patch b/dev-java/struts/files/struts-2.3.15.2-build.xml-apps-package.patch new file mode 100644 index 000000000000..d1e414414320 --- /dev/null +++ b/dev-java/struts/files/struts-2.3.15.2-build.xml-apps-package.patch @@ -0,0 +1,249 @@ +diff -urN a/apps/blank/maven-build.xml b/apps/blank/maven-build.xml +--- a/apps/blank/maven-build.xml 2013-10-02 15:52:07.637985555 +0200 ++++ b/apps/blank/maven-build.xml 2013-10-02 15:52:29.756985531 +0200 +@@ -243,32 +243,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- + +--- a/apps/mailreader/maven-build.xml ++++ b/apps/mailreader/maven-build.xml +@@ -198,36 +198,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + +--- a/apps/showcase/maven-build.xml ++++ b/apps/showcase/maven-build.xml +@@ -334,112 +334,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + +--- a/apps/rest-showcase/maven-build.xml ++++ b/apps/rest-showcase/maven-build.xml +@@ -273,56 +273,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + diff --git a/dev-java/struts/files/struts-2.3.15.2-build.xml-classpath.patch b/dev-java/struts/files/struts-2.3.15.2-build.xml-classpath.patch new file mode 100644 index 000000000000..25d694a198a3 --- /dev/null +++ b/dev-java/struts/files/struts-2.3.15.2-build.xml-classpath.patch @@ -0,0 +1,162 @@ +--- a/apps/blank/maven-build.xml ++++ b/apps/blank/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- + +- + + ++ + + + +--- a/apps/mailreader/maven-build.xml ++++ b/apps/mailreader/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- + +- + +- + + ++ + + + +--- a/apps/showcase/maven-build.xml ++++ b/apps/showcase/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- + +- + + ++ + + + +--- a/apps/rest-showcase/maven-build.xml ++++ b/apps/rest-showcase/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- + +- + + ++ + + + +--- a/bundles/admin/maven-build.xml ++++ b/bundles/admin/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- + +- + + ++ + + + +--- a/bundles/demo/maven-build.xml ++++ b/bundles/demo/maven-build.xml +@@ -125,7 +125,7 @@ + + + +- +- +- +- + + + +--- a/bundles/demo/maven-build.xml ++++ b/bundles/demo/maven-build.xml +@@ -271,12 +271,8 @@ + +- +- +- + + + diff --git a/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch b/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch new file mode 100644 index 000000000000..27c101ddc5e0 --- /dev/null +++ b/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-apps-portlet.patch @@ -0,0 +1,50 @@ +--- a/apps/maven-build.xml ++++ b/apps/maven-build.xml +@@ -24,7 +24,6 @@ + + + +- + + + +@@ -36,7 +35,6 @@ + + + +- + + + +@@ -48,7 +46,6 @@ + + + +- + + + +@@ -60,7 +57,6 @@ + + + +- + + + +@@ -72,7 +68,6 @@ + + + +- + + + +@@ -84,7 +79,6 @@ + + + +- + + + diff --git a/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch b/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch new file mode 100644 index 000000000000..d04acd040d09 --- /dev/null +++ b/dev-java/struts/files/struts-2.3.15.2-build.xml-remove-core-and-plugins.patch @@ -0,0 +1,56 @@ +--- a/maven-build.xml ++++ b/maven-build.xml +@@ -22,8 +22,5 @@ + + + +- +- + +- + +@@ -35,8 +33,5 @@ + + + +- +- + +- + +@@ -48,8 +44,5 @@ + + + +- +- + +- + +@@ -61,8 +55,5 @@ + + + +- +- + +- + +@@ -74,8 +66,5 @@ + + + +- +- + +- + +@@ -87,8 +77,5 @@ + + + +- +- + +- + diff --git a/dev-java/struts/struts-2.3.15.2.ebuild b/dev-java/struts/struts-2.3.15.2.ebuild new file mode 100644 index 000000000000..fc317a86eef0 --- /dev/null +++ b/dev-java/struts/struts-2.3.15.2.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" +WANT_ANT_TASKS="ant-trax" + +inherit java-pkg-2 java-ant-2 + +MY_P="${P}-src" + +DESCRIPTION="A powerful Model View Controller Framework for JSP/Servlets" +SRC_URI="mirror://apache/struts/source/${MY_P}.zip + http://dev.gentoo.org/~tomwij/files/dist/${PN}-build.xml-${PV}.tar.xz" +HOMEPAGE="http://struts.apache.org/index.html" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64" + +COMMON_DEPS=" + dev-java/felix-shell:0 + dev-java/osgi-core-api:0 + dev-java/struts-core:${SLOT} + dev-java/struts-plugins:${SLOT} + dev-java/struts-xwork:${SLOT} + java-virtuals/servlet-api:2.3" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPS}" + +DEPEND=">=virtual/jdk-1.5 + test? ( dev-java/ant-junit:0 ) + ${COMMON_DEPS}" + +S="${WORKDIR}/${P}/src" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="struts-core-${SLOT},struts-plugins-${SLOT},struts-xwork-${SLOT}" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" +EANT_BUILD_TARGET="package" +EANT_TEST_TARGET="test" + +# TODO: Incompatible with newer junit; we either need to patch it or slot junit. +RESTRICT="test" + +src_unpack() { + unpack ${MY_P}.zip + cd "${S}" || die + unpack ${PN}-build.xml-${PV}.tar.xz +} + +java_prepare() { + find . -name '*.jar' -print -delete || die + + epatch "${FILESDIR}"/${P}-build.xml-remove-core-and-plugins.patch + epatch "${FILESDIR}"/${P}-build.xml-classpath.patch + epatch "${FILESDIR}"/${P}-build.xml-manifest.patch + epatch "${FILESDIR}"/${P}-build.xml-apps-package.patch + epatch "${FILESDIR}"/${P}-build.xml-remove-apps-portlet.patch + + java-pkg_getjars felix-shell,osgi-core-api,servlet-api-2.3 +} + +src_install() { + insinto /usr/share/${PN}-${SLOT}/ + + # Misses apps/portlet. + for dir in apps/{blank,mailreader,rest-showcase,showcase} bundles/{admin,demo} ; do + if [[ ${dir} == "apps/"* ]] ; then + doins ${dir}/target/${PN}2-${dir/apps\//}.war + else + java-pkg_newjar ${dir}/target/${PN}2-osgi-*-bundle-${PV}.jar ${dir/bundles\//}.jar + fi + + if use doc ; then + java-pkg_dojavadoc ${dir}/target/site/apidocs + mkdir "${D}"/usr/share/doc/${P}/${dir/*\//} || die + mv "${D}"/usr/share/doc/${P}/{html,${dir/*\//}/html} || die + fi + + if [[ ${dir} == *"mailreader"* ]] ; then + use source && java-pkg_dosrc ${dir}/src/main/java/mailreader2 + else + use source && java-pkg_dosrc ${dir}/src/main/java/org + fi + done + + if use doc ; then + rm "${D}"/usr/share/${PN}-${SLOT}/api || die + fi +} + +src_test() { + EANT_TEST_EXTRA_ARGS="-Dgentoo.test.classpath=$(java-pkg_getjars ${EANT_TEST_GENTOO_CLASSPATH})" + EANT_TEST_EXTRA_ARGS+=" -Djunit.present=true" + + java-pkg-2_src_test +} + +pkg_postinst() { + elog "The application 'portlet' is not in this release because it doesn't build." +} -- cgit v1.2.3-65-gdbad