blob: da8da18da69a49ec7d0f25f3673928aff3ae6416 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/cocoon/cocoon-2.1.6.ebuild,v 1.4 2005/10/08 14:38:39 betelgeuse Exp $
inherit java-pkg
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 ~sparc ~ppc ~amd64"
IUSE="doc"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-core-1.5.3"
RDEPEND=">=virtual/jre-1.4"
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
}
src_compile() {
sh build.sh war standalone-demo || die
}
src_install() {
java-pkg_dowar build/${P}/${PN}.war
java-pkg_dojar build/${P}/cocoon.jar
java-pkg_jarinto /usr/share/${PN}/lib/core/
java-pkg_dojar lib/core/*.jar
insinto /usr/share/${PN}/lib
doins ${S}/build/${P}/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/*
docinto api
use doc && java-pkg_dohtml -r build/webapp/api/*
}
pkg_postinst() {
einfo "This ebuild does no longer install the Cocoon webapp into"
einfo "any servlet container anymore. Copy /usr/share/${PN}/webapps/${PN}.war"
einfo "to your servlet container's webapps directory and restart the"
einfo "server."
einfo
ewarn "Note: To run in Tomcat its version has to be >= 4.0.4"
}
|