blob: 9191bf6295e6bf674acba20636e99ecc9debd99d (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jakarta-slide-webdavclient/jakarta-slide-webdavclient-2.1.ebuild,v 1.2 2005/07/16 17:45:18 axxo Exp $
inherit eutils java-pkg
MY_P="${PN}-src-${PV}"
DESCRIPTION="! Slide is a content repository which can serve as a basis for a content management system / framework and other purposes"
HOMEPAGE="http://jakarta.apache.org/slide/index.html"
SRC_URI="http://archive.apache.org/dist/jakarta/slide/source/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc jikes source"
RDEPEND=">=virtual/jre-1.4
dev-java/antlr
dev-java/commons-httpclient
dev-java/commons-logging
dev-java/commons-transaction
~dev-java/jdom-1.0
dev-java/xml-im-exporter"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
${RDEPEND}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
cd ${S}/lib
java-pkg_jar-from antlr
java-pkg_jar-from commons-httpclient
java-pkg_jar-from commons-logging
java-pkg_jar-from commons-transaction
java-pkg_jar-from jdom-1.0
java-pkg_jar-from xml-im-exporter
}
src_compile() {
local antflags="dist-clientlib"
use doc && antflags="${antflags} javadoc-clientlib"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} dist-clientlib || die "Compilation failed"
}
src_install() {
java-pkg_newjar dist/lib/${P/client/lib}.jar ${PN/client/lib}.jar
dodoc README
use doc && java-pkg_dohtml -r dist/doc/clientjavadoc/
use source && java-pkg_dosrc \
clientlib/src/java/* \
ant/src/java/* \
commandline/src/java/* \
connector/src/java/*
}
|