summaryrefslogtreecommitdiff
blob: 4dcc520433bc0ba73631aeaa0c0895d8fe04f356 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

JAVA_PKG_IUSE="doc source"

ESVN_REPO_URI="https://svn.tigase.org/reps/${PN}/trunk"

inherit subversion java-pkg-2

DESCRIPTION="XML tools designed for XMPP."
HOMEPAGE="http://www.tigase.org/en/project/xmltools"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND=">=dev-java/ant-1.7
	>=virtual/jdk-1.6.0"

RDEPEND=">=virtual/jre-1.6.0"

src_unpack() {
	subversion_src_unpack
	cd "${S}"
	ant clean-all
}

src_compile() {
	ant jar || die "Compile failed"
	if use doc; then
		ant docs || die "Docs failed"
	fi
}

src_install() {
	java-pkg_dojar jars/*.jar

	use doc && java-pkg_dojavadoc docs-tigase-xmltools/api
	use source && java-pkg_dosrc src/main/java/
}