summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/cocoon')
-rw-r--r--dev-java/cocoon/ChangeLog9
-rw-r--r--dev-java/cocoon/cocoon-2.1.11.ebuild70
2 files changed, 77 insertions, 2 deletions
diff --git a/dev-java/cocoon/ChangeLog b/dev-java/cocoon/ChangeLog
index d5b07f03d432..ef58b6c87f5c 100644
--- a/dev-java/cocoon/ChangeLog
+++ b/dev-java/cocoon/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/cocoon
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/cocoon/ChangeLog,v 1.12 2007/02/21 23:30:42 peper Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cocoon/ChangeLog,v 1.13 2008/07/13 10:54:47 nelchael Exp $
+
+*cocoon-2.1.11 (13 Jul 2008)
+
+ 13 Jul 2008; Krzysiek Pawlik <nelchael@gentoo.org> +cocoon-2.1.11.ebuild:
+ Version bump, migrated to generation 2.
21 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
diff --git a/dev-java/cocoon/cocoon-2.1.11.ebuild b/dev-java/cocoon/cocoon-2.1.11.ebuild
new file mode 100644
index 000000000000..a7f0a8216240
--- /dev/null
+++ b/dev-java/cocoon/cocoon-2.1.11.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cocoon/cocoon-2.1.11.ebuild,v 1.1 2008/07/13 10:54:47 nelchael Exp $
+
+JAVA_PKG_IUSE="doc"
+WANT_ANT_TASKS=""
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A Web Publishing Framework for Apache"
+HOMEPAGE="http://cocoon.apache.org/"
+SRC_URI="mirror://apache/cocoon/${P}-src.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.5.3"
+RDEPEND=">=virtual/jre-1.5"
+
+# I know this way of building cocoon is not the best, it will be fixed for
+# cocoon-2.2
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ echo "# Gentoo build properties" > local.build.properties
+ if ! use doc; then
+ echo "exclude.javadocs=true" >> local.build.properties
+ echo "exclude.webapp.javadocs=true" >> local.build.properties
+ echo "exclude.webapp.documentation=true" >> local.build.properties
+ echo "exclude.idldocs=true" >> local.build.properties
+ echo "exclude.webapp.idldocs=true" >> local.build.properties
+ fi
+ java-ant_bsfix_files tools/targets/*-build.xml
+}
+
+src_compile() {
+ sh build.sh war standalone-demo javadocs || die
+}
+
+src_install() {
+ java-pkg_dowar build/${PN}/${PN}.war
+ java-pkg_dojar build/${PN}/cocoon.jar
+ java-pkg_jarinto /usr/share/${PN}/lib/core/
+ java-pkg_dojar lib/core/*.jar
+ insinto /usr/share/${PN}/lib
+ doins "${S}/build/${PN}"/cocoon-*.jar "${S}/lib/jars.xml"
+ for i in endorsed optional local; do
+ dodir /usr/share/${PN}/lib/${i}
+ insinto /usr/share/${PN}/lib/${i}
+ doins "${S}/lib/${i}"/*
+ done
+
+ dodoc CREDITS.txt INSTALL.txt KEYS README.txt
+ docinto legal
+ dodoc legal/*
+
+ use doc && java-pkg_dojavadoc build/webapp/api
+}
+
+pkg_postinst() {
+ elog "This ebuild does no longer install the Cocoon webapp into"
+ elog "any servlet container anymore. Copy /usr/share/${PN}/webapps/${PN}.war"
+ elog "to your servlet container's webapps directory and restart the"
+ elog "server."
+}