blob: 50eef5789a61eefe5f114ca27591fa5dee9ab433 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
JAVA_PKG_IUSE="doc source"
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 x86"
IUSE=""
COMMON_DEP="dev-java/xpp3"
DEPEND=">=virtual/jdk-1.4
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
rm -f *.jar build/lib/*.jar build/merge/*.jar build/*.jar
cd "${S}/build/lib/"
java-pkg_jar-from xpp3
sed -i -e '/zipfileset/d' "${S}/build/build.xml" || die
}
EANT_BUILD_XML="build/build.xml"
EANT_EXTRA_ARGS="-Djavadoc.dest.dir=api"
src_install() {
java-pkg_dojar *.jar
dohtml *.html
use doc && {
java-pkg_dohtml -r documentation/*
java-pkg_dojavadoc api
}
use source && java-pkg_dosrc source/*
}
|