summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-10-02 22:43:39 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-10-02 22:43:39 +0000
commit7eab688fb1809fe6ff8bd27d3d57c92f69697b6e (patch)
treef8bbc83be4d62404280fbcbb08d1c94cce3adfaf /dev-java
parentVersion bump. (diff)
downloadgentoo-2-7eab688fb1809fe6ff8bd27d3d57c92f69697b6e.tar.gz
gentoo-2-7eab688fb1809fe6ff8bd27d3d57c92f69697b6e.tar.bz2
gentoo-2-7eab688fb1809fe6ff8bd27d3d57c92f69697b6e.zip
New package for dev-java/struts-core, the Core of Struts 2.
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/struts-core/ChangeLog11
-rw-r--r--dev-java/struts-core/files/struts-2.3.15.2-build.xml-classpath.patch20
-rw-r--r--dev-java/struts-core/files/struts-2.3.15.2-build.xml-manifest.patch15
-rw-r--r--dev-java/struts-core/metadata.xml5
-rw-r--r--dev-java/struts-core/struts-core-2.3.15.2.ebuild67
5 files changed, 118 insertions, 0 deletions
diff --git a/dev-java/struts-core/ChangeLog b/dev-java/struts-core/ChangeLog
new file mode 100644
index 000000000000..573955e0932b
--- /dev/null
+++ b/dev-java/struts-core/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/struts-core
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/struts-core/ChangeLog,v 1.1 2013/10/02 22:43:39 tomwij Exp $
+
+*struts-core-2.3.15.2 (02 Oct 2013)
+
+ 02 Oct 2013; Tom Wijsman <TomWij@gentoo.org>
+ +files/struts-2.3.15.2-build.xml-classpath.patch,
+ +files/struts-2.3.15.2-build.xml-manifest.patch, +metadata.xml,
+ +struts-core-2.3.15.2.ebuild:
+ New package for dev-java/struts-core, the Core of Struts 2.
diff --git a/dev-java/struts-core/files/struts-2.3.15.2-build.xml-classpath.patch b/dev-java/struts-core/files/struts-2.3.15.2-build.xml-classpath.patch
new file mode 100644
index 000000000000..1ce5974427b7
--- /dev/null
+++ b/dev-java/struts-core/files/struts-2.3.15.2-build.xml-classpath.patch
@@ -0,0 +1,20 @@
+--- a/maven-build.xml
++++ b/maven-build.xml
+@@ -125,7 +125,7 @@
+
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.outputDir}"/>
+- <javac destdir="${maven.build.outputDir}"
++ <javac destdir="${maven.build.outputDir}" classpath="${gentoo.classpath}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
+@@ -153,7 +153,7 @@
+ description="Compile the test code"
+ unless="maven.test.skip">
+ <mkdir dir="${maven.build.testOutputDir}"/>
+- <javac destdir="${maven.build.testOutputDir}"
++ <javac destdir="${maven.build.testOutputDir}" classpath="${gentoo.test.classpath}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
diff --git a/dev-java/struts-core/files/struts-2.3.15.2-build.xml-manifest.patch b/dev-java/struts-core/files/struts-2.3.15.2-build.xml-manifest.patch
new file mode 100644
index 000000000000..001b5fdb4630
--- /dev/null
+++ b/dev-java/struts-core/files/struts-2.3.15.2-build.xml-manifest.patch
@@ -0,0 +1,15 @@
+--- a/core/maven-build.xml
++++ b/core/maven-build.xml
+@@ -271,12 +271,8 @@
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
+ compress="true"
+ index="false"
+- manifest="/var/tmp/portage/dev-java/struts-xwork-2.3.15.2/work/struts-2.3.15.2/src/core/target/classes/META-INF/MANIFEST.MF"
+ basedir="${maven.build.outputDir}"
+ excludes="**/package.html">
+- <manifest>
+- <attribute name="Main-Class"/>
+- </manifest>
+ </jar>
+ </target>
+
diff --git a/dev-java/struts-core/metadata.xml b/dev-java/struts-core/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/struts-core/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/struts-core/struts-core-2.3.15.2.ebuild b/dev-java/struts-core/struts-core-2.3.15.2.ebuild
new file mode 100644
index 000000000000..15410ab7de76
--- /dev/null
+++ b/dev-java/struts-core/struts-core-2.3.15.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/struts-core/struts-core-2.3.15.2.ebuild,v 1.1 2013/10/02 22:43:39 tomwij Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="struts"
+MY_P="${MY_PN}-${PV}-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/${MY_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/commons-fileupload:0
+ dev-java/commons-lang:3.1
+ dev-java/freemarker:2.3
+ dev-java/ognl:3.0
+ dev-java/struts-xwork:2
+ dev-java/velocity:0
+ java-virtuals/servlet-api:3.0"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPS}"
+
+DEPEND=">=virtual/jdk-1.5
+ test? ( dev-java/ant-junit:0 )
+ ${COMMON_DEPS}"
+
+S="${WORKDIR}/${MY_PN}-${PV}/src/core"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="struts-xwork-2"
+
+src_unpack() {
+ unpack ${MY_P}.zip
+ cd "${WORKDIR}"/${MY_PN}-${PV}/src || die
+ unpack ${MY_PN}-build.xml-${PV}.tar.xz
+
+ java-pkg_getjars commons-fileupload,commons-lang-3.1,freemarker-2.3,ognl-3.0,velocity,servlet-api-3.0
+}
+
+java_prepare() {
+ find . -name '*.jar' -print -delete || die
+
+ epatch "${FILESDIR}"/${MY_PN}-${PV}-build.xml-classpath.patch
+ epatch "${FILESDIR}"/${MY_PN}-${PV}-build.xml-manifest.patch
+}
+
+src_test() {
+ EANT_TEST_EXTRA_ARGS="-Djunit.present=true" java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar target/${MY_PN}2-core-${PV}.jar
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java/com
+}