summaryrefslogtreecommitdiff
blob: 64a9ea52b2b7c925f23690b51c26a91c979d1c5f (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-www/cocoon/cocoon-1.8.2.ebuild,v 1.4 2002/07/11 06:30:49 drobbins 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=">=virtual/jdk-1.2.2
	>=dev-java/fesi-1
	>=dev-java/xt-1
	>=dev-java/jndi-1.2.1"

src_unpack() {
	unpack ${A}
}

src_compile() {
	export CLASSPATH=`java-config --full-classpath=jndi,xt,fesi`
	sh build.sh || die
}

src_install() {                  
	dojar lib/*.jar             

	dojar build/cocoon.jar

	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
	dohtml -r docs/*
}