summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2001-12-30 04:06:13 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2001-12-30 04:06:13 +0000
commit252252afbd69273d9bdc751b7edfb6fd49d764a2 (patch)
tree72f1173dedf863537db3d8f70695c3ad8b6ef2bb /net-www/cocoon
parentadded gnomeicu update from Alpha (diff)
downloadgentoo-2-252252afbd69273d9bdc751b7edfb6fd49d764a2.tar.gz
gentoo-2-252252afbd69273d9bdc751b7edfb6fd49d764a2.tar.bz2
gentoo-2-252252afbd69273d9bdc751b7edfb6fd49d764a2.zip
Added proper dodir to mozilla plugins, due to Tod M. Neidt
Diffstat (limited to 'net-www/cocoon')
-rw-r--r--net-www/cocoon/cocoon-1.8.2.ebuild60
1 files changed, 32 insertions, 28 deletions
diff --git a/net-www/cocoon/cocoon-1.8.2.ebuild b/net-www/cocoon/cocoon-1.8.2.ebuild
index 0562d6091dab..d06c395a05de 100644
--- a/net-www/cocoon/cocoon-1.8.2.ebuild
+++ b/net-www/cocoon/cocoon-1.8.2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/net-www/cocoon/cocoon-1.8.2.ebuild,v 1.1 2001/07/10 08:32:00 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/cocoon/cocoon-1.8.2.ebuild,v 1.2 2001/12/30 04:06:13 karltk Exp $
A=Cocoon-${PV}.tar.gz
S=${WORKDIR}/${P}
@@ -9,44 +9,48 @@ DESCRIPTION="A Web Publishing Framework for Apache"
SRC_URI="http://xml.apache.org/cocoon/dist/"${A}
HOMEPAGE="http://xml.apache.org/cocoon/"
-DEPEND=">=dev-lang/jdk-1.2.2
+DEPEND=">=virtual/jdk-1.2.2
>=dev-java/fesi-1
>=dev-java/xt-1
>=dev-java/jndi-1.2.1"
src_unpack() {
- unpack ${A}
+ unpack ${A}
}
src_compile() {
- CLASSPATH=/opt/java/src.jar:/opt/java/lib/tools.jar
- CLASSPATH=${CLASSPATH}:/usr/lib/java/jndi.jar
- CLASSPATH=${CLASSPATH}:/usr/lib/java/xt.jar:/usr/lib/java/sax.jar
- CLASSPATH=${CLASSPATH}:/usr/lib/java/fesi.jar
- export CLASSPATH
- export JAVA_HOME=/opt/java
- cd ${S}
- sh build.sh
+ CLASSPATH=${CLASSPATH}:\
+ `cat /usr/share/jndi/classpath.env`:
+ `cat /usr/share/xt/classpath.env`:
+ `cat /usr/share/fesi/classpath.env`
+ export CLASSPATH
+ sh build.sh || die
}
src_install() {
- cd ${S}
- insinto /opt/jakarta/cocoon/lib
- for i in xerces_1_2 xalan_1_2_D02 fop_0_15_0 \
- servlet_2_2 turbine-pool
- do
- doins lib/$i.jar
- done
- doins build/cocoon.jar
- dodir /opt/jakarta/tomcat/webapps/cocoon/repository
- insinto /opt/jakarta/tomcat/webapps/cocoon/WEB-INF
- cp -a samples ${D}/opt/jakarta/tomcat/webapps/cocoon
- doins ${FILESDIR}/cocoon.properties
- doins ${FILESDIR}/web.xml
- dodoc README LICENSE
- dodir /usr/doc/${PF}/html
- cp -a docs/* ${D}/usr/doc/${PF}/html
- find ${D}/usr/doc/${PF}/html -type f -exec gzip -9 {} \;
+ insinto /usr/share/cocoon
+ for i in xerces_1_2 xalan_1_2_D02 fop_0_15_0 servlet_2_2 turbine-pool ; do
+ doins lib/$i.jar
+ echo /usr/share/cocoon/$i.jar \
+ >> /usr/share/cocoon/classpath.env
+ done
+
+ doins build/cocoon.jar
+ echo /usr/share/cocoon/$i.jar >> /usr/share/cocoon/classpath.env
+
+ mv /usr/share/cocoon/classpath.env /usr/share/cocoon/classpath.env.orig
+ tr '\n' ':' < /usr/share/cocoon/classpath.env.orig \
+ > /usr/share/cocoon/classpath.env
+ rm /usr/share/cocoon/classpath.env.orig
+
+ dodir /usr/share/jakarta/tomcat/webapps/cocoon/repository
+ insinto /usr/share/jakarta/tomcat/webapps/cocoon/WEB-INF
+ cp -a samples ${D}/usr/share/jakarta/tomcat/webapps/cocoon
+ doins ${FILESDIR}/cocoon.properties
+ doins ${FILESDIR}/web.xml
+ dodoc README LICENSE
+ dodir /usr/doc/${PF}/html
+ dohtml -r docs/*
}