blob: b392f6d1059c7008f5c67de8cf4011776450bb96 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/smack/smack-2.2.1.ebuild,v 1.2 2006/09/11 17:53:54 nelchael Exp $
inherit java-pkg-2 java-ant-2
MY_PN="${PN}-dev"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="An Open Source XMPP (Jabber) client library for instant messaging and presence"
HOMEPAGE="http://www.jivesoftware.org/smack/"
SRC_URI="http://www.jivesoftware.org/builds/${PN}/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="2.2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc source"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core"
RDEPEND=">=virtual/jre-1.4"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
rm *.jar build/lib/*.jar
}
src_compile() {
eant -f build/build.xml \
jar $(use_doc javadoc -Djavadoc.dest.dir=api)
}
src_install() {
java-pkg_dojar *.jar
dohtml *.html
use doc && java-pkg_dohtml -r api documentation/*
use source && java-pkg_dosrc source/*
}
|