diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/smack/smack-2.2.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/smack/smack-2.2.1.ebuild')
-rw-r--r-- | dev-java/smack/smack-2.2.1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/smack/smack-2.2.1.ebuild b/dev-java/smack/smack-2.2.1.ebuild new file mode 100644 index 000000000000..db08399d82ab --- /dev/null +++ b/dev-java/smack/smack-2.2.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/* + +} |