summaryrefslogtreecommitdiff
blob: 0562d6091dab46ebe780d84ab8797fce3d46a7d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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 $

A=Cocoon-${PV}.tar.gz
S=${WORKDIR}/${P}
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
	>=dev-java/fesi-1
	>=dev-java/xt-1
	>=dev-java/jndi-1.2.1"

src_unpack() {
  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
}

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 {} \;
}