summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-11-06 09:40:58 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2010-11-06 09:40:58 +0000
commit55457b2962af0c7c052cbf754814b868aa0b8630 (patch)
treeb4bee7d140d4400095d81dec95f3f2a72aea1315 /dev-java/mojarra
parentremoved alpha keyword from qt-4.7, bug #338289 (diff)
downloadgentoo-2-55457b2962af0c7c052cbf754814b868aa0b8630.tar.gz
gentoo-2-55457b2962af0c7c052cbf754814b868aa0b8630.tar.bz2
gentoo-2-55457b2962af0c7c052cbf754814b868aa0b8630.zip
Use newer 1.7 slot of commons-beanutils.
(Portage version: 2.2.0_alpha2/cvs/Linux i686)
Diffstat (limited to 'dev-java/mojarra')
-rw-r--r--dev-java/mojarra/ChangeLog8
-rw-r--r--dev-java/mojarra/mojarra-1.2.15-r1.ebuild85
2 files changed, 92 insertions, 1 deletions
diff --git a/dev-java/mojarra/ChangeLog b/dev-java/mojarra/ChangeLog
index da9866b872f2..cb50a8e6c602 100644
--- a/dev-java/mojarra/ChangeLog
+++ b/dev-java/mojarra/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/mojarra
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/mojarra/ChangeLog,v 1.5 2010/08/19 19:18:19 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mojarra/ChangeLog,v 1.6 2010/11/06 09:40:58 betelgeuse Exp $
+
+*mojarra-1.2.15-r1 (06 Nov 2010)
+
+ 06 Nov 2010; Petteri Räty <betelgeuse@gentoo.org>
+ +mojarra-1.2.15-r1.ebuild:
+ Use newer 1.7 slot of commons-beanutils.
19 Aug 2010; Krzysztof Pawlik <nelchael@gentoo.org> mojarra-1.2.15.ebuild:
Fix SRC_URI for 1.2.15, bug #333479.
diff --git a/dev-java/mojarra/mojarra-1.2.15-r1.ebuild b/dev-java/mojarra/mojarra-1.2.15-r1.ebuild
new file mode 100644
index 000000000000..96473826af0e
--- /dev/null
+++ b/dev-java/mojarra/mojarra-1.2.15-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mojarra/mojarra-1.2.15-r1.ebuild,v 1.1 2010/11/06 09:40:58 betelgeuse Exp $
+
+EAPI=3
+
+WANT_ANT_TASKS="ant-trax"
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PV="$(get_version_component_range 1-2)_$(get_version_component_range 3)-b01-FCS"
+
+DESCRIPTION="Project Mojarra - GlassFish's Implementation for JavaServer Faces API"
+HOMEPAGE="https://javaserverfaces.dev.java.net/"
+SRC_URI="https://javaserverfaces.dev.java.net/files/documents/1866/151669/${PN}-${MY_PV}-source.zip
+ mirror://gentoo/${PN}-${MY_PV}-patch.bz2"
+
+LICENSE="CDDL"
+SLOT="1.2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+COMMON_DEP="
+ dev-java/commons-beanutils:1.7
+ dev-java/commons-collections:0
+ dev-java/commons-digester:0
+ dev-java/commons-logging:0
+ dev-java/glassfish-servlet-api:2.5
+ dev-java/groovy:0
+ dev-java/jakarta-jstl:0
+ dev-java/portletapi:1
+ "
+
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.6
+ app-arch/unzip
+ dev-java/ant-contrib
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}-${MY_PV}-sources"
+
+src_prepare() {
+ epatch "${DISTDIR}/${PN}-${MY_PV}-patch.bz2"
+
+ mkdir -p "${S}/dependencies/jars" || die
+
+ # Should we remove those files? I don't see a reason to pull in three
+ # different web app server for this package.
+ rm -f \
+ "${S}/jsf-ri/src/com/sun/faces/vendor/GlassFishInjectionProvider.java" \
+ "${S}/jsf-ri/src/com/sun/faces/vendor/Jetty6InjectionProvider.java" \
+ "${S}/jsf-ri/src/com/sun/faces/vendor/Tomcat6InjectionProvider.java"
+
+ find -name '*.jar' -exec rm -f {} \;
+
+ cd "${S}/common/lib/"
+ java-pkg_jarfrom --build-only ant-contrib
+
+ cd "${S}/dependencies/jars"
+ java-pkg_jarfrom commons-beanutils-1.7
+ java-pkg_jarfrom commons-collections
+ java-pkg_jarfrom commons-digester
+ java-pkg_jarfrom commons-logging
+ java-pkg_jarfrom glassfish-servlet-api-2.5
+ java-pkg_jarfrom groovy
+ java-pkg_jarfrom jakarta-jstl
+ java-pkg_jarfrom portletapi-1
+}
+
+src_compile() {
+ cd "${S}/jsf-api"
+ eant -Djsf.build.home="${S}" -Dcontainer.name=glassfish jars
+
+ cd "${S}/jsf-ri"
+ eant -Djsf.build.home="${S}" -Dcontainer.name=glassfish jars
+}
+
+src_install() {
+ java-pkg_dojar "${S}/jsf-api/build/lib/jsf-api.jar"
+ java-pkg_dojar "${S}/jsf-ri/build/lib/jsf-impl.jar"
+ use source && java-pkg_dosrc "${S}"/jsf-api/src/* "${S}"/jsf-ri/src/*
+}