summaryrefslogtreecommitdiff
path: root/dev-java/mojarra
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/mojarra
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/mojarra')
-rw-r--r--dev-java/mojarra/Manifest4
-rw-r--r--dev-java/mojarra/files/mojarra-2.2.12-Util.java.patch25
-rw-r--r--dev-java/mojarra/metadata.xml8
-rw-r--r--dev-java/mojarra/mojarra-2.2.12-r1.ebuild54
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-java/mojarra/Manifest b/dev-java/mojarra/Manifest
new file mode 100644
index 000000000000..1134b1514da2
--- /dev/null
+++ b/dev-java/mojarra/Manifest
@@ -0,0 +1,4 @@
+AUX mojarra-2.2.12-Util.java.patch 1196 BLAKE2B ce5eefa43f1531a2ae0f2bec2644c25daee9529f972eed974ac3b5ca2c40248a2e440a690eb9240069fd39795099a4e9df18c0cde8b2e2a2b4080e510297797d SHA512 b3f2f1fb0f7541eb5fae494d3a0f254553aaed7de2016f5bf8f4433e88ce9cfb59cae6d6e3e169040b77ba1ae9038beaaae2591610a71f0fc194ac6fba295732
+DIST javax.faces-2.2.12-sources.jar 3105808 BLAKE2B 347daf8b44171a94e7ebf09c8ad22b1b20255355f589def6c537c49e37275605caf80f219be21dd8561597c94c15e6fe2cc0c0c713297ceaf8d6be669b6a6e78 SHA512 b2bc2ce38d72af38a4b2fdb5aec790600ca41a5d7f6340bf6be671a901c9fe664d50d9d13f021694e85e0e145a2031e2d8b61dd6d6ccebb544f2512a91ff670a
+EBUILD mojarra-2.2.12-r1.ebuild 1238 BLAKE2B 17c0a8b66fdbe8dcf56594ba2675508c6079715f01bc70a2f5ddf9ad32f5168b449976bd3b77d7226d3f4cd3aa99dd5d25f209f3f3e286cf2cd48c82a0386e94 SHA512 4453e29687ecd426d1df64e8e010ed4629d7ff9e6faeadbcb6daac24dfc578cd93192ab1e45443a83dfa94e5f144c2cb1fa6602be17bb3ccefbad8140526724f
+MISC metadata.xml 242 BLAKE2B 6bf5b48906c64a18d9f27e7ecec168ed039f8d390792d62aedb8c86627a13ff09d583a736982057d245fe5db27c4016257125d69792d6bbe424e7d2a35067675 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f
diff --git a/dev-java/mojarra/files/mojarra-2.2.12-Util.java.patch b/dev-java/mojarra/files/mojarra-2.2.12-Util.java.patch
new file mode 100644
index 000000000000..23033f652969
--- /dev/null
+++ b/dev-java/mojarra/files/mojarra-2.2.12-Util.java.patch
@@ -0,0 +1,25 @@
+--- src/com/sun/faces/util/Util.java.orig 2015-09-03 14:43:30.953486000 +0000
++++ src/com/sun/faces/util/Util.java 2015-09-03 14:43:57.692486000 +0000
+@@ -354,13 +354,15 @@
+ // as the same adapter in a standalone program works as one might expect.
+ // So, for now, if the classname starts with '[', then use Class.forName()
+ // to avoid CR 643419 and for all other cases, use ClassLoader.loadClass().
+- if (loader.getClass() == com.sun.faces.scripting.groovy.GroovyHelperImpl.MojarraGroovyClassLoader.class) {
+- if (name.charAt(0) == '[') {
+- return Class.forName(name, true, loader);
+- } else {
+- return loader.loadClass(name);
+- }
+- }
++ //
++ // Disable Groovy support.
++ // if (loader.getClass() == com.sun.faces.scripting.groovy.GroovyHelperImpl.MojarraGroovyClassLoader.class) {
++ // if (name.charAt(0) == '[') {
++ // return Class.forName(name, true, loader);
++ // } else {
++ // return loader.loadClass(name);
++ // }
++ // }
+ return Class.forName(name, true, loader);
+ }
+
diff --git a/dev-java/mojarra/metadata.xml b/dev-java/mojarra/metadata.xml
new file mode 100644
index 000000000000..37998bf40746
--- /dev/null
+++ b/dev-java/mojarra/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/mojarra/mojarra-2.2.12-r1.ebuild b/dev-java/mojarra/mojarra-2.2.12-r1.ebuild
new file mode 100644
index 000000000000..735e0e7b91bc
--- /dev/null
+++ b/dev-java/mojarra/mojarra-2.2.12-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Project Mojarra - GlassFish's Implementation for JavaServer Faces API"
+HOMEPAGE="https://javaserverfaces.dev.java.net/"
+SRC_URI="https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/${PV}/javax.faces-${PV}-sources.jar"
+
+LICENSE="CDDL"
+SLOT="2.2"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+
+CDEPEND="dev-java/glassfish-persistence:0
+ dev-java/glassfish-ejb-api:0
+ java-virtuals/servlet-api:3.0
+ dev-java/tomcat-jstl-spec:0
+ dev-java/tomcat-jstl-impl:0
+ dev-java/validation-api:1.0
+ dev-java/javax-inject:0
+ dev-java/cdi-api:1.2"
+
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.6
+ app-arch/unzip
+ ${CDEPEND}"
+
+JAVA_SRC_DIR="src"
+
+JAVA_GENTOO_CLASSPATH="
+ glassfish-persistence
+ glassfish-ejb-api
+ tomcat-jstl-spec
+ tomcat-jstl-impl
+ validation-api-1.0
+ cdi-api-1.2
+ servlet-api-3.0
+ javax-inject
+"
+
+java_prepare() {
+ mkdir src || die
+ mv * src
+
+ # We *MUST* bump Groovy to 2.4 at some point
+ # to make this stuff work correctly.
+ rm -v src/com/sun/faces/scripting/groovy/GroovyHelperImpl.java || die
+ epatch "${FILESDIR}"/${P}-Util.java.patch
+}